comparison setup.py @ 287:67387621c61b

Added requirements.txt and use it from setup.py
author David Fraser <davidf@sjsoft.com>
date Thu, 05 Sep 2013 16:40:04 +0200
parents 2318792b83c6
children e3ec67b04c03
comparison
equal deleted inserted replaced
284:26682f1b8c59 287:67387621c61b
9 try: 9 try:
10 import py2exe 10 import py2exe
11 py2exe # To make pyflakes happy. 11 py2exe # To make pyflakes happy.
12 except ImportError: 12 except ImportError:
13 pass 13 pass
14
15 try:
16 from pip.req import parse_requirements
17 import os
18 install_reqs = parse_requirements(os.path.join(os.path.dirname(__file__), 'requirements.txt'))
19 reqs = [str(ir.req) for ir in install_reqs]
20 except ImportError:
21 reqs = []
14 22
15 # This should probably be pulled from constants.py 23 # This should probably be pulled from constants.py
16 VERSION_STR = "0.1a" 24 VERSION_STR = "0.1a"
17 25
18 setup( 26 setup(
62 'Mac OS X', 70 'Mac OS X',
63 'Windows', 71 'Windows',
64 ], 72 ],
65 73
66 # Dependencies 74 # Dependencies
67 install_requires=[], 75 install_requires=reqs,
68 76
69 # Files 77 # Files
70 packages=find_packages(), 78 packages=find_packages(),
71 scripts=[ 79 scripts=[
72 'scripts/nagslang', 80 'scripts/nagslang',