Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F56216027
python.mk.D38429.patch
nivit (Nicola Vitale)
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Authored By
nivit
Feb 11 2023, 10:30 AM
2023-02-11 10:30:28 (UTC+0)
Size
1 KB
Referenced Files
None
Subscribers
None
python.mk.D38429.patch
View Options
--- 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
Details
Attached
Mime Type
text/x-diff
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
5606626
Default Alt Text
python.mk.D38429.patch (1 KB)
Attached To
Mode
D38429: python.mk: don't write bytecode whilst building under PEP-517
Attached
Detach File
Event Timeline
Log In to Comment