|
1 | 1 | #!/usr/bin/env python |
2 | 2 |
|
| 3 | +# Author: Remi Flamary <remi.flamary@polytechnique.edu> |
| 4 | +# |
| 5 | +# License: MIT License |
3 | 6 |
|
4 | 7 | import os |
5 | 8 | import re |
|
46 | 49 | sdk_path = subprocess.check_output(['xcrun', '--show-sdk-path']) |
47 | 50 | os.environ['CFLAGS'] = '-isysroot "{}"'.format(sdk_path.rstrip().decode("utf-8")) |
48 | 51 |
|
49 | | -with open('requirements_all.txt') as f: |
50 | | - optional_requirements = f.read().splitlines() |
51 | 52 |
|
52 | 53 | setup( |
53 | 54 | name='POT', |
|
74 | 75 | data_files=[], |
75 | 76 | install_requires=["numpy>=1.16", "scipy>=1.6"], |
76 | 77 | extras_require={ |
77 | | - 'backend-numpy': [], # in requirements. |
78 | | - 'backend-jax': ['jax<=0.4.24', 'jaxlib<=0.4.24'], |
79 | | - 'backend-cupy': [], # should be installed with conda, not pip, or figure out what CUDA version above. |
| 78 | + 'backend-numpy': [], # in requirements. |
| 79 | + 'backend-jax': ['jax', 'jaxlib'], |
| 80 | + 'backend-cupy': [], # should be installed with conda, not pip |
80 | 81 | 'backend-tf': ['tensorflow'], |
81 | 82 | 'backend-torch': ['torch'], |
82 | | - 'cvxopt': ['cvxopt'], # on it's own to prevent accidental GPL violations |
| 83 | + 'cvxopt': ['cvxopt'], # on it's own to prevent accidental GPL violations |
83 | 84 | 'dr': ['scikit-learn', 'pymanopt', 'autograd'], |
84 | 85 | 'gnn': ['torch', 'torch_geometric'], |
85 | | - 'all': optional_requirements |
| 86 | + 'plot': ['matplotlib'], |
| 87 | + 'all': ['jax', 'jaxlib', 'tensorflow', 'torch', 'cvxopt', 'scikit-learn', 'pymanopt', 'autograd', 'torch_geometric', 'matplotlib'] |
86 | 88 | }, |
87 | 89 | python_requires=">=3.7", |
88 | 90 | classifiers=[ |
|
0 commit comments