Annotation of pkgsrc/lang/python/egg.mk, revision 1.13

1.13    ! gdt         1: # $NetBSD: egg.mk,v 1.12 2011/12/16 12:41:05 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
1.13    ! gdt         8: # use setuptools to create an egg.  Some distributions use distutils,
        !             9: # which creates an egg-info file; those should use distutils.mk
1.11      gdt        10: 
1.6       epg        11: EGG_NAME?=     ${DISTNAME}
                     12: 
1.1       joerg      13: PYDISTUTILSPKG=        yes
                     14: PY_PATCHPLIST= yes
                     15: 
1.13    ! gdt        16: # True eggs always have an egg-info directory, and thus there is no
        !            17: # PLIST conditional (as in distutils.mk for old versions of python).
        !            18: # Note that we substitute EGG_INFODIR rather than EGG_FILE, because
        !            19: # the egg information in an egg comprises multiple files in an
        !            20: # egg-info directory.
        !            21: 
        !            22: # XXX The PLIST substitution of EGG_NAME does not appear to be
        !            23: # necessary.  Either it should be removed or a comment added
        !            24: # explaining why it is necessary.
        !            25: 
1.2       joerg      26: PLIST_SUBST+=  EGG_NAME=${EGG_NAME}-py${PYVERSSUFFIX}
                     27: PLIST_SUBST+=  EGG_INFODIR=${EGG_NAME}-py${PYVERSSUFFIX}.egg-info
1.5       epg        28: PRINT_PLIST_AWK+=      { gsub(/${EGG_NAME}-py${PYVERSSUFFIX}.egg-info/, \
                     29:                               "$${EGG_INFODIR}") }
                     30: PRINT_PLIST_AWK+=      { gsub(/${EGG_NAME}-py${PYVERSSUFFIX}-nspkg.pth/, \
                     31:                               "$${EGG_NAME}-nspkg.pth") }
1.1       joerg      32: 
                     33: _PYSETUPTOOLSINSTALLARGS=      --single-version-externally-managed
1.3       joerg      34: .if ${_USE_DESTDIR} == "no"
                     35: _PYSETUPTOOLSINSTALLARGS+=     --root=/
                     36: .endif
1.1       joerg      37: 
1.7       joerg      38: DEPENDS+=      ${PYPKGPREFIX}-setuptools>=0.6c9:../../devel/py-setuptools
1.1       joerg      39: 
                     40: INSTALLATION_DIRS+=    ${PYSITELIB}
                     41: 
                     42: .include "../../lang/python/extension.mk"

CVSweb <webmaster@jp.NetBSD.org>