Support Python freethreading
cover Support Python freethreading
This is the meta-openembedded counterpart of the series sent to oe-core. All recipe changes were checked to build against Python with freethreading enabled.
Best regard,
Zoltán Böszörményi
PATCH 1/15 libuser: Support Python freethreading
PYTHON_DIR now contains PYTHON_ABI, use only that.
Move the installed site-packages directory to the correct location.
--- meta-gnome/recipes-support/libuser/libuser_0.64.bb | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-)
meta-gnome/recipes-support/libuser/libuser_0.64.bb +7 -1
@@ -26,7 +26,7 @@ inherit autotools features_check gettext python3native python3-dir pkgconfig gtk REQUIRED_DISTRO_FEATURES = "pam" -EXTRA_OEMAKE = "PYTHON_CPPFLAGS=-I${STAGING_INCDIR}/${PYTHON_DIR}${PYTHON_ABI}" +EXTRA_OEMAKE = "PYTHON_CPPFLAGS=-I${STAGING_INCDIR}/${PYTHON_DIR}" do_configure:prepend() { install -d ${S}/admin -d ${S}/m4
@@ -36,6 +36,12 @@ do_configure:prepend() { cd - } +do_install:append () { + if [ ! -d ${D}${libdir}/${PYTHON_DIR} ]; then + mv ${D}${libdir}/python${PYTHON_BASEVERSION} ${D}${libdir}/${PYTHON_DIR} + fi +} + PACKAGES += "${PN}-python " FILES:${PN}-python = "${PYTHON_SITEPACKAGES_DIR}"
Signature · 1 line
2.53.0
PATCH 2/15 libiec61850: Support Python freethreading
In reply to Zoltán BöszörményiPYTHON_DIR now contains PYTHON_ABI, use this variable to install the module correctly.
--- ...pyiec61850-Use-CMAKE_INSTALL_LIBDIR-from-GNUInstallD.patch | 4 ++-- .../recipes-connectivity/libiec61850/libiec61850_1.6.1.bb | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-)
meta-networking/recipes-connectivity/libiec61850/files/0001-pyiec61850-Use-CMAKE_INSTALL_LIBDIR-from-GNUInstallD.patch +2 -2
@@ -29,7 +29,7 @@ Signed-off-by: Khem Raj <[email protected]> -install(FILES ${CMAKE_CURRENT_BINARY_DIR}/pyiec61850.py DESTINATION ${PYTHON_SITE_DIR}) -install(TARGETS pyiec61850 LIBRARY DESTINATION ${PYTHON_SITE_DIR}) -+install(FILES ${CMAKE_CURRENT_BINARY_DIR}/pyiec61850.py DESTINATION ${CMAKE_INSTALL_PREFIX}/${CMAKE_INSTALL_LIBDIR}/python${PYTHON_BASEVERSION}/site-packages) -+install(TARGETS pyiec61850 LIBRARY DESTINATION ${CMAKE_INSTALL_PREFIX}/${CMAKE_INSTALL_LIBDIR}/python${PYTHON_BASEVERSION}/site-packages) ++install(FILES ${CMAKE_CURRENT_BINARY_DIR}/pyiec61850.py DESTINATION ${CMAKE_INSTALL_PREFIX}/${CMAKE_INSTALL_LIBDIR}/${PYTHON_DIR}/site-packages) ++install(TARGETS pyiec61850 LIBRARY DESTINATION ${CMAKE_INSTALL_PREFIX}/${CMAKE_INSTALL_LIBDIR}/${PYTHON_DIR}/site-packages) add_test(test_pyiec61850 ${Python_EXECUTABLE} ${CMAKE_CURRENT_LIST_DIR}/test_pyiec61850.py)
meta-networking/recipes-connectivity/libiec61850/libiec61850_1.6.1.bb +1 -1
@@ -25,7 +25,7 @@ inherit cmake pkgconfig python3-dir python3native siteinfo python3targetconfig EXTRA_OECMAKE = " \ -DBUILD_EXAMPLES=OFF \ -DBUILD_PYTHON_BINDINGS=ON \ - -DPYTHON_BASEVERSION=${PYTHON_BASEVERSION} \ + -DPYTHON_DIR=${PYTHON_DIR} \ " RDEPENDS:${PN}-python = " python3-core "
Signature · 1 line
2.53.0
PATCH 3/15 ntpsec: Support Python freethreading
In reply to Zoltán BöszörményiUse PYTHON_MAINVERSION instead of PYTHON_BASEVERSION because the former includes PYTHON_ABI. This makes the python module to be installed into the correct location.
--- meta-networking/recipes-support/ntpsec/ntpsec_1.2.4.bb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
meta-networking/recipes-support/ntpsec/ntpsec_1.2.4.bb +2 -2
@@ -50,8 +50,8 @@ CC[unexport] = "1" CFLAGS[unexport] = "1" LDFLAGS[unexport] = "1" -export PYTHON_VERSION = "${PYTHON_BASEVERSION}" -export PYTAG = "cpython${@ d.getVar('PYTHON_BASEVERSION').replace('.', '')}" +export PYTHON_VERSION = "${PYTHON_MAINVERSION}" +export PYTAG = "cpython${@ d.getVar('PYTHON_MAINVERSION').replace('.', '')}" export pyext_PATTERN = "%s.so" export PYTHON_LDFLAGS = "-lpthread -ldl"
Signature · 1 line
2.53.0
Re: [meta-networking][PATCH 03/15] ntpsec: Support Python freethreading
You forgot to mark this series as RFC since it is dependent upon another patch series meant for OE-core. Please ping here once the oe-core one is merged.
Quoted 31 lines · Zoltán Böszörményi
Use
PYTHON_MAINVERSIONinstead ofPYTHON_BASEVERSIONbecause the former includesPYTHON_ABI. This makes the python module to be installed into the correct location.Signed-off-by Zoltán Böszörményi <[email protected]>--- meta-networking/recipes-support/ntpsec/ntpsec_1.2.4.bb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)meta-networking/recipes-support/ntpsec/ntpsec_1.2.4.bb +0
-2@@ -50,8 +50,8 @@ CC[unexport] = "1" CFLAGS[unexport] = "1" LDFLAGS[unexport] = "1" -export PYTHON_VERSION = "${PYTHON_BASEVERSION}" -export PYTAG = "cpython${@ d.getVar('PYTHON_BASEVERSION').replace('.','')}"
meta-networking/recipes-support/ntpsec/ntpsec_1.2.4.bb +2
-0+export PYTHON_VERSION = "${PYTHON_MAINVERSION}" +export PYTAG = "cpython${@ d.getVar('PYTHON_MAINVERSION').replace('.','')}"
exportpyext_PATTERN= "%s.so"
exportPYTHON_LDFLAGS= "-lpthread -ldl"--
2.53.0
Re: [meta-networking][PATCH 03/15] ntpsec: Support Python freethreading
2026. 03. 25. 17:35 keltezéssel, Khem Raj írta:
Quoted 1 line
You forgot to mark this series as RFC since it is dependent upon another patch series meant for OE-core. Please ping here once the oe-core one is merged.
The cover letter was marked as RFC.
I hand-edited every patch in this series to add the sublayer name, since it touches 3 of them. A single --subject-prefix wouldn't do any good. I just forgot the RFC for the patches.
Quoted 32 lines · Zoltán Böszörményi
Use PYTHON_MAINVERSION instead of PYTHON_BASEVERSION because
the former includes PYTHON_ABI. This makes the python module
to be installed into the correct location.
Signed-off-by: Zoltán Böszörményi <[email protected]>
---
meta-networking/recipes-support/ntpsec/ntpsec_1.2.4.bb <http://ntpsec_1.2.4.bb> | 4
++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/meta-networking/recipes-support/ntpsec/ntpsec_1.2.4.bb
<http://ntpsec_1.2.4.bb> b/meta-networking/recipes-support/ntpsec/ntpsec_1.2.4.bb
<http://ntpsec_1.2.4.bb>
index 9704e2d15e..acde62a493 100644
--- a/meta-networking/recipes-support/ntpsec/ntpsec_1.2.4.bb <http://ntpsec_1.2.4.bb>
+++ b/meta-networking/recipes-support/ntpsec/ntpsec_1.2.4.bb <http://ntpsec_1.2.4.bb>
@@ -50,8 +50,8 @@ CC[unexport] = "1"
CFLAGS[unexport] = "1"
LDFLAGS[unexport] = "1"
-export PYTHON_VERSION = "${PYTHON_BASEVERSION}"
-export PYTAG = "cpython${@ d.getVar('PYTHON_BASEVERSION').replace('.', '')}"
+export PYTHON_VERSION = "${PYTHON_MAINVERSION}"
+export PYTAG = "cpython${@ d.getVar('PYTHON_MAINVERSION').replace('.', '')}"
export pyext_PATTERN = "%s.so"
export PYTHON_LDFLAGS = "-lpthread -ldl"
--
2.53.0PATCH 4/15 openipmi: Support Python freethreading
In reply to Zoltán BöszörményiPYTHON_DIR now contains PYTHON_ABI, use only the former for consistency.
--- meta-networking/recipes-support/openipmi/openipmi_2.0.37.bb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
meta-networking/recipes-support/openipmi/openipmi_2.0.37.bb +1 -1
@@ -44,7 +44,7 @@ CFLAGS += "-D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64" EXTRA_OECONF = "--disable-static \ --with-perl='${STAGING_BINDIR_NATIVE}/perl-native/perl' \ --with-glibver=2.0 \ - --with-pythoncflags='-I${STAGING_INCDIR}/${PYTHON_DIR}${PYTHON_ABI}' \ + --with-pythoncflags='-I${STAGING_INCDIR}/${PYTHON_DIR}' \ " PACKAGECONFIG ??= "gdbm"
Signature · 1 line
2.53.0
PATCH 5/15 gst-editing-services: Support Python freethreading
In reply to Zoltán BöszörményiPYTHON_DIR now contains PYTHON_ABI, use this instead of the directory name based on PYTHON_BASEVERSION.
--- .../gst-editing-services/gst-editing-services_1.22.7.bb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
meta-oe/recipes-devtools/gst-editing-services/gst-editing-services_1.22.7.bb +1 -1
@@ -25,4 +25,4 @@ PACKAGES += "gst-validate-launcher libges" FILES:gst-validate-launcher = "${nonarch_libdir}/gst-validate-launcher ${datadir}/gstreamer-1.0/validate" FILES:libges = "${libdir}/gstreamer-1.0/*.so" -FILES:${PN} += "/usr/lib/python${PYTHON_BASEVERSION}" +FILES:${PN} += "/usr/lib/${PYTHON_DIR}"
Signature · 1 line
2.53.0
PATCH 6/15 cmpi-bindings: Support Python freethreading
In reply to Zoltán BöszörményiUse PYTHON_DIR instead of the directory name based on PYTHON_BASEVERSION.
--- meta-oe/recipes-extended/cmpi-bindings/cmpi-bindings_1.0.5.bb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
meta-oe/recipes-extended/cmpi-bindings/cmpi-bindings_1.0.5.bb +1 -1
@@ -18,7 +18,7 @@ SRCREV = "49d6dcfc71ca421100fcf325e31625817c469fc9" inherit cmake python3targetconfig EXTRA_OECMAKE = "-DLIB='${baselib}' \ - -DPYTHON_INCLUDE_PATH=${STAGING_INCDIR}/python${PYTHON_BASEVERSION} \ + -DPYTHON_INCLUDE_PATH=${STAGING_INCDIR}/${PYTHON_DIR} \ -DPYTHON_ABI=${PYTHON_ABI} \ -DBUILD_PYTHON3=NO \ -DPython3_SITE_DIR=${PYTHON_SITEPACKAGES_DIR} \
Signature · 1 line
2.53.0
PATCH 7/15 isomd5sum: Support Python freethreading
In reply to Zoltán BöszörményiPYTHON_DIR now contains PYTHON_ABI, use that.
--- meta-oe/recipes-extended/isomd5sum/isomd5sum_1.2.5.bb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
meta-oe/recipes-extended/isomd5sum/isomd5sum_1.2.5.bb +1 -1
@@ -16,7 +16,7 @@ inherit python3native EXTRA_OEMAKE += " \ DESTDIR='${D}' \ - PYTHONINCLUDE='-I${STAGING_INCDIR}/${PYTHON_DIR}${PYTHON_ABI}' \ + PYTHONINCLUDE='-I${STAGING_INCDIR}/${PYTHON_DIR}' \ PYTHONSITEPACKAGES='${PYTHON_SITEPACKAGES_DIR}' \ "
Signature · 1 line
2.53.0
PATCH 8/15 libpwquality: Support Python freethreading
In reply to Zoltán BöszörményiUse PYTHON_MAINVERSION instead of PYTHON_BASEVERSION. The former now contains PYTHON_ABI. This makes the python module to be installed into the correct location.
--- meta-oe/recipes-extended/libpwquality/libpwquality_1.4.5.bb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
meta-oe/recipes-extended/libpwquality/libpwquality_1.4.5.bb +1 -1
@@ -24,7 +24,7 @@ export PYTHON_DIR export BUILD_SYS export HOST_SYS -EXTRA_OECONF += "--with-python-rev=${PYTHON_BASEVERSION} \ +EXTRA_OECONF += "--with-python-rev=${PYTHON_MAINVERSION} \ --with-python-binary=${STAGING_BINDIR_NATIVE}/python3-native/python3 \ --with-pythonsitedir=${PYTHON_SITEPACKAGES_DIR} \ --libdir=${libdir} \
Signature · 1 line
2.53.0
PATCH 9/15 mraa: Support Python freethreading
In reply to Zoltán BöszörményiPYTHON_DIR now contains PYTHON_ABI, use it for correct library path, include and site-packages locations.
TODO: fix building the python module due to:
ModuleNotFoundError: No module named 'distutils'
--- meta-oe/recipes-extended/mraa/mraa_git.bb | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-)
meta-oe/recipes-extended/mraa/mraa_git.bb +3 -3
@@ -24,9 +24,9 @@ inherit cmake setuptools3-base DEPENDS += "json-c" EXTRA_OECMAKE:append = " -DINSTALLTOOLS:BOOL=ON -DFIRMATA=ON -DCMAKE_SKIP_RPATH=ON -DPYTHON2_LIBRARY=OFF \ - -DPYTHON3_PACKAGES_PATH:PATH=${baselib}/python${PYTHON_BASEVERSION}/site-packages \ - -DPYTHON_LIBRARY=${STAGING_LIBDIR}/lib${PYTHON_DIR}${PYTHON_ABI}.so \ - -DPYTHON_INCLUDE_DIR=${STAGING_INCDIR}/${PYTHON_DIR}${PYTHON_ABI} \ + -DPYTHON3_PACKAGES_PATH:PATH=${baselib}/${PYTHON_DIR}/site-packages \ + -DPYTHON_LIBRARY=${STAGING_LIBDIR}/lib${PYTHON_DIR}.so \ + -DPYTHON_INCLUDE_DIR=${STAGING_INCDIR}/${PYTHON_DIR} \ " # Prepend mraa-utils to make sure bindir ends up in there
Signature · 1 line
2.53.0
PATCH 10/15 rrdtool: Support Python freethreading
In reply to Zoltán BöszörményiPYTHON_DIR now contains PYTHON_ABI. Use it for the correct library path, include and site-packages locations.
Fixed runtime dependency for PACKAGECONFIG[python].
Note that there is an issue with the python module:
ERROR: rrdtool-1.9.0-r0 do_package_qa: QA Issue:
File /usr/lib/python3.14t/site-packages/rrdtool.cpython-314t-x86_64-linux-gnu.so in package rrdtool-python contains reference to TMPDIR [buildpaths]
--- meta-oe/recipes-extended/rrdtool/rrdtool_1.9.0.bb | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-)
meta-oe/recipes-extended/rrdtool/rrdtool_1.9.0.bb +4 -4
@@ -32,9 +32,9 @@ PACKAGECONFIG ??= " \ " PACKAGECONFIG[python] = "--enable-python=yes \ -am_cv_python_pythondir=${STAGING_LIBDIR}/python${PYTHON_BASEVERSION}/site-packages \ -am_cv_python_pyexecdir=${STAGING_LIBDIR}/python${PYTHON_BASEVERSION}/site-packages,\ ---disable-python,python," +am_cv_python_pythondir=${STAGING_LIBDIR}/${PYTHON_DIR}/site-packages \ +am_cv_python_pyexecdir=${STAGING_LIBDIR}/${PYTHON_DIR}/site-packages,\ +--disable-python,python3," PACKAGECONFIG[perl] = \ "--enable-perl=yes --with-perl-options='INSTALLDIRS="vendor" CCFLAGS="${CFLAGS}" NO_PACKLIST=1 NO_PERLLOCAL=1' \
@@ -80,7 +80,7 @@ do_configure() { #python sed -i -e '/PYTHON_INCLUDES="-I${/c \ - PYTHON_INCLUDES="-I=/usr/include/python${PYTHON_BASEVERSION}"' \ + PYTHON_INCLUDES="-I=/usr/include/${PYTHON_DIR}"' \ ${S}/m4/acinclude.m4 #remove the useless RPATH from the rrdtool.so sed -i -e 's|LD_RUN_PATH=$(libdir)||g' ${S}/bindings/Makefile.am
Signature · 1 line
2.53.0
PATCH 11/15 upm: Support Python freethreading
In reply to Zoltán BöszörményiPYTHON_DIR now contains PYTHON_ABI, use that for the correct libpython and include directory paths.
--- meta-oe/recipes-extended/upm/upm_git.bb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
meta-oe/recipes-extended/upm/upm_git.bb +1 -1
@@ -45,7 +45,7 @@ BINDINGS:armv5 ??= "python" PACKAGECONFIG ??= "${@bb.utils.contains('PACKAGES', 'node-${PN}', 'nodejs', '', d)} \ ${@bb.utils.contains('PACKAGES', 'python3-${PN}', 'python', '', d)}" -PACKAGECONFIG[python] = "-DBUILDSWIGPYTHON=ON -DPYTHON_LIBRARY=${STAGING_LIBDIR}/lib${PYTHON_DIR}${PYTHON_ABI}.so -DPYTHON_INCLUDE_DIR=${STAGING_INCDIR}/${PYTHON_DIR}${PYTHON_ABI}, -DBUILDSWIGPYTHON=OFF, swig-native python3," +PACKAGECONFIG[python] = "-DBUILDSWIGPYTHON=ON -DPYTHON3_PACKAGES_PATH=${PYTHON_SITEPACKAGES_DIR} -DPYTHON_LIBRARY=${STAGING_LIBDIR}/lib${PYTHON_DIR}.so -DPYTHON_INCLUDE_DIR=${STAGING_INCDIR}/${PYTHON_DIR}, -DBUILDSWIGPYTHON=OFF, swig-native python3," PACKAGECONFIG[nodejs] = "-DBUILDSWIGNODE=ON, -DBUILDSWIGNODE=OFF, swig-native nodejs-native," do_configure:prepend() {
Signature · 1 line
2.53.0
PATCH 12/15 fontforge: Support Python freethreading
In reply to Zoltán BöszörményiUse PYTHON_DIR and PYTHON_DIR_NATIVE for the correct build and target library names, respectively.
--- meta-oe/recipes-graphics/fontforge/fontforge_20251009.bb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
meta-oe/recipes-graphics/fontforge/fontforge_20251009.bb +2 -2
@@ -34,8 +34,8 @@ PACKAGECONFIG = "readline" PACKAGECONFIG[readline] = "-DENABLE_READLINE=ON,-DENABLE_READLINE=OFF,readline" CFLAGS += "-fno-strict-aliasing" -LDFLAGS += "-lpython${PYTHON_BASEVERSION}${PYTHON_ABI}" -BUILD_LDFLAGS += "-lpython${PYTHON_BASEVERSION}${PYTHON_ABI}" +LDFLAGS += "-l${PYTHON_DIR}" +BUILD_LDFLAGS += "-l${PYTHON_DIR_NATIVE}" PACKAGES =+ "${PN}-python"
Signature · 1 line
2.53.0
PATCH 13/15 audit: Support Python freethreading
In reply to Zoltán BöszörményiUse PYTHON_DIR for FILES in subpackages.
--- meta-oe/recipes-security/audit/audit_4.1.3.bb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
meta-oe/recipes-security/audit/audit_4.1.3.bb +2 -2
@@ -65,8 +65,8 @@ FILES:audispd-plugins = "${sysconfdir}/audit/audisp-remote.conf \ ${base_sbindir}/audisp-syslog \ ${localstatedir}/spool/audit \ " -FILES:${PN}-dbg += "${libdir}/python${PYTHON_BASEVERSION}/*/.debug" -FILES:${PN}-python = "${libdir}/python${PYTHON_BASEVERSION}" +FILES:${PN}-dbg += "${libdir}/${PYTHON_DIR}/*/.debug" +FILES:${PN}-python = "${libdir}/${PYTHON_DIR}" CONFFILES:auditd = "${sysconfdir}/audit/audit.rules"
Signature · 1 line
2.53.0
PATCH 14/15 libftdi: Support Python freethreading
In reply to Zoltán BöszörményiUse PYTHON_DIR for the correct libpython and include directory paths.
--- meta-oe/recipes-support/libftdi/libftdi_1.5.bb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
meta-oe/recipes-support/libftdi/libftdi_1.5.bb +2 -2
@@ -32,8 +32,8 @@ PACKAGECONFIG[ftdi-eeprom] = "-DFTDI_EEPROM=on,-DFTDI_EEPROM=off,libconfuse" EXTRA_OECMAKE = "-DSTATICLIBS=off -DEXAMPLES=off \ -DLIB_SUFFIX=${@d.getVar('baselib').replace('lib', '')} \ - -DPYTHON_LIBRARY=${STAGING_LIBDIR}/lib${PYTHON_DIR}${PYTHON_ABI}.so \ - -DPYTHON_INCLUDE_DIR=${STAGING_INCDIR}/${PYTHON_DIR}${PYTHON_ABI}" + -DPYTHON_LIBRARY=${STAGING_LIBDIR}/lib${PYTHON_DIR}.so \ + -DPYTHON_INCLUDE_DIR=${STAGING_INCDIR}/${PYTHON_DIR}" do_install:append() { # remove absolute paths
Signature · 1 line
2.53.0
PATCH 15/15 opencv: Fix installing when Python freethreading is enabled
In reply to Zoltán BöszörményiMove the installed site-packages directory to the correct location.
--- meta-oe/recipes-support/opencv/opencv_4.13.0.bb | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-)
meta-oe/recipes-support/opencv/opencv_4.13.0.bb +5 -1
@@ -117,7 +117,7 @@ PACKAGECONFIG[opencl] = "-DWITH_OPENCL=ON,-DWITH_OPENCL=OFF,opencl-headers virtu PACKAGECONFIG[openvino] = "-DWITH_OPENVINO=ON,-DWITH_OPENVINO=OFF,openvino-inference-engine,openvino-inference-engine" PACKAGECONFIG[oracle-java] = "-DJAVA_INCLUDE_PATH=${ORACLE_JAVA_HOME}/include -DJAVA_INCLUDE_PATH2=${ORACLE_JAVA_HOME}/include/linux -DJAVA_AWT_INCLUDE_PATH=${ORACLE_JAVA_HOME}/include -DJAVA_AWT_LIBRARY=${ORACLE_JAVA_HOME}/lib/amd64/libjawt.so -DJAVA_JVM_LIBRARY=${ORACLE_JAVA_HOME}/lib/amd64/server/libjvm.so,,ant-native oracle-jse-jdk oracle-jse-jdk-native," PACKAGECONFIG[png] = "-DWITH_PNG=ON,-DWITH_PNG=OFF,libpng," -PACKAGECONFIG[python3] = "-DPYTHON3_INCLUDE_PATH=${STAGING_INCDIR}/${PYTHON_DIR}${PYTHON_ABI} -DPYTHON3_NUMPY_INCLUDE_DIRS:PATH=${STAGING_LIBDIR}/${PYTHON_DIR}/site-packages/numpy/_core/include,,python3-numpy," +PACKAGECONFIG[python3] = "-DPYTHON3_INCLUDE_PATH=${STAGING_INCDIR}/${PYTHON_DIR} -DPYTHON3_NUMPY_INCLUDE_DIRS:PATH=${STAGING_LIBDIR}/${PYTHON_DIR}/site-packages/numpy/_core/include,,python3-numpy," PACKAGECONFIG[samples] = "-DBUILD_EXAMPLES=ON -DINSTALL_BIN_EXAMPLES=ON -DINSTALL_PYTHON_EXAMPLES=ON,-DBUILD_EXAMPLES=OFF,," PACKAGECONFIG[tbb] = "-DWITH_TBB=ON,-DWITH_TBB=OFF,tbb," PACKAGECONFIG[tests] = "-DBUILD_TESTS=ON -DINSTALL_TESTS=ON,-DBUILD_TESTS=OFF,,"
@@ -224,6 +224,10 @@ do_install:append() { # mesa-demos /usr/bin/shape file. mv ${D}/${bindir}/shape ${D}/${bindir}/opencv_shape fi + + if [ ! -d ${D}${libdir}/${PYTHON_DIR} ]; then + mv ${D}${libdir}/python${PYTHON_BASEVERSION} ${D}${libdir}/${PYTHON_DIR} + fi } do_install:append:class-target() {
Signature · 1 line
2.53.0