mirror of
https://github.com/saltstack/salt.git
synced 2025-04-17 10:10:20 +00:00
including said modules, would probably be a good idea too
This commit is contained in:
parent
a48c7b6b2b
commit
83b6935ab0
1 changed files with 13 additions and 0 deletions
13
setup.py
13
setup.py
|
@ -61,6 +61,7 @@ BOOTSTRAP_SCRIPT_DISTRIBUTED_VERSION = os.environ.get(
|
||||||
|
|
||||||
# Store a reference to the executing platform
|
# Store a reference to the executing platform
|
||||||
IS_WINDOWS_PLATFORM = sys.platform.startswith('win')
|
IS_WINDOWS_PLATFORM = sys.platform.startswith('win')
|
||||||
|
IS_SMARTOS_PLATFORM = os.uname()[0] == 'SunOS' and os.uname()[3].startswith('joyent_')
|
||||||
|
|
||||||
# Store a reference wether if we're running under Python 3 and above
|
# Store a reference wether if we're running under Python 3 and above
|
||||||
IS_PY3 = sys.version_info > (3,)
|
IS_PY3 = sys.version_info > (3,)
|
||||||
|
@ -1157,6 +1158,18 @@ class SaltDistribution(distutils.dist.Distribution):
|
||||||
'site',
|
'site',
|
||||||
'psutil',
|
'psutil',
|
||||||
])
|
])
|
||||||
|
elif IS_SMARTOS_PLATFORM:
|
||||||
|
# we have them as requirements in pkg/smartos/esky/requirements.txt
|
||||||
|
# all these should be safe to force include
|
||||||
|
freezer_includes.extend([
|
||||||
|
'cherrypy',
|
||||||
|
'augeas',
|
||||||
|
'dateutils',
|
||||||
|
'pyghmi',
|
||||||
|
'croniter',
|
||||||
|
'mako',
|
||||||
|
'gnupg',
|
||||||
|
])
|
||||||
elif sys.platform.startswith('linux'):
|
elif sys.platform.startswith('linux'):
|
||||||
freezer_includes.append('spwd')
|
freezer_includes.append('spwd')
|
||||||
try:
|
try:
|
||||||
|
|
Loading…
Add table
Reference in a new issue