|
38 | 38 | README = f.read() |
39 | 39 |
|
40 | 40 | # require users to install jaxlib before installing brainpy on Windows platform |
| 41 | +requirements = ['numpy>=1.15', 'jax>=0.3.0', 'tqdm'] |
41 | 42 | if sys.platform.startswith('win32') or sys.platform.startswith('cygwin'): |
42 | 43 | try: |
43 | 44 | import jaxlib |
|
52 | 53 | ---------------------------------------------------------------------- |
53 | 54 |
|
54 | 55 | ''') from None |
| 56 | +else: |
| 57 | + requirements.append('jaxlib>=0.3.0') |
55 | 58 |
|
56 | | - |
| 59 | +# installation packages |
57 | 60 | packages = find_packages() |
58 | 61 | if 'docs' in packages: |
59 | 62 | packages.remove('docs') |
|
71 | 74 | |
72 | 75 | packages=packages, |
73 | 76 | python_requires='>=3.7', |
74 | | - install_requires=[ |
75 | | - 'numpy>=1.15', |
76 | | - 'jax>=0.3.0', |
77 | | - 'jaxlib>=0.3.0', |
78 | | - 'tqdm', |
79 | | - ], |
| 77 | + install_requires=requirements, |
80 | 78 | url='https://github.com/PKU-NIP-Lab/BrainPy', |
81 | 79 | project_urls={ |
82 | 80 | "Bug Tracker": "https://github.com/PKU-NIP-Lab/BrainPy/issues", |
83 | 81 | "Documentation": "https://brainpy.readthedocs.io/", |
84 | 82 | "Source Code": "https://github.com/PKU-NIP-Lab/BrainPy", |
85 | 83 | }, |
86 | | - keywords='computational neuroscience, ' |
87 | | - 'brain-inspired computation, ' |
88 | | - 'dynamical systems, ' |
89 | | - 'differential equations, ' |
90 | | - 'brain modeling, ' |
91 | | - 'brain dynamics modeling, ' |
92 | | - 'brain dynamics programming', |
| 84 | + keywords=('computational neuroscience, ' |
| 85 | + 'brain-inspired computation, ' |
| 86 | + 'dynamical systems, ' |
| 87 | + 'differential equations, ' |
| 88 | + 'brain modeling, ' |
| 89 | + 'brain dynamics modeling, ' |
| 90 | + 'brain dynamics programming'), |
93 | 91 | classifiers=[ |
94 | 92 | 'Natural Language :: English', |
95 | 93 | 'Operating System :: OS Independent', |
|
0 commit comments