Annotation of pkgsrc/lang/python/wheel.mk, revision 1.10

1.10    ! wiz         1: # $NetBSD: wheel.mk,v 1.9 2023/07/02 13:01:21 riastradh Exp $
1.1       nros        2: #
1.10    ! wiz         3: # Build and install Python wheels
1.1       nros        4: #
                      5: # Variables:
1.10    ! wiz         6: #
1.1       nros        7: # WHEELFILE:           path to the wheelfile to be installed
                      8: #                      only needs to be set if do-build is redefined
                      9: #
                     10: 
1.10    ! wiz        11: PY_PATCHPLIST?=        yes
1.1       nros       12: 
1.10    ! wiz        13: WHEELFILE?=    ${WRKSRC}/dist/*.whl
        !            14: WHEEL_NAME?=   ${DISTNAME:C/-([^0-9])/_\1/g}
        !            15: _WHEEL_INFODIR=        ${WHEEL_NAME}.dist-info
        !            16: PLIST_SUBST+=  WHEEL_INFODIR=${_WHEEL_INFODIR}
1.1       nros       17: 
1.10    ! wiz        18: PRINT_PLIST_AWK+=      { gsub(/${_WHEEL_INFODIR:S,.,\.,g}/, "$${WHEEL_INFODIR}") }
1.1       nros       19: 
1.10    ! wiz        20: .if !target(do-build)
1.1       nros       21: TOOL_DEPENDS+= ${PYPKGPREFIX}-build>=0:../../devel/py-build
                     22: do-build:
1.8       riastrad   23:        ${RUN} cd ${WRKSRC} && ${SETENV} ${MAKE_ENV} ${TOOL_PYTHONBIN} \
                     24:                -m build --wheel --skip-dependency-check --no-isolation
1.1       nros       25: .endif
                     26: 
1.10    ! wiz        27: .if !target(do-install)
        !            28: TOOL_DEPENDS+= ${PYPKGPREFIX}-installer>=0.7.0nb1:../../misc/py-installer
        !            29: do-install:
        !            30:        ${RUN} cd ${WRKSRC} && \
        !            31:        ${SETENV} ${INSTALL_ENV} \
        !            32:        ${TOOL_PYTHONBIN} -m installer --destdir ${DESTDIR:Q} \
        !            33:                --prefix ${PREFIX:Q} ${WHEELFILE}
1.1       nros       34: .endif
                     35: 
1.10    ! wiz        36: .include "../../lang/python/extension.mk"

CVSweb <webmaster@jp.NetBSD.org>