mantidproject / mantid

Main repository for Mantid code
https://www.mantidproject.org
GNU General Public License v3.0
210 stars 122 forks source link

Build matplotlib 2.2.4 for RHEL7 #27269

Closed peterfpeterson closed 4 years ago

peterfpeterson commented 4 years ago

v2.2.4 LTS appears to be the last one that supports python2 which is needed (in the short term) for RHEL7 development.

peterfpeterson commented 4 years ago

koschei has a srpm for v2.2.4 on fc29 and has results for python2 and python3. fc30 and rhel8 made the switch to python3 only.

peterfpeterson commented 4 years ago

After tracking down the rpm and making pseudo-random changes to package names in the spec file, what is left missing is:

peterfpeterson commented 4 years ago

Backporting cycler and kiwisolver from fc29 was straightforward. This also required backporting wxpython from fc29. There is an error while compiling related to qhull. The message is

gcc -pthread -fno-strict-aliasing -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -m64 -mtune=generic -D_GNU_SOURCE -fPIC -fwrapv -DNDEBUG -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -m64 -mtune=generic -D_GNU_SOURCE -fPIC -fwrapv -fPIC -DMPL_DEVNULL=/dev/null -DPY_ARRAY_UNIQUE_SYMBOL=MPL_matplotlib__qhull_ARRAY_API -DNPY_NO_DEPRECATED_API=NPY_1_7_API_VERSION -D__STDC_FORMAT_MACROS=1 -I/usr/lib64/python2.7/site-packages/numpy/core/include -Iextern -I/usr/local/include -I/usr/include -I. -I/usr/include/python2.7 -c src/qhull_wrap.c -o build/temp.linux-x86_64-2.7/src/qhull_wrap.o
src/qhull_wrap.c:10:30: fatal error: libqhull/qhull_a.h: No such file or directory
 #include "libqhull/qhull_a.h"
                              ^
compilation terminated.

Even though there is a file /usr/include/qhull/qhull_a.h