aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYuri Victorovich <yuri@FreeBSD.org>2023-03-20 06:05:44 +0000
committerYuri Victorovich <yuri@FreeBSD.org>2023-03-20 06:05:44 +0000
commit9f5d0a66ddb8a315dd8ef92754d90ad1ddddf8f8 (patch)
tree4bf4189e804ca92878dc55aa7b87f4c22f163d42
parent907b306ff75215383fe54ba0bea01ac2c999f172 (diff)
downloadports-9f5d0a66ddb8a315dd8ef92754d90ad1ddddf8f8.tar.gz
ports-9f5d0a66ddb8a315dd8ef92754d90ad1ddddf8f8.zip
biology/py-scikit-bio: Update 0.5.7 → 0.5.7
Reported by: portscout
-rw-r--r--biology/py-scikit-bio/Makefile12
1 files changed, 9 insertions, 3 deletions
diff --git a/biology/py-scikit-bio/Makefile b/biology/py-scikit-bio/Makefile
index c2d78cbcac7b..2d1d90692cca 100644
--- a/biology/py-scikit-bio/Makefile
+++ b/biology/py-scikit-bio/Makefile
@@ -1,6 +1,5 @@
PORTNAME= scikit-bio
-PORTVERSION= 0.5.7
-PORTREVISION= 2
+DISTVERSION= 0.5.7
CATEGORIES= biology education python
MASTER_SITES= PYPI
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
@@ -29,7 +28,9 @@ RUN_DEPENDS= ${PYNUMPY} \
${PYTHON_PKGNAMEPREFIX}scipy>=1.3.0:science/py-scipy@${PY_FLAVOR}
USES= python:3.7+
-USE_PYTHON= distutils cython autoplist
+USE_PYTHON= distutils cython autoplist pytest # tests fail to run, see https://github.com/biocore/scikit-bio/issues/1846
+
+TEST_ENV= ${MAKE_ENV} PYTHONPATH=${STAGEDIR}${PYTHONPREFIX_SITELIBDIR}
CONFLICTS_INSTALL= ${PYTHON_PKGNAMEPREFIX}ddtrace # lib/python3.8/site-packages/benchmarks/__init__.py
@@ -40,4 +41,9 @@ CFLAGS+= -msse2 # workaround for https://github.com/biocore/scikit-bio/issues/17
CXXFLAGS+= -msse2
.endif
+post-install:
+ @${STRIP_CMD} \
+ ${STAGEDIR}${PYTHONPREFIX_SITELIBDIR}/skbio/*/*${PYTHON_EXT_SUFFIX}.so \
+ ${STAGEDIR}${PYTHONPREFIX_SITELIBDIR}/skbio/*/*/*${PYTHON_EXT_SUFFIX}.so
+
.include <bsd.port.mk>