diff options
author | nia <nia@pkgsrc.org> | 2022-09-06 09:05:59 +0000 |
---|---|---|
committer | nia <nia@pkgsrc.org> | 2022-09-06 09:05:59 +0000 |
commit | c79b2bc3a94dc366eb305e9b0ffb89f3d2dddee0 (patch) | |
tree | 33b57a4c9e545a44c8a31ed3ea53ec9c3c46cc5e /lang | |
parent | 025bea1ccb3b172d6dab438d810feb8e43726433 (diff) | |
download | pkgsrc-c79b2bc3a94dc366eb305e9b0ffb89f3d2dddee0.tar.gz |
python: Allow PYDISTUTILSPKG to be overridden on a per-package basis.
This is useful for allowing packages that install python egg metadata
to benefit from the PRINT_PLIST_AWK defined in egg.mk even if they don't
actually use setup.py or normal Python build tools.
Diffstat (limited to 'lang')
-rw-r--r-- | lang/python/egg.mk | 6 | ||||
-rw-r--r-- | lang/python/extension.mk | 4 | ||||
-rw-r--r-- | lang/python/srcdist.mk | 4 |
3 files changed, 7 insertions, 7 deletions
diff --git a/lang/python/egg.mk b/lang/python/egg.mk index bf5c107f9d6..e6ae8ddfaa1 100644 --- a/lang/python/egg.mk +++ b/lang/python/egg.mk @@ -1,4 +1,4 @@ -# $NetBSD: egg.mk,v 1.38 2022/04/03 13:59:33 wiz Exp $ +# $NetBSD: egg.mk,v 1.39 2022/09/06 09:05:59 nia Exp $ # # Common logic to handle Python Eggs # @@ -13,8 +13,8 @@ EGG_NAME?= ${DISTNAME:C/-([^0-9])/_\1/g} EGG_INFODIR?= ${EGG_NAME}-py${PYVERSSUFFIX}.egg-info -PYDISTUTILSPKG= yes -PY_PATCHPLIST= yes +PYDISTUTILSPKG?= yes +PY_PATCHPLIST?= yes # True eggs always have an egg-info directory. egg.mk can also # be used for distutils packages, in which case there will be no diff --git a/lang/python/extension.mk b/lang/python/extension.mk index d851b438832..2ea17e61745 100644 --- a/lang/python/extension.mk +++ b/lang/python/extension.mk @@ -1,4 +1,4 @@ -# $NetBSD: extension.mk,v 1.59 2022/01/12 08:34:34 wiz Exp $ +# $NetBSD: extension.mk,v 1.60 2022/09/06 09:05:59 nia Exp $ .include "../../lang/python/pyversion.mk" @@ -8,7 +8,7 @@ # eggs (see egg.mk), via wheels (see wheel.mk), or via more ad hoc # methods. -.if defined(PYDISTUTILSPKG) +.if !empty(PYDISTUTILSPKG:M[yY][eE][sS]) .include "../../mk/bsd.prefs.mk" PYSETUP?= setup.py diff --git a/lang/python/srcdist.mk b/lang/python/srcdist.mk index 7807b6cf8d6..3de9ff7c9bc 100644 --- a/lang/python/srcdist.mk +++ b/lang/python/srcdist.mk @@ -1,4 +1,4 @@ -# $NetBSD: srcdist.mk,v 1.41 2021/12/30 21:33:09 tnn Exp $ +# $NetBSD: srcdist.mk,v 1.42 2022/09/06 09:05:59 nia Exp $ .include "../../lang/python/pyversion.mk" @@ -7,7 +7,7 @@ PYSUBDIR= ${DISTNAME} WRKSRC= ${WRKDIR}/${PYSUBDIR} -.if defined(PYDISTUTILSPKG) +.if !empty(PYDISTUTILSPKG:M[yY][eE][sS]) # This is used for standard modules shipped with Python but build as # separate packages. |