Merge pull request #8565 from s0undt3ch/hotfix/windows-salt-cloud

Strip ALL non windows scripts from `sdist`.
This commit is contained in:
Thomas S Hatch 2013-11-15 09:42:26 -08:00
commit e6ca114e60

View File

@ -171,6 +171,22 @@ class CloudSdist(sdist):
# Let's the rest of the build command
sdist.run(self)
def write_manifest(self):
if IS_WINDOWS_PLATFORM:
# Remove un-necessary scripts grabbed by MANIFEST.in
for filename in self.filelist.files[:]:
if filename in ('scripts/salt',
'scripts/salt-cloud',
'scripts/salt-key',
'scripts/salt-master',
'scripts/salt-run',
'scripts/salt-ssh',
'scripts/salt-syndic'):
self.filelist.files.pop(
self.filelist.files.index(filename)
)
return sdist.write_manifest(self)
class TestCommand(Command):
description = 'Run tests'