aboutsummaryrefslogtreecommitdiff
path: root/misc/py-natten/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'misc/py-natten/Makefile')
-rw-r--r--misc/py-natten/Makefile26
1 files changed, 10 insertions, 16 deletions
diff --git a/misc/py-natten/Makefile b/misc/py-natten/Makefile
index adbdca5cf093..0227faf81b6a 100644
--- a/misc/py-natten/Makefile
+++ b/misc/py-natten/Makefile
@@ -1,23 +1,24 @@
PORTNAME= natten
DISTVERSIONPREFIX= v
-DISTVERSION= 0.17.5
-CATEGORIES= misc python
+DISTVERSION= 0.21.0
+CATEGORIES= misc python # machine-learning
#MASTER_SITES= PYPI # no tests
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
MAINTAINER= yuri@FreeBSD.org
COMMENT= Neighborhood Attention Extension for PyTorch
-WWW= https://shi-labs.com/natten/ \
+WWW= https://natten.org/ \
https://github.com/SHI-Labs/NATTEN
LICENSE= MIT
LICENSE_FILE= ${WRKSRC}/LICENSE
-BUILD_DEPENDS= cmake:devel/cmake-core \
+# this BUILD_DEPENDS should be used when CUDA would be available
+#BUILD_DEPENDS= cmake:devel/cmake-core \
pybind11>0:devel/pybind11 \
${PYTHON_PKGNAMEPREFIX}pytorch>=2.0.0:misc/py-pytorch@${PY_FLAVOR}
-RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}packaging>=0:devel/py-packaging@${PY_FLAVOR} \
- ${PYTHON_PKGNAMEPREFIX}pytorch>=2.0.0:misc/py-pytorch@${PY_FLAVOR}
+BUILD_DEPENDS= ${PYTHON_PKGNAMEPREFIX}pytorch>=2.0.0:misc/py-pytorch@${PY_FLAVOR}
+RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}pytorch>=2.0.0:misc/py-pytorch@${PY_FLAVOR}
USES= localbase python
USE_PYTHON= distutils autoplist pytest
@@ -28,9 +29,9 @@ GH_PROJECT= NATTEN
TEST_ENV= ${MAKE_ENV} PYTHONPATH=${STAGEDIR}${PYTHONPREFIX_SITELIBDIR}
+NO_ARCH= yes # no arch w/out CUDA
+
post-install:
- # strip binary
- @${STRIP_CMD} ${STAGEDIR}${PYTHON_SITELIBDIR}/natten/libnatten${PYTHON_EXT_SUFFIX}.so
# delete stray files, see https://github.com/SHI-Labs/NATTEN/issues/152
@${RM} -r \
${STAGEDIR}${PYTHON_SITELIBDIR}/CMakeFiles \
@@ -38,13 +39,6 @@ post-install:
${STAGEDIR}${PYTHON_SITELIBDIR}/cmake_install.cmake \
${STAGEDIR}${PYTHON_SITELIBDIR}/Makefile
-# tests as of 0.17.4:
-# Results (35.54s):
-# 24 passed
-# 2 failed
-# - .:?
-# - .:?
-# 12 xfailed
-# 59 skipped
+# tests as of 0.21.0: 1 passed, 55 skipped, 1 warning in 14.76s
.include <bsd.port.mk>