pkgsrc-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[pkgsrc/trunk]: pkgsrc/lang/python Add some basic infrastructure to manage Py...
details: https://anonhg.NetBSD.org/pkgsrc/rev/dfb6eeb1ec24
branches: trunk
changeset: 531969:dfb6eeb1ec24
user: joerg <joerg%pkgsrc.org@localhost>
date: Thu Aug 09 13:24:12 2007 +0000
description:
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:
lang/python/egg.mk | 21 +++++++++++++++++++++
lang/python/extension.mk | 4 ++--
2 files changed, 23 insertions(+), 2 deletions(-)
diffs (43 lines):
diff -r af5c460d949b -r dfb6eeb1ec24 lang/python/egg.mk
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/lang/python/egg.mk Thu Aug 09 13:24:12 2007 +0000
@@ -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"
diff -r af5c460d949b -r dfb6eeb1ec24 lang/python/extension.mk
--- a/lang/python/extension.mk Thu Aug 09 13:22:14 2007 +0000
+++ b/lang/python/extension.mk Thu Aug 09 13:24:12 2007 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: extension.mk,v 1.15 2006/10/09 12:50:38 joerg Exp $
+# $NetBSD: extension.mk,v 1.16 2007/08/09 13:24:12 joerg Exp $
# derive a python version from the package name if possible
# optionally handled quoted package names
@@ -21,7 +21,7 @@
PYSETUPBUILDARGS?= #empty
PYSETUPINSTALLARGS?= #empty
PYSETUPOPTARGS?= -c -O1
-_PYSETUPINSTALLARGS= ${PYSETUPINSTALLARGS} ${PYSETUPOPTARGS}
+_PYSETUPINSTALLARGS= ${PYSETUPINSTALLARGS} ${PYSETUPOPTARGS} ${_PYSETUPTOOLSINSTALLARGS}
.if ${_USE_DESTDIR} != "no"
_PYSETUPINSTALLARGS+= --root=${DESTDIR:Q}
.endif
Home |
Main Index |
Thread Index |
Old Index