mirror of
https://github.com/valitydev/salt.git
synced 2024-11-08 17:33:54 +00:00
Merge pull request #8565 from s0undt3ch/hotfix/windows-salt-cloud
Strip ALL non windows scripts from `sdist`.
This commit is contained in:
commit
e6ca114e60
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:
|
||||
# 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…
Reference in New Issue
Block a user