diff options
author | Antoine Brodin <antoine@FreeBSD.org> | 2023-04-04 18:27:33 +0000 |
---|---|---|
committer | Antoine Brodin <antoine@FreeBSD.org> | 2023-04-04 18:27:33 +0000 |
commit | 378e09115cbe9a584e3f497c39891619eb3b6ad0 (patch) | |
tree | a146e2839b47b36a007d3d5392cb9ce0b5f87f26 /Mk | |
parent | 4cda17ab14588e6e4fdac7f697e246554ce82af3 (diff) | |
download | ports-378e09115cbe9a584e3f497c39891619eb3b6ad0.tar.gz ports-378e09115cbe9a584e3f497c39891619eb3b6ad0.zip |
USE_PYTHON=pep517: package python bytecode
Compile and package python bytecode for python ports using pep517.
This can be revisited in the future with a trigger.
Approved by: portmgr
Diffstat (limited to 'Mk')
-rw-r--r-- | Mk/Uses/python.mk | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/Mk/Uses/python.mk b/Mk/Uses/python.mk index 688736ffefe7..0e8350663076 100644 --- a/Mk/Uses/python.mk +++ b/Mk/Uses/python.mk @@ -153,7 +153,7 @@ # default: <empty> # # PEP517_INSTALL_CMD - Command sequence for a PEP-517 install frontend that installs a wheel. -# default: ${PYTHON_CMD} -m installer --destdir ${STAGEDIR} --no-compile-bytecode --prefix ${PREFIX} ${BUILD_WRKSRC}/dist/${PORTNAME:C|[-_]+|_|g}-${DISTVERSION}*.whl +# default: ${PYTHON_CMD} -m installer --destdir ${STAGEDIR} --prefix ${PREFIX} ${BUILD_WRKSRC}/dist/${PORTNAME:C|[-_]+|_|g}-${DISTVERSION}*.whl # # PEP517_INSTALL_DEPEND - Port needed to execute ${PEP517_INSTALL_CMD}. # default: ${PYTHON_PKGNAMEPREFIX}installer>=0:devel/py-installer@${PY_FLAVOR} @@ -687,7 +687,7 @@ PEP517_BUILD_DEPEND?= ${PYTHON_PKGNAMEPREFIX}gpep517>=0:devel/py-gpep517@${PY_FL PEP517_BUILD_CMD?= ${PYTHON_CMD} -m build --no-isolation --wheel ${PEP517_BUILD_CONFIG_SETTING} PEP517_BUILD_DEPEND?= ${PYTHON_PKGNAMEPREFIX}build>=0:devel/py-build@${PY_FLAVOR} . endif -PEP517_INSTALL_CMD?= ${PYTHON_CMD} -m installer --destdir ${STAGEDIR} --no-compile-bytecode --prefix ${PREFIX} ${BUILD_WRKSRC}/dist/${PORTNAME:C|[-_]+|_|g}-${DISTVERSION}*.whl +PEP517_INSTALL_CMD?= ${PYTHON_CMD} -m installer --destdir ${STAGEDIR} --prefix ${PREFIX} ${BUILD_WRKSRC}/dist/${PORTNAME:C|[-_]+|_|g}-${DISTVERSION}*.whl PEP517_INSTALL_DEPEND?= ${PYTHON_PKGNAMEPREFIX}installer>=0:devel/py-installer@${PY_FLAVOR} # nose support @@ -920,6 +920,7 @@ do-install: -e 's|^${PYTHONPREFIX_SITELIBDIR}/../../../sbin/|sbin/|' \ -e 's|^${PYTHONPREFIX_SITELIBDIR}/../../../share/|share/|' \ ${_PYTHONPKGLIST} + @cd ${STAGEDIR}${PREFIX} && ${FIND} lib -name '*.pyc' >> ${_PYTHONPKGLIST} . endif . endif # defined(_PYTHON_FEATURE_PEP517) |