Fix issues encountered in modern python versions (#1011)

* Update setup.py

remove special handling of scipy dependencies for old python versions

* Update __init__.py

replace numpy type by native type

* replace np.bool by bool
This commit is contained in:
Martin Bubel 2023-04-21 18:32:33 +02:00 committed by GitHub
parent f63ed48b0d
commit 3c3ec60dea
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
5 changed files with 7 additions and 11 deletions

View file

@ -119,11 +119,7 @@ except ModuleNotFoundError:
install_requirements = ['numpy>=1.7', 'six', 'paramz>=0.9.0', 'cython>=0.29']
matplotlib_version = 'matplotlib==3.3.4'
if sys.version_info < (3, 6):
install_requirements += ['scipy>=1.3.0,<1.5.0']
matplotlib_version = 'matplotlib==3.0.0'
else:
install_requirements += ['scipy>=1.3.0']
install_requirements += ['scipy>=1.3.0']
setup(name = 'GPy',
version = __version__,