Strip ALL non windows scripts from sdist.

This commit is contained in:
Pedro Algarvio 2013-11-14 08:22:17 +00:00
parent 1f66907fef
commit 5c1fc92715

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 is False:
# 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'