pkgsrc-Changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

CVS commit: pkgsrc/devel/py-test



Module Name:    pkgsrc
Committed By:   dholland
Date:           Tue Jun  2 03:40:57 UTC 2020

Modified Files:
        pkgsrc/devel/py-test: Makefile

Log Message:
Make explicit python version test more robust.

Now if you come here looking for python27 it fails properly instead of
throwing a make syntax error.


To generate a diff of this commit:
cvs rdiff -u -r1.89 -r1.90 pkgsrc/devel/py-test/Makefile

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: pkgsrc/devel/py-test/Makefile
diff -u pkgsrc/devel/py-test/Makefile:1.89 pkgsrc/devel/py-test/Makefile:1.90
--- pkgsrc/devel/py-test/Makefile:1.89  Sat May 16 08:00:01 2020
+++ pkgsrc/devel/py-test/Makefile       Tue Jun  2 03:40:57 2020
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.89 2020/05/16 08:00:01 adam Exp $
+# $NetBSD: Makefile,v 1.90 2020/06/02 03:40:57 dholland Exp $
 
 DISTNAME=      pytest-5.4.2
 PKGNAME=       ${PYPKGPREFIX}-${DISTNAME:S/py//}
@@ -28,7 +28,7 @@ TEST_DEPENDS+=        ${PYPKGPREFIX}-xmlschema-
 PYTHON_VERSIONS_INCOMPATIBLE=  27 # since 5.0.0
 
 .include "../../lang/python/pyversion.mk"
-.if ${_PYTHON_VERSION} < 38
+.if ${_PYTHON_VERSION:S/none/0/} < 38
 DEPENDS+=      ${PYPKGPREFIX}-importlib-metadata>=0.12:../../devel/py-importlib-metadata
 .endif
 



Home | Main Index | Thread Index | Old Index