pkgsrc-Changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

CVS commit: pkgsrc/devel/py-flit_core



Module Name:    pkgsrc
Committed By:   wiz
Date:           Wed Oct 25 21:46:36 UTC 2023

Modified Files:
        pkgsrc/devel/py-flit_core: Makefile PLIST

Log Message:
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.


To generate a diff of this commit:
cvs rdiff -u -r1.7 -r1.8 pkgsrc/devel/py-flit_core/Makefile
cvs rdiff -u -r1.5 -r1.6 pkgsrc/devel/py-flit_core/PLIST

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: pkgsrc/devel/py-flit_core/Makefile
diff -u pkgsrc/devel/py-flit_core/Makefile:1.7 pkgsrc/devel/py-flit_core/Makefile:1.8
--- pkgsrc/devel/py-flit_core/Makefile:1.7      Mon May 15 07:18:20 2023
+++ pkgsrc/devel/py-flit_core/Makefile  Wed Oct 25 21:46:36 2023
@@ -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-[
 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"

Index: pkgsrc/devel/py-flit_core/PLIST
diff -u pkgsrc/devel/py-flit_core/PLIST:1.5 pkgsrc/devel/py-flit_core/PLIST:1.6
--- pkgsrc/devel/py-flit_core/PLIST:1.5 Mon Nov 14 09:09:26 2022
+++ pkgsrc/devel/py-flit_core/PLIST     Wed Oct 25 21:46:36 2023
@@ -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



Home | Main Index | Thread Index | Old Index