Commit 5ae99219 authored by Carlos Ramos Carreño's avatar Carlos Ramos Carreño

Move Matplotlib versions to slapos.cfg

Move the versions of matplotlib, matplotlib-inline and cycler pinned in
component/matplotlib/buildout.cfg to slapos.cfg.
The cycler version for Python 3.7 will be upgraded to 0.11.0 as it is
compatible.

One reason motivating this change is that the version of `cycler` in
stack/slapos.cfg is overriding the version specified in
component/matplotlib/buildout.cfg for the erp5-zope2 software release.
This is a problem because the former does not take into account the
Python version, while the later does.
Thus, attempting to compile erp5-zope2 would give the following error:

```
Getting distribution for 'cycler==0.11.0'.
DEPRECATION: Python 2.7 reached the end of its life on January 1st, 2020. Please upgrade your Python as Python 2.7 is no longer maintained. pip 21.0 will drop support for Python 2.7 in January 2021. More details about Python 2 support in pip can be found at https://pip.pypa.io/en/latest/development/release-process/#python-2-support pip 21.0 will remove support for this functionality.
ERROR: Package 'cycler' requires a different Python: 2.7.18 not in '>=3.6'
While:
  Installing matplotlib.
  Base installation request: 'cycler', 'python-dateutil', 'numpy'
  Getting distribution for 'cycler==0.11.0'.
```

This adds the right version of `cycler` for Python 2 in `slapos.cfg`, so
that it does not fail.
parent f01a33dd
...@@ -36,11 +36,3 @@ rpath = ...@@ -36,11 +36,3 @@ rpath =
${libpng:location}/lib ${libpng:location}/lib
${freetype:location}/lib ${freetype:location}/lib
need-matplotlibrc = ${matplotlibrc:location} need-matplotlibrc = ${matplotlibrc:location}
[versions]
matplotlib = 2.1.2
cycler = 0.11.0
matplotlib-inline = 0.1.6:whl
[versions:sys.version_info < (3,8)]
cycler = 0.10.0
...@@ -269,6 +269,7 @@ lxml-html-clean = 0.1.1 ...@@ -269,6 +269,7 @@ lxml-html-clean = 0.1.1
manuel = 1.11.2 manuel = 1.11.2
MarkupSafe = 2.1.3 MarkupSafe = 2.1.3
matplotlib = 2.1.2 matplotlib = 2.1.2
matplotlib-inline = 0.1.6:whl
meld3 = 1.0.2 meld3 = 1.0.2
mistune = 0.8.4 mistune = 0.8.4
mock = 3.0.5 mock = 3.0.5
...@@ -435,6 +436,7 @@ beautifulsoup4 = 4.8.2 ...@@ -435,6 +436,7 @@ beautifulsoup4 = 4.8.2
certifi = 2020.4.5.1 certifi = 2020.4.5.1
charset-normalizer = 2.0.12 charset-normalizer = 2.0.12
click = 6.7 click = 6.7
cycler = 0.10.0
distro = 1.6.0 distro = 1.6.0
feedparser = 5.2.1 feedparser = 5.2.1
Flask = 1.1.2 Flask = 1.1.2
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment