Annotation of pkgsrc/lang/python/egg.mk, revision 1.17
1.17 ! wiz 1: # $NetBSD: egg.mk,v 1.16 2014/01/12 09:01:50 wiz Exp $
1.1 joerg 2: #
3: # Common logic to handle Python Eggs
4: #
1.8 joerg 5: .include "../../mk/bsd.fast.prefs.mk"
1.14 drochner 6: .include "../../lang/python/pyversion.mk"
1.1 joerg 7:
1.11 gdt 8: # This file should be included to package python "distributions" which
1.13 gdt 9: # use setuptools to create an egg. Some distributions use distutils,
10: # which creates an egg-info file; those should use distutils.mk
1.11 gdt 11:
1.6 epg 12: EGG_NAME?= ${DISTNAME}
13:
1.1 joerg 14: PYDISTUTILSPKG= yes
15: PY_PATCHPLIST= yes
16:
1.13 gdt 17: # True eggs always have an egg-info directory, and thus there is no
18: # PLIST conditional (as in distutils.mk for old versions of python).
19: # Note that we substitute EGG_INFODIR rather than EGG_FILE, because
20: # the egg information in an egg comprises multiple files in an
21: # egg-info directory.
22:
23: # XXX The PLIST substitution of EGG_NAME does not appear to be
24: # necessary. Either it should be removed or a comment added
25: # explaining why it is necessary.
26:
1.2 joerg 27: PLIST_SUBST+= EGG_NAME=${EGG_NAME}-py${PYVERSSUFFIX}
28: PLIST_SUBST+= EGG_INFODIR=${EGG_NAME}-py${PYVERSSUFFIX}.egg-info
1.5 epg 29: PRINT_PLIST_AWK+= { gsub(/${EGG_NAME}-py${PYVERSSUFFIX}.egg-info/, \
30: "$${EGG_INFODIR}") }
31: PRINT_PLIST_AWK+= { gsub(/${EGG_NAME}-py${PYVERSSUFFIX}-nspkg.pth/, \
32: "$${EGG_NAME}-nspkg.pth") }
1.1 joerg 33:
34: _PYSETUPTOOLSINSTALLARGS= --single-version-externally-managed
1.3 joerg 35: .if ${_USE_DESTDIR} == "no"
36: _PYSETUPTOOLSINSTALLARGS+= --root=/
37: .endif
1.1 joerg 38:
1.7 joerg 39: DEPENDS+= ${PYPKGPREFIX}-setuptools>=0.6c9:../../devel/py-setuptools
1.1 joerg 40:
41: INSTALLATION_DIRS+= ${PYSITELIB}
42:
43: .include "../../lang/python/extension.mk"
CVSweb <webmaster@jp.NetBSD.org>