diff options
author | joerg <joerg@pkgsrc.org> | 2007-08-09 13:24:12 +0000 |
---|---|---|
committer | joerg <joerg@pkgsrc.org> | 2007-08-09 13:24:12 +0000 |
commit | 2a3a65e1e2c3e0b602842b1e0cdc3489f3625679 (patch) | |
tree | f199405a02ca8a63f3b80cd7b67aa9e7518ff595 /lang/python/egg.mk | |
parent | 1258066035170df9eb29a10e0d0dd6edfc12888f (diff) | |
download | pkgsrc-2a3a65e1e2c3e0b602842b1e0cdc3489f3625679.tar.gz |
Add some basic infrastructure to manage Python eggs in pkgsrc.
We use the flat installation mode (e.g. no multiple versions by
default) by default. That avoids having to run DEINSTALL/INSTALL
scripts and allows DESTDIR installation.
Diffstat (limited to 'lang/python/egg.mk')
-rw-r--r-- | lang/python/egg.mk | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/lang/python/egg.mk b/lang/python/egg.mk new file mode 100644 index 00000000000..548b5e47a17 --- /dev/null +++ b/lang/python/egg.mk @@ -0,0 +1,21 @@ +# $NetBSD: egg.mk,v 1.1 2007/08/09 13:24:12 joerg Exp $ +# +# Common logic to handle Python Eggs +# +.include "../../mk/bsd.prefs.mk" + +PYDISTUTILSPKG= yes +PY_PATCHPLIST= yes +# Only Python 2.4 support by devel/py-setuptools right now +PYTHON_VERSIONS_ACCEPTED?= 24 + +PLIST_SUBST+= EGG_NAME=${EGGNAME}-py${PYVERSSUFFIX} +PLIST_SUBST+= EGG_INFODIR=${EGGNAME}-py${PYVERSSUFFIX}.egg-info + +_PYSETUPTOOLSINSTALLARGS= --single-version-externally-managed + +DEPENDS+= ${PYPKGPREFIX}-setuptools>=0.6c6:../../devel/py-setuptools + +INSTALLATION_DIRS+= ${PYSITELIB} + +.include "../../lang/python/extension.mk" |