Annotation of pkgsrc/lang/python/egg.mk, revision 1.12
1.12 ! gdt 1: # $NetBSD: egg.mk,v 1.11 2010/07/23 22:44:46 gdt Exp $
1.1 joerg 2: #
3: # Common logic to handle Python Eggs
4: #
1.8 joerg 5: .include "../../mk/bsd.fast.prefs.mk"
1.1 joerg 6:
1.11 gdt 7: # This file should be included to package python "distributions" which
8: # use setuptools to create an egg. The presence of egg-info in a
1.12 ! gdt 9: # package does not indicate that the package is an egg - distributions
! 10: # that use distutils 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.2 joerg 17: PLIST_SUBST+= EGG_NAME=${EGG_NAME}-py${PYVERSSUFFIX}
18: PLIST_SUBST+= EGG_INFODIR=${EGG_NAME}-py${PYVERSSUFFIX}.egg-info
1.5 epg 19: PRINT_PLIST_AWK+= { gsub(/${EGG_NAME}-py${PYVERSSUFFIX}.egg-info/, \
20: "$${EGG_INFODIR}") }
21: PRINT_PLIST_AWK+= { gsub(/${EGG_NAME}-py${PYVERSSUFFIX}-nspkg.pth/, \
22: "$${EGG_NAME}-nspkg.pth") }
1.1 joerg 23:
24: _PYSETUPTOOLSINSTALLARGS= --single-version-externally-managed
1.3 joerg 25: .if ${_USE_DESTDIR} == "no"
26: _PYSETUPTOOLSINSTALLARGS+= --root=/
27: .endif
1.1 joerg 28:
1.7 joerg 29: DEPENDS+= ${PYPKGPREFIX}-setuptools>=0.6c9:../../devel/py-setuptools
1.1 joerg 30:
31: INSTALLATION_DIRS+= ${PYSITELIB}
32:
33: .include "../../lang/python/extension.mk"
CVSweb <webmaster@jp.NetBSD.org>