pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/devel/py-stsci.distutils py-stsci.distutils: and do no...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/096e6875555c
branches:  trunk
changeset: 771010:096e6875555c
user:      wiz <wiz%pkgsrc.org@localhost>
date:      Sun Dec 12 10:51:59 2021 +0000

description:
py-stsci.distutils: and do not break python 2

diffstat:

 devel/py-stsci.distutils/Makefile |  6 +++++-
 1 files changed, 5 insertions(+), 1 deletions(-)

diffs (22 lines):

diff -r bd2e94dc6a4c -r 096e6875555c devel/py-stsci.distutils/Makefile
--- a/devel/py-stsci.distutils/Makefile Sun Dec 12 10:50:43 2021 +0000
+++ b/devel/py-stsci.distutils/Makefile Sun Dec 12 10:51:59 2021 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.3 2021/12/12 10:50:43 wiz Exp $
+# $NetBSD: Makefile,v 1.4 2021/12/12 10:51:59 wiz Exp $
 
 DISTNAME=      stsci.distutils-0.3.7
 PKGNAME=       ${PYPKGPREFIX}-${DISTNAME}
@@ -12,8 +12,12 @@
 
 DEPENDS+=      ${PYPKGPREFIX}-d2to1-[0-9]*:../../devel/py-d2to1
 
+.include "../../lang/python/pyversion.mk"
+
+.if ${PYPKGPREFIX} != "py27"
 pre-build:
        cd ${WRKSRC} && 2to3-${PYVERSSUFFIX} -w --no-diff stsci
+.endif
 
 .include "../../lang/python/egg.mk"
 .include "../../mk/bsd.pkg.mk"



Home | Main Index | Thread Index | Old Index