Date: Wednesday, November 23, 2022 @ 08:34:54
  Author: arojas
Revision: 1352017

Fix build with latest meson-python and wheel

Modified:
  python-scipy/trunk/PKGBUILD

----------+
 PKGBUILD |   12 +++---------
 1 file changed, 3 insertions(+), 9 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD    2022-11-23 08:28:13 UTC (rev 1352016)
+++ PKGBUILD    2022-11-23 08:34:54 UTC (rev 1352017)
@@ -22,17 +22,11 @@
 
source=(https://pypi.python.org/packages/source/${_name:0:1}/$_name/$_name-$pkgver.tar.gz)
 sha256sums=('fbc5c05c85c1a02be77b1ff591087c83bc44579c6d2bd9fb798bb64ea5e1a027')
 
-prepare() {
-  cd $_name-$pkgver
-# meson-python does not allow passing options to meson yet
-  sed -e 's|blas=openblas|blas=blas|' -e 's|lapack=openblas|lapack=lapack|' -i 
meson.build
-# Relax dependency versions
-  sed -e 's|==|>=|g' -e 's|\,<[0-9]*\(.[0-9]\)*||g' -i pyproject.toml
-}
-
 build() {
   cd $_name-$pkgver
-  python -m build --wheel --no-isolation
+  python -m build --wheel --no-isolation --skip-dependency-check \
+    -C setup-args=-Dblas=blas \
+    -C setup-args=-Dlapack=lapack
 }
 
 check() {

Reply via email to