git: fcda9d40c1f3 - main - science/py-dwave-optimization: Add USE_PYTHON=pep517
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Mon, 15 Jul 2024 16:33:33 UTC
The branch main has been updated by yuri: URL: https://cgit.FreeBSD.org/ports/commit/?id=fcda9d40c1f387af1b4a5bbc37c5eccf1c02f6aa commit fcda9d40c1f387af1b4a5bbc37c5eccf1c02f6aa Author: Yuri Victorovich <yuri@FreeBSD.org> AuthorDate: 2024-07-15 16:22:23 +0000 Commit: Yuri Victorovich <yuri@FreeBSD.org> CommitDate: 2024-07-15 16:33:30 +0000 science/py-dwave-optimization: Add USE_PYTHON=pep517 This fixes the problem with the missing plist file. --- science/py-dwave-optimization/Makefile | 5 +++-- science/py-dwave-optimization/files/patch-pyproject.toml | 13 +++++++++++++ science/py-dwave-optimization/pkg-plist | 1 - 3 files changed, 16 insertions(+), 3 deletions(-) diff --git a/science/py-dwave-optimization/Makefile b/science/py-dwave-optimization/Makefile index e083627cbd61..67ae159ccff6 100644 --- a/science/py-dwave-optimization/Makefile +++ b/science/py-dwave-optimization/Makefile @@ -13,12 +13,13 @@ LICENSE_FILE= ${WRKSRC}/LICENSE BUILD_DEPENDS= ${PYTHON_PKGNAMEPREFIX}cython3>0:lang/cython3@${PY_FLAVOR} \ ${PYNUMPY} \ - ${PYTHON_PKGNAMEPREFIX}setuptools-dso>=2.10:devel/py-setuptools-dso@${PY_FLAVOR} + ${PYTHON_PKGNAMEPREFIX}setuptools-dso>=2.10:devel/py-setuptools-dso@${PY_FLAVOR} \ + ${PYTHON_PKGNAMEPREFIX}wheel>0:devel/py-wheel@${PY_FLAVOR} RUN_DEPENDS= ${PYNUMPY} \ ${PYTHON_PKGNAMEPREFIX}reno>=4.1.0:textproc/py-reno@${PY_FLAVOR} USES= python -USE_PYTHON= distutils cython autoplist +USE_PYTHON= pep517 cython autoplist POST_PLIST= fix-plist diff --git a/science/py-dwave-optimization/files/patch-pyproject.toml b/science/py-dwave-optimization/files/patch-pyproject.toml new file mode 100644 index 000000000000..266f645a6998 --- /dev/null +++ b/science/py-dwave-optimization/files/patch-pyproject.toml @@ -0,0 +1,13 @@ +--- pyproject.toml.orig 2024-07-15 16:16:29 UTC ++++ pyproject.toml +@@ -1,8 +1,8 @@ requires = [ + [build-system] + requires = [ +- "cython==3.0.8", ++ "cython>=3.0.8", + 'numpy==1.19.0;python_version<"3.9"', # C API for numpy.random +- 'oldest-supported-numpy;python_version>="3.9"', ++ 'numpy;python_version>="3.9"', + "setuptools>=46.4.0", + "setuptools_dso>=2.10,<3.0;platform_system != 'Windows'", # On Windows we don't distribute a dynamic library + "wheel>=0.30.0", diff --git a/science/py-dwave-optimization/pkg-plist b/science/py-dwave-optimization/pkg-plist deleted file mode 100644 index c9c2eb9a150b..000000000000 --- a/science/py-dwave-optimization/pkg-plist +++ /dev/null @@ -1 +0,0 @@ -%%PYTHON_SITELIBDIR%%/dwave/optimization/libdwave-optimization.so