diff options
Diffstat (limited to 'development/python3-numpy')
-rw-r--r-- | development/python3-numpy/python3-numpy.SlackBuild | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/development/python3-numpy/python3-numpy.SlackBuild b/development/python3-numpy/python3-numpy.SlackBuild index 3a1c1389f2..37fda0775c 100644 --- a/development/python3-numpy/python3-numpy.SlackBuild +++ b/development/python3-numpy/python3-numpy.SlackBuild @@ -57,6 +57,9 @@ PKG=$TMP/package-$PRGNAM OUTPUT=${OUTPUT:-/tmp} PYVER=${PYVER:-$(python3 -c 'import sys; print("%d.%d" % sys.version_info[:2])')} +# 46and2: needed to fix issue caused by python3-pyproject-metadata 0.9.1 upgrade +# newer python3-packaging-opt needs to be used +export PYTHONPATH=/opt/python$PYVER/site-packages which python$PYVER 2>/dev/null 1>/dev/null [ "$?" = "0" ] || { echo "Can't find python$PYVER. Exiting now ..." @@ -134,7 +137,12 @@ fi mkdir -p $PKG/usr/include cd $PKG/usr/include - ln -s $(ls -d /usr/lib${LIBDIRSUFFIX}/python$PYVER/site-packages)/numpy/core/include/numpy + # Location varies according to VERSION in 15.0 & -current + if [ -x /usr/bin/gcc-11.* ]; then + ln -s $(ls -d /usr/lib${LIBDIRSUFFIX}/python$PYVER/site-packages)/numpy/core/include/numpy + else + ln -s $(ls -d /usr/lib${LIBDIRSUFFIX}/python$PYVER/site-packages)/numpy/_core/include/numpy + fi cd - mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION |