py-flit_core: make this module standalone

This now needs no other Python modules to build and install.

This is relevant because py-flit_core is currently the recommended
method to bootstrap Python module distributions from scratch.

Bump PKGREVISION.
This commit is contained in:
wiz 2023-10-25 21:46:36 +00:00
parent f381edbe70
commit 1476d0b045
2 changed files with 16 additions and 10 deletions

View file

@ -1,7 +1,8 @@
# $NetBSD: Makefile,v 1.7 2023/05/15 07:18:20 adam Exp $
# $NetBSD: Makefile,v 1.8 2023/10/25 21:46:36 wiz Exp $
DISTNAME= flit_core-3.9.0
PKGNAME= ${PYPKGPREFIX}-${DISTNAME}
PKGREVISION= 1
CATEGORIES= devel python
MASTER_SITES= ${MASTER_SITE_PYPI:=f/flit-core/}
@ -16,9 +17,17 @@ TEST_DEPENDS+= ${PYPKGPREFIX}-testpath-[0-9]*:../../devel/py-testpath
USE_LANGUAGES= # none
PYTHON_VERSIONS_INCOMPATIBLE= 27
PY_PATCHPLIST= yes
do-build:
cd ${WRKSRC} && ${SETENV} ${MAKE_ENV} ${PYTHONBIN} -m flit_core.wheel
do-install:
cd ${WRKSRC} && ${SETENV} ${MAKE_ENV} ${PYTHONBIN} bootstrap_install.py --installdir ${DESTDIR}${PREFIX}/${PYSITELIB} dist/flit_core*.whl
find ${DESTDIR}${PREFIX}/${PYSITELIB} -name *.py | ${PYTHONBIN} -m py_compile -
do-test:
cd ${WRKSRC} && ${SETENV} ${TEST_ENV} pytest-${PYVERSSUFFIX} flit_core/tests
.include "../../lang/python/wheel.mk"
.include "../../lang/python/extension.mk"
.include "../../mk/bsd.pkg.mk"

View file

@ -1,11 +1,8 @@
@comment $NetBSD: PLIST,v 1.5 2022/11/14 09:09:26 adam Exp $
${PYSITELIB}/${WHEEL_INFODIR}/INSTALLER
${PYSITELIB}/${WHEEL_INFODIR}/LICENSE
${PYSITELIB}/${WHEEL_INFODIR}/METADATA
${PYSITELIB}/${WHEEL_INFODIR}/RECORD
${PYSITELIB}/${WHEEL_INFODIR}/REQUESTED
${PYSITELIB}/${WHEEL_INFODIR}/WHEEL
${PYSITELIB}/${WHEEL_INFODIR}/direct_url.json
@comment $NetBSD: PLIST,v 1.6 2023/10/25 21:46:36 wiz Exp $
${PYSITELIB}/flit_core-${PKGVERSION}.dist-info/LICENSE
${PYSITELIB}/flit_core-${PKGVERSION}.dist-info/METADATA
${PYSITELIB}/flit_core-${PKGVERSION}.dist-info/RECORD
${PYSITELIB}/flit_core-${PKGVERSION}.dist-info/WHEEL
${PYSITELIB}/flit_core/__init__.py
${PYSITELIB}/flit_core/__init__.pyc
${PYSITELIB}/flit_core/buildapi.py