Source-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/devel/py-test Make explicit python version test more r...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/b0f2ef2c8478
branches:  trunk
changeset: 433395:b0f2ef2c8478
user:      dholland <dholland%pkgsrc.org@localhost>
date:      Tue Jun 02 03:40:57 2020 +0000

description:
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.

diffstat:

 devel/py-test/Makefile |  4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diffs (18 lines):

diff -r 925cb190e16e -r b0f2ef2c8478 devel/py-test/Makefile
--- a/devel/py-test/Makefile    Tue Jun 02 00:56:36 2020 +0000
+++ b/devel/py-test/Makefile    Tue Jun 02 03:40:57 2020 +0000
@@ -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 @@
 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