summaryrefslogtreecommitdiff
path: root/lang/python/egg.mk
diff options
context:
space:
mode:
Diffstat (limited to 'lang/python/egg.mk')
-rw-r--r--lang/python/egg.mk21
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"