summaryrefslogtreecommitdiff
path: root/lang/python
diff options
context:
space:
mode:
authorrichard <richard>2016-08-28 09:40:35 +0000
committerrichard <richard>2016-08-28 09:40:35 +0000
commit85c36e616a46b1b15bd2b601be269c9d26561dce (patch)
treec3eb7f0e42de7a89d73bcd02b533e04e60d38d09 /lang/python
parenta4cbc69617c991779f81522839d1cb6a47ca881a (diff)
downloadpkgsrc-85c36e616a46b1b15bd2b601be269c9d26561dce.tar.gz
Let print-PLIST generate python version agnostic PYVERSSUFFIX in filenames.
This is somewhat related to the recent PLIST_SUBST commit. Ok'd by wiz@
Diffstat (limited to 'lang/python')
-rw-r--r--lang/python/distutils.mk4
-rw-r--r--lang/python/egg.mk4
2 files changed, 6 insertions, 2 deletions
diff --git a/lang/python/distutils.mk b/lang/python/distutils.mk
index 77816f5f4f7..aa8199ec165 100644
--- a/lang/python/distutils.mk
+++ b/lang/python/distutils.mk
@@ -1,4 +1,4 @@
-# $NetBSD: distutils.mk,v 1.7 2014/12/31 13:57:28 wiz Exp $
+# $NetBSD: distutils.mk,v 1.8 2016/08/28 09:40:35 richard Exp $
#
# Common logic for python distributions that use distutils.
#
@@ -28,5 +28,7 @@ PY_NO_EGG?= no
PLIST_SUBST+= EGG_FILE=${EGG_NAME}-py${PYVERSSUFFIX}.egg-info
PRINT_PLIST_AWK+= { gsub("${EGG_NAME}-py${PYVERSSUFFIX}.egg-info", \
"$${EGG_FILE}") }
+PRINT_PLIST_AWK+= { gsub(/${PYVERSSUFFIX}/, \
+ "$${PYVERSSUFFIX}") }
.include "../../lang/python/extension.mk"
diff --git a/lang/python/egg.mk b/lang/python/egg.mk
index d808b16b475..5544d466e54 100644
--- a/lang/python/egg.mk
+++ b/lang/python/egg.mk
@@ -1,4 +1,4 @@
-# $NetBSD: egg.mk,v 1.23 2016/06/01 09:44:52 wiz Exp $
+# $NetBSD: egg.mk,v 1.24 2016/08/28 09:40:35 richard Exp $
#
# Common logic to handle Python Eggs
#
@@ -32,6 +32,8 @@ PRINT_PLIST_AWK+= { gsub(/${EGG_NAME}-py${PYVERSSUFFIX}.egg-info/, \
"$${EGG_INFODIR}") }
PRINT_PLIST_AWK+= { gsub(/${EGG_NAME}-py${PYVERSSUFFIX}-nspkg.pth/, \
"$${EGG_NAME}-nspkg.pth") }
+PRINT_PLIST_AWK+= { gsub(/${PYVERSSUFFIX}/, \
+ "$${PYVERSSUFFIX}") }
_PYSETUPTOOLSINSTALLARGS= --single-version-externally-managed