summaryrefslogtreecommitdiff
path: root/lang/python
diff options
context:
space:
mode:
authordrochner <drochner>2012-07-25 19:07:49 +0000
committerdrochner <drochner>2012-07-25 19:07:49 +0000
commit5f06724523f183f1d7552300f69619a878145d55 (patch)
tree6b47a7fb76de7a492a35dd82fcb96c2d90e2dd38 /lang/python
parente7d96b27bfcaecb6bd169fa2910f8323aa5f0e0e (diff)
downloadpkgsrc-5f06724523f183f1d7552300f69619a878145d55.tar.gz
use py-distribute for Python3 rather than py-setuptools
(The former might be used for Python2 as well, but it needs more testing.)
Diffstat (limited to 'lang/python')
-rw-r--r--lang/python/egg.mk7
1 files changed, 6 insertions, 1 deletions
diff --git a/lang/python/egg.mk b/lang/python/egg.mk
index 193606b7e70..2c114e0a072 100644
--- a/lang/python/egg.mk
+++ b/lang/python/egg.mk
@@ -1,8 +1,9 @@
-# $NetBSD: egg.mk,v 1.13 2011/12/16 12:57:17 gdt Exp $
+# $NetBSD: egg.mk,v 1.14 2012/07/25 19:07:49 drochner Exp $
#
# Common logic to handle Python Eggs
#
.include "../../mk/bsd.fast.prefs.mk"
+.include "../../lang/python/pyversion.mk"
# This file should be included to package python "distributions" which
# use setuptools to create an egg. Some distributions use distutils,
@@ -35,7 +36,11 @@ _PYSETUPTOOLSINSTALLARGS= --single-version-externally-managed
_PYSETUPTOOLSINSTALLARGS+= --root=/
.endif
+.if ${_PYTHON_VERSION} == "31" || ${_PYTHON_VERSION} == "32"
+DEPENDS+= ${PYPKGPREFIX}-distribute-[0-9]*:../../devel/py-distribute
+.else
DEPENDS+= ${PYPKGPREFIX}-setuptools>=0.6c9:../../devel/py-setuptools
+.endif
INSTALLATION_DIRS+= ${PYSITELIB}