I cloned my own fork of the MatPlotLib repository, as indicated in the Contributing documentation, created a virtual environment in the project and when I run pip install -e .
I get the following output:
Obtaining file:///home/my_home/matplotlib
Requirement already satisfied: cycler>=0.10 in ./venv/lib/python3.9/site-packages (from matplotlib==3.3.4+2316.g99d19f7ff) (0.10.0)
Requirement already satisfied: kiwisolver>=1.0.1 in ./venv/lib/python3.9/site-packages (from matplotlib==3.3.4+2316.g99d19f7ff) (1.3.1)
Requirement already satisfied: numpy>=1.16 in ./venv/lib/python3.9/site-packages (from matplotlib==3.3.4+2316.g99d19f7ff) (1.20.0)
Requirement already satisfied: pillow>=6.2.0 in ./venv/lib/python3.9/site-packages (from matplotlib==3.3.4+2316.g99d19f7ff) (8.1.0)
Requirement already satisfied: pyparsing>=2.2.1 in ./venv/lib/python3.9/site-packages (from matplotlib==3.3.4+2316.g99d19f7ff) (2.4.7)
Requirement already satisfied: python-dateutil>=2.7 in ./venv/lib/python3.9/site-packages (from matplotlib==3.3.4+2316.g99d19f7ff) (2.8.1)
Requirement already satisfied: six in ./venv/lib/python3.9/site-packages (from cycler>=0.10->matplotlib==3.3.4+2316.g99d19f7ff) (1.15.0)
Installing collected packages: matplotlib
Running setup.py develop for matplotlib
ERROR: Command errored out with exit status 1:
command: /home/my_home/matplotlib/venv/bin/python3 -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/home/my_home/matplotlib/setup.py'"'"'; __file__='"'"'/home/my_home/matplotlib/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' develop --no-deps
cwd: /home/my_home/matplotlib/
Complete output (28 lines):
WARNING: The wheel package is not available.
Edit setup.cfg to change the build options; suppress output with --quiet.
BUILDING MATPLOTLIB
matplotlib: yes [3.3.4+2316.g99d19f7ff]
python: yes [3.9.1 (default, Feb 4 2021, 17:55:50) [GCC 5.4.0 20160609]]
platform: yes [linux]
tests: no [skipping due to configuration]
macosx: no [Mac OS-X only]
running develop
running egg_info
writing lib/matplotlib.egg-info/PKG-INFO
writing dependency_links to lib/matplotlib.egg-info/dependency_links.txt
writing namespace_packages to lib/matplotlib.egg-info/namespace_packages.txt
writing requirements to lib/matplotlib.egg-info/requires.txt
writing top-level names to lib/matplotlib.egg-info/top_level.txt
reading manifest file 'lib/matplotlib.egg-info/SOURCES.txt'
reading manifest template 'MANIFEST.in'
warning: no previously-included files matching '*' found under directory 'lib/matplotlib/backends/web_backend/node_modules'
writing manifest file 'lib/matplotlib.egg-info/SOURCES.txt'
running build_ext
gcc-5 -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -g -O3 -Wall -fPIC -I/home/my_home/matplotlib/venv/include -I/home/linuxbrew/.linuxbrew/Cellar/python@3.9/3.9.1_9/include/python3.9 -c /tmp/tmpukefrkl3.cpp -o tmp/tmpukefrkl3.o -fvisibility=hidden
gcc-5 -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -g -O3 -Wall -fPIC -I/home/my_home/matplotlib/venv/include -I/home/linuxbrew/.linuxbrew/Cellar/python@3.9/3.9.1_9/include/python3.9 -c /tmp/tmpv7jal0u4.cpp -o tmp/tmpv7jal0u4.o -fvisibility-inlines-hidden
building 'matplotlib.backends._backend_agg' extension
gcc-5 -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -g -O3 -Wall -fPIC -DPY_ARRAY_UNIQUE_SYMBOL=MPL_matplotlib_backends__backend_agg_ARRAY_API -DNPY_NO_DEPRECATED_API=NPY_1_7_API_VERSION -D__STDC_FORMAT_MACROS=1 -DFREETYPE_BUILD_TYPE=local -Ibuild/freetype-2.6.1/include -Iextern/agg24-svn/include -I/home/my_home/matplotlib/venv/lib/python3.9/site-packages/numpy/core/include -I/home/my_home/matplotlib/venv/include -I/home/linuxbrew/.linuxbrew/Cellar/python@3.9/3.9.1_9/include/python3.9 -c extern/agg24-svn/src/agg_bezier_arc.cpp -o build/temp.linux-x86_64-3.9/extern/agg24-svn/src/agg_bezier_arc.o
error: command 'gcc-5' failed: No such file or directory
----------------------------------------
ERROR: Command errored out with exit status 1: /home/my_home/matplotlib/venv/bin/python3 -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/home/my_home/matplotlib/setup.py'"'"'; __file__='"'"'/home/my_home/matplotlib/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' develop --no-deps Check the logs for full command output.
Did anyone found this error before? How can I fix it?
Thanks