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:
Bruno Renié 2012-12-04 15:18:24 +01:00
parent f0209b0bd9
commit c03c83b269

View file

@ -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,