diff options
author | gdt <gdt> | 2010-07-23 22:56:40 +0000 |
---|---|---|
committer | gdt <gdt> | 2010-07-23 22:56:40 +0000 |
commit | f6428f19719d8024c4a0035c9ce2dcec54593c58 (patch) | |
tree | 985dde9f1f5f4e07f67af433cc97fd1e1395f088 /lang | |
parent | c9d7f15db589d412c29e9f6e86fcab3f73480941 (diff) | |
download | pkgsrc-f6428f19719d8024c4a0035c9ce2dcec54593c58.tar.gz |
Explain what extension.mk is for, vs egg.mk, and clarify the notion of
egg info files in non-egg python distributions.
Add a comment that PY_NO_EGG appears wrong. Obviously there is a
reason it was added, but we need to figure out why and if it's still
true.
Diffstat (limited to 'lang')
-rw-r--r-- | lang/python/extension.mk | 15 |
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 |