Page MenuHomeFreeBSD

python.mk.D38429.patch

Authored By
nivit
Feb 11 2023, 10:30 AM
Size
1 KB
Referenced Files
None
Subscribers
None

python.mk.D38429.patch

--- Mk/Uses/python.mk 2023-02-08 11:30:05.467212000 +0100
+++ Mk/Uses/python.mk.D38429 2023-02-11 11:25:55.468313000 +0100
@@ -658,7 +658,7 @@
# PEP-517 support
PEP517_BUILD_CMD?= ${PYTHON_CMD} -m build -n -w
PEP517_BUILD_DEPEND?= ${PYTHON_PKGNAMEPREFIX}build>0:devel/py-build@${PY_FLAVOR}
-PEP517_INSTALL_CMD?= ${PYTHON_CMD} -m installer -d ${STAGEDIR} --no-compile-bytecode ${BUILD_WRKSRC}/dist/${PORTNAME:C/[-_]+/_/g}-${PORTVERSION}-*.whl
+PEP517_INSTALL_CMD?= ${PYTHON_CMD} -m installer -d ${STAGEDIR} --compile-bytecode 0 ${BUILD_WRKSRC}/dist/${PORTNAME:C/[-_]+/_/g}-${PORTVERSION}-*.whl
PEP517_INSTALL_DEPEND?= ${PYTHON_PKGNAMEPREFIX}installer>0:devel/py-installer@${PY_FLAVOR}
# nose support
@@ -855,6 +855,8 @@
do-install:
@${MKDIR} ${STAGEDIR}${PYTHONPREFIX_SITELIBDIR}
@cd ${INSTALL_WRKSRC} && ${SETENV} ${MAKE_ENV} ${PEP517_INSTALL_CMD}
+ @cd ${STAGEDIR}${PYTHONPREFIX_SITELIBDIR} && ${FIND} . -type f -regex '.*\.pyc$$' | \
+ ${SED} -e 's|^./\(.*\)|\1,,|' >> ${PORTNAME:C/[-_]+/_/g}-${PORTVERSION}.dist-info/RECORD
@${SED} -e 's|^|${PYTHONPREFIX_SITELIBDIR}/|' \
-e 's|^${PYTHONPREFIX_SITELIBDIR}/../../../bin/|bin/|' \
-e 's|\,.*$$||' \

File Metadata

Mime Type
text/x-diff
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
5606626
Default Alt Text
python.mk.D38429.patch (1 KB)

Event Timeline