summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--lang/python/extension.mk15
1 files changed, 14 insertions, 1 deletions
diff --git a/lang/python/extension.mk b/lang/python/extension.mk
index b8a58b0627f..5929fbf54e3 100644
--- a/lang/python/extension.mk
+++ b/lang/python/extension.mk
@@ -1,7 +1,16 @@
-# $NetBSD: extension.mk,v 1.26 2010/07/21 11:29:10 wiz Exp $
+# $NetBSD: extension.mk,v 1.27 2010/07/23 22:56:40 gdt Exp $
.include "../../lang/python/pyversion.mk"
+# Packages that are a non-egg distutils extension should set
+# PYDISTUTILSPKG=YES and include this mk file.
+
+# This mk fragment is included to handle packages that create
+# extensions to python, which by definition are those that place files
+# in ${PYSITELIB}. Extensions can be implemented via setuptools as
+# eggs (see egg.mk), via distutils (confusing, with an egg-info file,
+# even though they are not eggs), or via more ad hocs methods.
+
.if defined(PYDISTUTILSPKG)
.include "../../mk/bsd.prefs.mk"
@@ -27,6 +36,10 @@ do-install:
${PYTHONBIN} ${PYSETUP} ${PYSETUPARGS} "install" ${_PYSETUPINSTALLARGS})
.endif
+# XXX This suppress the installation of the egg-info file (and
+# therefore its inclusion in the package). Python practice is be to
+# use these files to let 'require' verify that python distributions
+# are present.
PY_NO_EGG?= yes
.if !empty(PY_NO_EGG:M[yY][eE][sS])
# see python25/patches/patch-av