mirror of
https://github.com/saltstack/salt.git
synced 2025-04-15 09:10:20 +00:00
Strip ALL non windows scripts from sdist
.
This commit is contained in:
parent
1f66907fef
commit
5c1fc92715
1 changed files with 16 additions and 0 deletions
16
setup.py
16
setup.py
|
@ -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'
|
||||
|
|
Loading…
Add table
Reference in a new issue