mirror of
https://github.com/saltstack/salt.git
synced 2025-04-17 10:10:20 +00:00
Filtered the content of requirements.txt
This sanitizes what goes into install_requires. External packaging tools such as FPM fail when they see a requirement starting with '#'.
This commit is contained in:
parent
f0209b0bd9
commit
c03c83b269
1 changed files with 4 additions and 2 deletions
6
setup.py
6
setup.py
|
@ -97,9 +97,11 @@ else:
|
|||
|
||||
libraries = ['ws2_32'] if sys.platform == 'win32' else []
|
||||
|
||||
requirements = ''
|
||||
with open(salt_reqs) as f:
|
||||
requirements = f.read()
|
||||
lines = f.read().split('\n')
|
||||
requirements = [
|
||||
line for line in lines if (line and not line.startswith('#'))
|
||||
]
|
||||
|
||||
|
||||
setup_kwargs = {'name': NAME,
|
||||
|
|
Loading…
Add table
Reference in a new issue