summaryrefslogtreecommitdiff
path: root/math
diff options
context:
space:
mode:
Diffstat (limited to 'math')
-rw-r--r--math/py-blis/Makefile3
-rw-r--r--math/py-blis/files/patch-pyproject.toml11
-rw-r--r--math/py-blis/files/patch-setup.py6
-rw-r--r--math/py-pyreadstat/Makefile3
-rw-r--r--math/py-pyreadstat/files/patch-setup.py14
5 files changed, 6 insertions, 31 deletions
diff --git a/math/py-blis/Makefile b/math/py-blis/Makefile
index a8040e41539c..153586695a61 100644
--- a/math/py-blis/Makefile
+++ b/math/py-blis/Makefile
@@ -1,5 +1,6 @@
PORTNAME= blis
PORTVERSION= 1.3.0
+PORTREVISION= 1
CATEGORIES= math python
MASTER_SITES= PYPI \
https://github.com/explosion/cython-blis/releases/download/release-v${PORTVERSION}/
@@ -18,7 +19,7 @@ BUILD_DEPENDS= ${PYTHON_PKGNAMEPREFIX}numpy>=1.19.3,1<3.0.0,1:math/py-numpy@${PY
RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}numpy>=1.19.0,1<3.0.0,1:math/py-numpy@${PY_FLAVOR}
USES= python
-USE_PYTHON= autoplist concurrent cython pep517
+USE_PYTHON= autoplist concurrent cython3 pep517
post-install:
${FIND} ${STAGEDIR}${PYTHON_SITELIBDIR} -name '*.so' -exec ${STRIP_CMD} {} +
diff --git a/math/py-blis/files/patch-pyproject.toml b/math/py-blis/files/patch-pyproject.toml
deleted file mode 100644
index 6e108948eb19..000000000000
--- a/math/py-blis/files/patch-pyproject.toml
+++ /dev/null
@@ -1,11 +0,0 @@
---- pyproject.toml.orig 2025-04-03 12:23:45 UTC
-+++ pyproject.toml
-@@ -1,7 +1,7 @@ requires = [
- [build-system]
- requires = [
- "setuptools",
-- "cython>=3.0,<4.0",
-+ "cython>=0,<4.0",
- "numpy>=1.19.3,<3.0.0"
- ]
- build-backend = "setuptools.build_meta"
diff --git a/math/py-blis/files/patch-setup.py b/math/py-blis/files/patch-setup.py
index 7f66284b12b2..ebd4020cd70d 100644
--- a/math/py-blis/files/patch-setup.py
+++ b/math/py-blis/files/patch-setup.py
@@ -1,12 +1,10 @@
--- setup.py.orig 2025-04-03 12:23:45 UTC
+++ setup.py
-@@ -302,8 +302,8 @@ setup(
-
+@@ -303,7 +303,7 @@ setup(
setup(
setup_requires=[
-- "cython>=3.0,<4.0",
+ "cython>=3.0,<4.0",
- "numpy>=2.0.0,<3.0.0",
-+ "cython>=0,<4.0",
+ "numpy>=1.19.0,<3.0.0",
],
install_requires=[
diff --git a/math/py-pyreadstat/Makefile b/math/py-pyreadstat/Makefile
index a4fc50048746..28702f0c4c52 100644
--- a/math/py-pyreadstat/Makefile
+++ b/math/py-pyreadstat/Makefile
@@ -1,5 +1,6 @@
PORTNAME= pyreadstat
PORTVERSION= 1.2.9
+PORTREVISION= 1
CATEGORIES= math python
MASTER_SITES= PYPI
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
@@ -17,7 +18,7 @@ BUILD_DEPENDS= ${PYTHON_PKGNAMEPREFIX}setuptools>=0:devel/py-setuptools@${PY_FLA
RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}pandas>=1.2.0,1:math/py-pandas@${PY_FLAVOR}
USES= python
-USE_PYTHON= autoplist concurrent cython pep517
+USE_PYTHON= autoplist concurrent cython3 pep517
post-install:
${FIND} ${STAGEDIR}${PYTHON_SITELIBDIR} -name '*.so' -exec ${STRIP_CMD} {} +
diff --git a/math/py-pyreadstat/files/patch-setup.py b/math/py-pyreadstat/files/patch-setup.py
deleted file mode 100644
index ee04a6d9cc21..000000000000
--- a/math/py-pyreadstat/files/patch-setup.py
+++ /dev/null
@@ -1,14 +0,0 @@
---- setup.py.orig 2024-10-18 20:21:39 UTC
-+++ setup.py
-@@ -26,11 +26,6 @@ if PY_MAJOR_VERSION < 3 and os.name == 'nt':
- if PY_MAJOR_VERSION < 3 and os.name == 'nt':
- raise Exception("Python 2 is not supported on Windows.")
-
--cyver = int(Cython.__version__.split(".")[0])
--if cyver < 3:
-- msg = "Cython version 3 or newer required"
-- raise Exception(msg)
--
- ext = '.pyx'
-
-