FreeBSD Bugzilla – Attachment 261580 Details for
Bug 287794
math/py-numpy: Migrate to PEP517
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
patch to build on pep517
math-py-numpy.patch (text/plain), 3.69 KB, created by
Matthew Wener
on 2025-06-25 01:00:53 UTC
(
hide
)
Description:
patch to build on pep517
Filename:
MIME Type:
Creator:
Matthew Wener
Created:
2025-06-25 01:00:53 UTC
Size:
3.69 KB
patch
obsolete
>From 6802e5385a9c46a49522234822cef2bd5a42a2ad Mon Sep 17 00:00:00 2001 >From: Matthew Wener <matthew@wener.org> >Date: Tue, 24 Jun 2025 20:07:19 -0400 >Subject: math/py-numpy: Migrate to PEP517 > >--- > math/py-numpy/Makefile | 44 ++++++++++++++++-------- > math/py-numpy/files/patch-pyproject.toml | 11 ++++++ > 2 files changed, 41 insertions(+), 14 deletions(-) > create mode 100644 math/py-numpy/files/patch-pyproject.toml > >diff --git a/math/py-numpy/Makefile b/math/py-numpy/Makefile >index 42a13b888..967070d6c 100644 >--- a/math/py-numpy/Makefile >+++ b/math/py-numpy/Makefile >@@ -18,16 +18,19 @@ WWW= https://www.numpy.org/ > LICENSE= BSD3CLAUSE > LICENSE_FILE= ${WRKSRC}/LICENSE.txt > >-TEST_DEPENDS= ${PYTHON_PKGNAMEPREFIX}pytest>=6.2.5:devel/py-pytest@${PY_FLAVOR} \ >- ${PYTHON_PKGNAMEPREFIX}hypothesis>=6.24.1:devel/py-hypothesis@${PY_FLAVOR} \ >+BUILD_DEPENDS= ${PY_SETUPTOOLS} \ >+ ${PYTHON_PKGNAMEPREFIX}meson-python>=0:devel/meson-python@${PY_FLAVOR} >+TEST_DEPENDS= ${PYTHON_PKGNAMEPREFIX}hypothesis>=6.24.1:devel/py-hypothesis@${PY_FLAVOR} \ >+ ${PYTHON_PKGNAMEPREFIX}pytest>=6.2.5:devel/py-pytest@${PY_FLAVOR} \ > ${PYTHON_PKGNAMEPREFIX}typing-extensions>=4.2.0:devel/py-typing-extensions@${PY_FLAVOR} > >-USES= compiler:c11 cpe fortran python:3.9+ >-USE_PYTHON= allflavors autoplist concurrent cython distutils >+USES= compiler:c11 cpe fortran pkgconfig python:3.9+ shebangfix >+USE_PYTHON= allflavors autoplist concurrent cython pep517 > >-GCCLIBDIR_CMDS= ${FC} -print-file-name=libgfortran.so | ${SED} -e s/libgfortran.so// >+GCCLIBDIR_CMDS= ${FC} -print-file-name=libgfortran.so | ${SED} -e \ >+ s/libgfortran.so// > LDFLAGS+= -s >-PYDISTUTILS_BUILDARGS= --fcompiler=gnu95 >+PYDISTUTILS_BUILDARGS= --fcompiler=gnu95 > PYDISTUTILS_CONFIGUREARGS= --fcompiler=gnu95 > > PIE_UNSAFE= yes >@@ -42,14 +45,27 @@ OPTIONS_SINGLE_BLASLIB= ATLAS NETLIB OPENBLAS > OPTIONS_DEFAULT= OPENBLAS SUITESPARSE > SUITESPARSE_DESC= Use AMD and UMFPACK in SuiteSparse > >-ATLAS_USES= blaslapack:atlas >-ATLAS_VARS= BLASLIBS="ptf77blas, ptcblas" BLASNAME=atlas LAPACKLIBS=alapack LIBRARIES=atlas_libs >-NETLIB_LIB_DEPENDS= libcblas.so:math/cblas >-NETLIB_USES= blaslapack:netlib >-NETLIB_VARS= BLASLIBS="blas, cblas" BLASNAME=atlas LAPACKLIBS=lapack LIBRARIES=atlas_libs >-OPENBLAS_USES= blaslapack:openblas >-OPENBLAS_VARS= BLASLIBS="openblas, gfortran" BLASNAME=openblas LAPACKLIBS="openblas, gfortran" LIBRARIES=libraries >-SUITESPARSE_LIB_DEPENDS=libumfpack.so:math/suitesparse-umfpack >+ATLAS_USES= blaslapack:atlas >+ATLAS_VARS= BLASLIBS="ptf77blas, ptcblas" \ >+ BLASNAME=atlas \ >+ LAPACKLIBS=alapack \ >+ LIBRARIES=atlas_libs >+NETLIB_LIB_DEPENDS= libcblas.so:math/cblas >+NETLIB_USES= blaslapack:netlib >+NETLIB_VARS= BLASLIBS="blas, cblas" \ >+ BLASNAME=atlas \ >+ LAPACKLIBS=lapack \ >+ LIBRARIES=atlas_libs >+OPENBLAS_USES= blaslapack:openblas >+OPENBLAS_VARS= BLASLIBS="openblas, gfortran" \ >+ BLASNAME=openblas \ >+ LAPACKLIBS="openblas, gfortran" \ >+ LIBRARIES=libraries >+SUITESPARSE_LIB_DEPENDS= libumfpack.so:math/suitesparse-umfpack >+ >+SHEBANG_FILES= numpy/f2py/crackfortran.py numpy/f2py/f2py2e.py \ >+ numpy/f2py/rules.py numpy/testing/print_coercion_tables.py \ >+ numpy/testing/setup.py > > post-extract: > @${TOUCH} ${WRKSRC}/numpy/f2py/tests/src/temp >diff --git a/math/py-numpy/files/patch-pyproject.toml b/math/py-numpy/files/patch-pyproject.toml >new file mode 100644 >index 000000000..3eb3c97a8 >--- /dev/null >+++ b/math/py-numpy/files/patch-pyproject.toml >@@ -0,0 +1,11 @@ >+--- pyproject.toml.orig 2025-06-24 22:40:55 UTC >++++ pyproject.toml >+@@ -2,7 +2,7 @@ requires = [ >+ build-backend = "mesonpy" >+ requires = [ >+ "Cython>=0.29.34,<3.1", >+- "meson-python>=0.15.0,<0.16.0", >++ "meson-python>=0.15.0", >+ ] >+ >+ [project] >-- >2.50.0 >
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 287794
:
261580
|
261877
|
264489