Skip to content

Commit

Permalink
fix scipy version for python 2
Browse files Browse the repository at this point in the history
  • Loading branch information
Irina Evdokimova authored and Irina Evdokimova committed Nov 11, 2019
1 parent 6358413 commit 8e29260
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
5 changes: 3 additions & 2 deletions python-package/setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,8 +40,9 @@
# this is the golden line
include_package_data=True,
install_requires=[
"numpy",
"scipy"
'numpy',
'scipy<1.3.0; python_version<"3"',
'scipy>=1.3.0; python_version>="3"'
],
data_files=[('xlearn', LIB_PATH)],
license='Apache-2.0',
Expand Down
5 changes: 3 additions & 2 deletions python-package/setup_pip.py
Original file line number Diff line number Diff line change
Expand Up @@ -121,8 +121,9 @@ def run(self):
# this is the golden line
include_package_data=True,
install_requires=[
"numpy",
"scipy"
'numpy',
'scipy<1.3.0; python_version<"3"',
'scipy>=1.3.0; python_version>="3"'
],
# move data to MANIFEST.in
license='Apache-2.0',
Expand Down

0 comments on commit 8e29260

Please sign in to comment.