#955 fixing ci build on appveyor

After bringing the miniconda env to work again, the wrong matplotlib version was used. This commit should fix that.
This commit is contained in:
Peter Paul Kiefer 2021-11-28 10:00:24 +01:00
parent a63306423d
commit 299b3b023a
2 changed files with 10 additions and 5 deletions

View file

@ -25,7 +25,8 @@ install:
- conda config --set always_yes yes --set changeps1 no
- conda update -q conda
- conda info -a
- "conda create -q -n build-environment python=%PYTHON_VERSION% numpy scipy matplotlib"
# github issue #955: freez build versions of numpy, scipy and matplotlib
- "conda create -q -n build-environment python=%PYTHON_VERSION% numpy=1.19.2 scipy=1.5.2 matplotlib=3.3.4"
- activate build-environment
# We need wheel installed to build wheels
- python -m pip install wheel

View file

@ -117,11 +117,13 @@ try:
except ModuleNotFoundError:
ext_mods = []
install_requirements = ['numpy>=1.7', 'six', 'paramz>=0.9.0', 'cython>=0.29']
# #955
install_requirements = ['numpy==1.19.2', 'six', 'paramz>=0.9.0', 'cython>=0.29']
if sys.version_info < (3, 6):
install_requirements += ['scipy>=1.3.0,<1.5.0']
else:
install_requirements += ['scipy>=1.3.0']
# #955
install_requirements += ['scipy==1.5.2']
setup(name = 'GPy',
version = __version__,
@ -168,13 +170,15 @@ setup(name = 'GPy',
include_package_data = True,
py_modules = ['GPy.__init__'],
test_suite = 'GPy.testing',
setup_requires = ['numpy>=1.7'],
# #955
setup_requires = ['numpy == 1.19.2'],
install_requires = install_requirements,
extras_require = {'docs':['sphinx'],
'optional':['mpi4py',
'ipython>=4.0.0',
],
'plotting':['matplotlib >= 3.0',
#matplotlib Version see github issue #955
'plotting':['matplotlib == 3.3.4',
'plotly >= 1.8.6'],
'notebook':['jupyter_client >= 4.0.6',
'ipywidgets >= 4.0.3',