Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
26 changes: 16 additions & 10 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,10 +35,12 @@
#===============================================================================

from __future__ import print_function

import codecs
import os
import sys
from setuptools import setup, Extension
import codecs

from setuptools import Extension, setup

try:
ModuleNotFoundError
Expand Down Expand Up @@ -117,13 +119,16 @@ def ismac():
except ModuleNotFoundError:
ext_mods = []

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 = [
"numpy>=1.7",
"six",
"paramz>=0.9.0",
"cython>=0.29",
'scipy>=1.3.0,<1.5.0;python_version<"3.6"',
'scipy>=1.3.0;python_version>="3.6"',
]



setup(name = 'GPy',
version = __version__,
Expand Down Expand Up @@ -177,7 +182,8 @@ def ismac():
'ipython>=4.0.0',
],
#matplotlib Version see github issue #955
'plotting':[matplotlib_version,
'plotting':['matplotlib==3.0.0;python_version<"3.6"',
'matplotlib==3.3.4;python_version>="3.6"',
'plotly >= 1.8.6'],
'notebook':['jupyter_client >= 4.0.6',
'ipywidgets >= 4.0.3',
Expand Down