forked from ports/contrib
python3-numpy: new dependency: meson-python; fixes problems with dependent ports
This commit is contained in:
parent
b389ce46d1
commit
ba09547699
File diff suppressed because it is too large
Load Diff
@ -1,5 +1,5 @@
|
|||||||
untrusted comment: verify with /etc/ports/contrib.pub
|
untrusted comment: verify with /etc/ports/contrib.pub
|
||||||
RWSagIOpLGJF34HPDWLwdeIgkhZwbSFV4aG5iCy4Pi0201lS4W6TD+o0jrGSIDijq1V2lTn4TCiGmpiPFhFHIw/Vi8sFtGW6mw4=
|
RWSagIOpLGJF3+wbRkQY+sRjPBCOx6P/aLqsfYi5bkHP7gW7qRWhy7p7ru2xqeDGMEIN0VYDOkXoBjnLkru3g16Dx9EiKb1qEAk=
|
||||||
SHA256 (Pkgfile) = 45e689161369b1a4840b0b4f231bc3b0403473d39322805eb5c04bed2b311bb5
|
SHA256 (Pkgfile) = 2db7d02d1564809652a188cd5cf156a0e252de139f91349e826a8d6813444aa3
|
||||||
SHA256 (.footprint) = 2b3fe2611024fdbf3a644b1487904f2929ab343e54f55b62f1cef292f53edcfa
|
SHA256 (.footprint) = a6d6307411f1997376788edb410d2eed320b23c3bfe0ce6a64324164583471a9
|
||||||
SHA256 (numpy-1.26.0.tar.gz) = f93fc78fe8bf15afe2b8d6b6499f1c73953169fad1e9a8dd086cdff3190e7fdf
|
SHA256 (numpy-1.26.0.tar.gz) = f93fc78fe8bf15afe2b8d6b6499f1c73953169fad1e9a8dd086cdff3190e7fdf
|
||||||
|
@ -1,29 +1,23 @@
|
|||||||
# Description: Array processing for numbers, strings, records, and objects with Python
|
# Description: Array processing for numbers, strings, records, and objects with Python
|
||||||
# URL: https://numpy.org/
|
# URL: https://numpy.org
|
||||||
# Maintainer: Tim Biermann, tbier at posteo dot de
|
# Maintainer: Tim Biermann, tbier at posteo dot de
|
||||||
# Depends on: lapack python3-cython
|
# Depends on: lapack python3-cython python3-build python3-wheel python3-installer meson-python
|
||||||
#python3-pyproject-metadata
|
|
||||||
|
|
||||||
name=python3-numpy
|
name=python3-numpy
|
||||||
version=1.26.0
|
version=1.26.0
|
||||||
release=1
|
release=2
|
||||||
source=(https://github.com/${name#*-}/${name#*-}/releases/download/v$version/${name#*-}-$version.tar.gz)
|
source=(https://github.com/numpy/numpy/releases/download/v$version/numpy-$version.tar.gz)
|
||||||
|
|
||||||
build() {
|
build() {
|
||||||
export CFLAGS+=' -fno-strict-aliasing'
|
cd numpy-$version
|
||||||
export ATLAS=None
|
|
||||||
export LDFLAGS="$LDFLAGS -shared"
|
|
||||||
|
|
||||||
## broken port, this requires an older setuptools
|
CFLAGS+=" -ffat-lto-objects" \
|
||||||
cd ${name#*-}-$version
|
CXXFLAGS+=" -ffat-lto-objects" \
|
||||||
|
/usr/bin/python3 -m build --wheel --no-isolation \
|
||||||
|
-Csetup-args="-Dblas=blas" \
|
||||||
|
-Csetup-args="-Dlapack=lapack"
|
||||||
|
|
||||||
/usr/bin/python3 setup.py build
|
/usr/bin/python3 -m installer --destdir=$PKG dist/*.whl
|
||||||
/usr/bin/python3 setup.py install --prefix=/usr \
|
|
||||||
--root=$PKG \
|
|
||||||
--skip-build
|
|
||||||
|
|
||||||
local pyv="$(python3 -c "import sys; print (sys.version_info[0], sys.version_info[1])" | sed -e 's/\ /./g')"
|
|
||||||
rm $PKG/usr/lib/python$pyv/site-packages/numpy/LICENSE.txt
|
|
||||||
find $PKG \( \
|
find $PKG \( \
|
||||||
-iname "LICENSE.txt" -o \
|
-iname "LICENSE.txt" -o \
|
||||||
-iname "*README*" \
|
-iname "*README*" \
|
||||||
|
Loading…
x
Reference in New Issue
Block a user