Skip to content

Commit

Permalink
proper requirements
Browse files Browse the repository at this point in the history
  • Loading branch information
andersbll committed Apr 29, 2015
1 parent 55b27d2 commit 5df448f
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
2 changes: 2 additions & 0 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
cython>=0.21
numpy>=1.8
8 changes: 7 additions & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,11 @@ def numpy_extensions():
return cythonize(cython_srcs, include_path=[numpy.get_include()])


with open('requirements.txt') as f:
install_requires = [l.strip() for l in f]
setup_requires = [r for r in install_requires if r.startswith('cython')]


setup(
name='cudarray',
version='0.1',
Expand All @@ -86,7 +91,8 @@ def numpy_extensions():
license='MIT',
url='http://compute.dtu.dk/~abll',
packages=find_packages(),
install_requires=['numpy', 'cython>=0.21.1'],
setup_requires=setup_requires,
install_requires=install_requires,
long_description=read('README.md'),
classifiers=[
'Development Status :: 4 - Beta',
Expand Down

0 comments on commit 5df448f

Please sign in to comment.