Skip to content

Commit

Permalink
Merge pull request #303 from iamrinni/fix_scipy_version
Browse files Browse the repository at this point in the history
fix scipy version for python 2.7
  • Loading branch information
aksnzhy authored Nov 12, 2019
2 parents 6358413 + 8e29260 commit 4406ee9
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 4406ee9

Please sign in to comment.