Commit 47e19f6f authored by Paul McCarthy's avatar Paul McCarthy 🚵
Browse files

Optional dependencies are now optional

parent 3b3f862e
indexed_gzip>=0.6.1,<1
wxpython>=3.0.2.0,<4.1
trimesh==2.*
rtree==0.8
......@@ -3,7 +3,3 @@ deprecation==1.*
numpy==1.*
scipy>=0.18,<1
nibabel==2.*
indexed_gzip>=0.6.1,<1
wxpython>=3.0.2.0,<4.1
trimesh==2
rtree==0.8
......@@ -20,10 +20,16 @@ from setuptools import Command
basedir = op.dirname(__file__)
# Dependencies are listed in requirements.txt
install_requires = open(op.join(basedir, 'requirements.txt'), 'rt').readlines()
with open(op.join(basedir, 'requirements.txt'), 'rt') as f:
install_requires = f.readlines()
# Development/test dependencies are listed in requirements-dev.txt
dev_requires = open(op.join(basedir, 'requirements-dev.txt'), 'rt').readlines()
with open(op.join(basedir, 'requirements-dev.txt'), 'rt') as f:
dev_requires = f.readlines()
# Optional dependencies are listed in requirements-extra.txt
with open(op.join(basedir, 'requirements-extra.txt'), 'rt') as f:
extra_requires = {'extras' : f.readlines()}
packages = find_packages(
exclude=('doc', 'tests', 'dist', 'build', 'fslpy.egg-info'))
......@@ -109,6 +115,7 @@ setup(
packages=packages,
install_requires=install_requires,
extras_require=extra_requires,
setup_requires=dev_requires,
test_suite='tests',
......
Markdown is supported
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