mirror of
https://git.FreeBSD.org/ports.git
synced 2024-11-18 00:10:04 +00:00
science/py-dwave-optimization: Add USE_PYTHON=pep517
This fixes the problem with the missing plist file.
This commit is contained in:
parent
30ff29b9b0
commit
fcda9d40c1
@ -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
|
||||
|
||||
|
13
science/py-dwave-optimization/files/patch-pyproject.toml
Normal file
13
science/py-dwave-optimization/files/patch-pyproject.toml
Normal file
@ -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",
|
@ -1 +0,0 @@
|
||||
%%PYTHON_SITELIBDIR%%/dwave/optimization/libdwave-optimization.so
|
Loading…
Reference in New Issue
Block a user