blob: 0b4872f84f953502548aa8e5b3b9d5fc738c7bc0 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
|
# $NetBSD: egg.mk,v 1.8 2009/02/17 17:32:38 joerg Exp $
#
# Common logic to handle Python Eggs
#
.include "../../mk/bsd.fast.prefs.mk"
EGG_NAME?= ${DISTNAME}
PYDISTUTILSPKG= yes
PY_PATCHPLIST= yes
# Only Python 2.4+ supported by devel/py-setuptools right now
PYTHON_VERSIONS_ACCEPTED?= 25 24
PLIST_SUBST+= EGG_NAME=${EGG_NAME}-py${PYVERSSUFFIX}
PLIST_SUBST+= EGG_INFODIR=${EGG_NAME}-py${PYVERSSUFFIX}.egg-info
PRINT_PLIST_AWK+= { gsub(/${EGG_NAME}-py${PYVERSSUFFIX}.egg-info/, \
"$${EGG_INFODIR}") }
PRINT_PLIST_AWK+= { gsub(/${EGG_NAME}-py${PYVERSSUFFIX}-nspkg.pth/, \
"$${EGG_NAME}-nspkg.pth") }
_PYSETUPTOOLSINSTALLARGS= --single-version-externally-managed
.if ${_USE_DESTDIR} == "no"
_PYSETUPTOOLSINSTALLARGS+= --root=/
.endif
DEPENDS+= ${PYPKGPREFIX}-setuptools>=0.6c9:../../devel/py-setuptools
INSTALLATION_DIRS+= ${PYSITELIB}
.include "../../lang/python/extension.mk"
|