diff --git a/devel/py-pythran/Makefile b/devel/py-pythran/Makefile index 4c37f7bdf750..0e782ce91e75 100644 --- a/devel/py-pythran/Makefile +++ b/devel/py-pythran/Makefile @@ -1,31 +1,32 @@ PORTNAME= pythran PORTVERSION= 0.17.0 +PORTREVISION= 1 CATEGORIES= devel python MASTER_SITES= PYPI PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} MAINTAINER= wen@FreeBSD.org COMMENT= Ahead of Time compiler for numeric kernels WWW= https://github.com/serge-sans-paille/pythran LICENSE= BSD3CLAUSE LICENSE_FILE= ${WRKSRC}/LICENSE BUILD_DEPENDS= ${PYTHON_PKGNAMEPREFIX}setuptools>=0:devel/py-setuptools@${PY_FLAVOR} \ ${PYTHON_PKGNAMEPREFIX}wheel>=0:devel/py-wheel@${PY_FLAVOR} RUN_DEPENDS= ${PYNUMPY} \ ${PYTHON_PKGNAMEPREFIX}ply>=3.4:devel/py-ply@${PY_FLAVOR} \ ${PYTHON_PKGNAMEPREFIX}gast>=0.5.0:devel/py-gast@${PY_FLAVOR} \ ${PYTHON_PKGNAMEPREFIX}beniget>=0.4.0:devel/py-beniget@${PY_FLAVOR} USES= python USE_PYTHON= autoplist concurrent pep517 NO_ARCH= yes post-extract: ${RM} ${WRKSRC}/third_party/xsimd/config/*.rej ${RM} ${WRKSRC}/third_party/xsimd/*.rej ${RM} ${WRKSRC}/third_party/xsimd/math/.xsimd_gamma.hpp.swp .include diff --git a/devel/py-pythran/files/patch-pythran_dist.py b/devel/py-pythran/files/patch-pythran_dist.py new file mode 100644 index 000000000000..10a0ee69fd59 --- /dev/null +++ b/devel/py-pythran/files/patch-pythran_dist.py @@ -0,0 +1,11 @@ +--- pythran/dist.py.orig 2024-10-17 07:42:48 UTC ++++ pythran/dist.py +@@ -92,7 +92,7 @@ class PythranBuildExtMixIn(object): + return find_exe(exe, *args, **kwargs) + + msvc._find_exe = _find_exe +- except ImportError: ++ except (AttributeError, ImportError): + pass + + # In general, distutils uses -Wstrict-prototypes, but this option