Commit 15c17dd7 authored by Thibault Hallouin's avatar Thibault Hallouin
Browse files

store dependencies in separate text file

No related merge requests found
Showing with 14 additions and 1 deletion
+14 -1
pybind11>=2.0.1
numpy>=1.16
...@@ -7,6 +7,17 @@ import setuptools ...@@ -7,6 +7,17 @@ import setuptools
__version__ = '0.0.1' __version__ = '0.0.1'
def read_requirements(filename):
requires = []
with open(filename, 'r') as fr:
for line in fr:
package = line.strip()
if package:
requires.append(package)
return requires
class get_pybind_include(object): class get_pybind_include(object):
"""Helper class to determine the pybind11 include path """Helper class to determine the pybind11 include path
...@@ -120,7 +131,7 @@ setup( ...@@ -120,7 +131,7 @@ setup(
description='Python bindings for EvalHyd', description='Python bindings for EvalHyd',
long_description='An evaluator for streamflow predictions.', long_description='An evaluator for streamflow predictions.',
ext_modules=ext_modules, ext_modules=ext_modules,
install_requires=['pybind11>=2.0.1', 'numpy'], install_requires=read_requirements('requirements.txt'),
cmdclass={'build_ext': BuildExt}, cmdclass={'build_ext': BuildExt},
zip_safe=False, zip_safe=False,
) )
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment