pkgsrc-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[pkgsrc/trunk]: pkgsrc/time/py-cftime py-cftime: not for python 2.x
details: https://anonhg.NetBSD.org/pkgsrc/rev/f720e6218e3b
branches: trunk
changeset: 770668:f720e6218e3b
user: wiz <wiz%pkgsrc.org@localhost>
date: Mon Dec 06 15:38:18 2021 +0000
description:
py-cftime: not for python 2.x
While here, fix tests.
diffstat:
time/py-cftime/Makefile | 9 ++++-----
1 files changed, 4 insertions(+), 5 deletions(-)
diffs (27 lines):
diff -r c57f2f5053a5 -r f720e6218e3b time/py-cftime/Makefile
--- a/time/py-cftime/Makefile Mon Dec 06 15:33:27 2021 +0000
+++ b/time/py-cftime/Makefile Mon Dec 06 15:38:18 2021 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.5 2021/06/29 08:42:02 nia Exp $
+# $NetBSD: Makefile,v 1.6 2021/12/06 15:38:18 wiz Exp $
DISTNAME= cftime-1.5.0
PKGNAME= ${PYPKGPREFIX}-${DISTNAME}
@@ -13,14 +13,13 @@
TEST_DEPENDS+= ${PYPKGPREFIX}-test-cov-[0-9]*:../../devel/py-test-cov
TEST_DEPENDS+= ${PYPKGPREFIX}-test-runner-[0-9]*:../../devel/py-test-runner
-# This pulls too many unnecessary dependencies.
-#PYSETUPTESTTARGET= pytest
+PYTHON_VERSIONS_INCOMPATIBLE= 27 36 # py-numpy
+TEST_ENV+= PYTHONPATH=build/lib
do-test:
+ cd ${WRKSRC}/build && ${LN} -sf lib.* lib
cd ${WRKSRC} && ${SETENV} ${TEST_ENV} pytest-${PYVERSSUFFIX} test
-PYTHON_VERSIONS_INCOMPATIBLE+= 36 # py-numpy
-
.include "../../devel/py-cython/buildlink3.mk"
.include "../../lang/python/egg.mk"
.include "../../math/py-numpy/buildlink3.mk"
Home |
Main Index |
Thread Index |
Old Index