Skip to content
Snippets Groups Projects
Commit c116016a authored by Alex Rubinsteyn's avatar Alex Rubinsteyn
Browse files

only install futures for PY2

parent fd492b92
No related merge requests found
__version__ = "0.0.8" __version__ = "0.1.0"
...@@ -15,9 +15,14 @@ ...@@ -15,9 +15,14 @@
import os import os
import logging import logging
import re import re
import sys
from setuptools import setup from setuptools import setup
# normally we would import six.PY2 but can't yet assume that six
# is installed here
PY2 = sys.version_info < (3, 0)
readme_dir = os.path.dirname(__file__) readme_dir = os.path.dirname(__file__)
readme_filename = os.path.join(readme_dir, 'README.md') readme_filename = os.path.join(readme_dir, 'README.md')
...@@ -43,6 +48,25 @@ with open('mhcflurry/package_metadata.py', 'r') as f: ...@@ -43,6 +48,25 @@ with open('mhcflurry/package_metadata.py', 'r') as f:
re.MULTILINE).group(1) re.MULTILINE).group(1)
if __name__ == '__main__': if __name__ == '__main__':
required_packages = [
'numpy>=1.11',
'pandas>=0.13.1',
'appdirs',
'theano>=0.8.2',
'keras==1.1.0',
'fancyimpute>=0.0.12',
'scikit-learn',
'h5py',
'typechecks',
'pepdata',
'bottle',
'six',
]
if PY2:
# concurrent.futures is a standard library in Py3 but Py2
# requires this backport
required_packages.append('futures')
setup( setup(
name='mhcflurry', name='mhcflurry',
version=version, version=version,
...@@ -71,21 +95,7 @@ if __name__ == '__main__': ...@@ -71,21 +95,7 @@ if __name__ == '__main__':
package_data={ package_data={
'mhcflurry': ['downloads.yml'], 'mhcflurry': ['downloads.yml'],
}, },
install_requires=[ install_requires=required_packages,
'numpy>=1.11',
'pandas>=0.13.1',
'appdirs',
'theano>=0.8.2',
'keras==1.1.0',
'fancyimpute>=0.0.12',
'scikit-learn',
'h5py',
'typechecks',
'pepdata',
'futures',
'bottle',
'six',
],
long_description=readme, long_description=readme,
packages=['mhcflurry', 'mhcflurry.class1_allele_specific'], packages=['mhcflurry', 'mhcflurry.class1_allele_specific'],
) )
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment