From e0db3343fe3e2987b7fe598018f1c63c25650769 Mon Sep 17 00:00:00 2001 From: classabbyamp Date: Tue, 3 Dec 2024 15:20:07 -0500 Subject: [PATCH] common/hooks/post-install/04-create-xbps-metadata-scripts: handle ... python bootstrap several bootstrap python3 modules put packages in ${py3_sitelib}-bootstrap to prevent conflicts and keep them out of the normal PYTHONPATH. this allows the pycompile_module hook to work for those modules --- common/hooks/post-install/04-create-xbps-metadata-scripts.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/common/hooks/post-install/04-create-xbps-metadata-scripts.sh b/common/hooks/post-install/04-create-xbps-metadata-scripts.sh index 70152bad55f..cf7868b1067 100644 --- a/common/hooks/post-install/04-create-xbps-metadata-scripts.sh +++ b/common/hooks/post-install/04-create-xbps-metadata-scripts.sh @@ -274,7 +274,7 @@ _EOF if [ -d ${PKGDESTDIR}/usr/lib/python* ]; then pycompile_version="$(find ${PKGDESTDIR}/usr/lib/python* -prune -type d | grep -o '[[:digit:]]\.[[:digit:]]\+$')" if [ -z "${pycompile_module}" ]; then - pycompile_module="$(find ${PKGDESTDIR}/usr/lib/python*/site-packages -mindepth 1 -maxdepth 1 '!' -name '*.egg-info' '!' -name '*.dist-info' '!' -name '*.so' '!' -name '*.pth' -printf '%f ')" + pycompile_module="$(find ${PKGDESTDIR}/usr/lib/python*/site-packages* -mindepth 1 -maxdepth 1 '!' -name '*.egg-info' '!' -name '*.dist-info' '!' -name '*.so' '!' -name '*.pth' -printf '%f ')" fi fi