diff options
author | alperak <alperyasinak1@gmail.com> | 2024-04-15 21:19:59 +0300 |
---|---|---|
committer | Khem Raj <raj.khem@gmail.com> | 2024-04-21 10:52:39 -0700 |
commit | 050286a953034e4b3bd607dae641b0aa7ff765c3 (patch) | |
tree | effb569c1be16224c140d5fa0eeef66798792e7f /meta-python/recipes-devtools | |
parent | 43fefa0daff2655f0059bf7d6116c32cdbdd0488 (diff) | |
download | meta-openembedded-050286a953034e4b3bd607dae641b0aa7ff765c3.tar.gz |
Use PYTHON_SITEPACKAGES_DIR instead of hard-coded site-packages directory path
The following paths have been replaced with PYTHON_SITEPACKAGES_DIR:
- "${libdir}/${PYTHON_DIR}/site-packages"
- "${libdir}/python${PYTHON_BASEVERSION}/site-packages"
- "${libdir}/python*/site-packages"
- "${libdir}/python3.*/site-packages"
Signed-off-by: alperak <alperyasinak1@gmail.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
Diffstat (limited to 'meta-python/recipes-devtools')
4 files changed, 5 insertions, 5 deletions
diff --git a/meta-python/recipes-devtools/python/python3-dateutil_2.9.0.bb b/meta-python/recipes-devtools/python/python3-dateutil_2.9.0.bb index ac76ccc96a..1f7a4a03fd 100644 --- a/meta-python/recipes-devtools/python/python3-dateutil_2.9.0.bb +++ b/meta-python/recipes-devtools/python/python3-dateutil_2.9.0.bb | |||
@@ -10,7 +10,7 @@ PYPI_PACKAGE = "python-dateutil" | |||
10 | inherit pypi python_setuptools_build_meta | 10 | inherit pypi python_setuptools_build_meta |
11 | 11 | ||
12 | PACKAGES =+ "${PN}-zoneinfo" | 12 | PACKAGES =+ "${PN}-zoneinfo" |
13 | FILES:${PN}-zoneinfo = "${libdir}/${PYTHON_DIR}/site-packages/dateutil/zoneinfo" | 13 | FILES:${PN}-zoneinfo = "${PYTHON_SITEPACKAGES_DIR}/dateutil/zoneinfo" |
14 | 14 | ||
15 | DEPENDS += "python3-setuptools-scm-native" | 15 | DEPENDS += "python3-setuptools-scm-native" |
16 | 16 | ||
diff --git a/meta-python/recipes-devtools/python/python3-pydantic-core_2.16.3.bb b/meta-python/recipes-devtools/python/python3-pydantic-core_2.16.3.bb index 934e3e2bb2..faa291ea6d 100644 --- a/meta-python/recipes-devtools/python/python3-pydantic-core_2.16.3.bb +++ b/meta-python/recipes-devtools/python/python3-pydantic-core_2.16.3.bb | |||
@@ -36,12 +36,12 @@ RDEPENDS:${PN}-ptest += "\ | |||
36 | " | 36 | " |
37 | 37 | ||
38 | do_install:append() { | 38 | do_install:append() { |
39 | for f in ${D}/${libdir}/${PYTHON_DIR}/site-packages/pydantic_core/_pydantic_core.*.so | 39 | for f in ${D}/${PYTHON_SITEPACKAGES_DIR}/pydantic_core/_pydantic_core.*.so |
40 | do | 40 | do |
41 | fname=`basename $f` | 41 | fname=`basename $f` |
42 | lname=`echo $fname | sed 's/musl/gnu/'` | 42 | lname=`echo $fname | sed 's/musl/gnu/'` |
43 | if [ "$fname" != "$lname" ]; then | 43 | if [ "$fname" != "$lname" ]; then |
44 | mv $f ${D}/${libdir}/${PYTHON_DIR}/site-packages/pydantic_core/$lname | 44 | mv $f ${D}/${PYTHON_SITEPACKAGES_DIR}/pydantic_core/$lname |
45 | fi | 45 | fi |
46 | done | 46 | done |
47 | } | 47 | } |
diff --git a/meta-python/recipes-devtools/python/python3-pyzmq_25.1.2.bb b/meta-python/recipes-devtools/python/python3-pyzmq_25.1.2.bb index 540aa62006..2a6993c141 100644 --- a/meta-python/recipes-devtools/python/python3-pyzmq_25.1.2.bb +++ b/meta-python/recipes-devtools/python/python3-pyzmq_25.1.2.bb | |||
@@ -22,7 +22,7 @@ PACKAGES =+ "\ | |||
22 | " | 22 | " |
23 | 23 | ||
24 | FILES:${PN}-test += "\ | 24 | FILES:${PN}-test += "\ |
25 | ${libdir}/${PYTHON_DIR}/site-packages/*/tests \ | 25 | ${PYTHON_SITEPACKAGES_DIR}/*/tests \ |
26 | " | 26 | " |
27 | 27 | ||
28 | RDEPENDS:${PN} += "\ | 28 | RDEPENDS:${PN} += "\ |
diff --git a/meta-python/recipes-devtools/python/python3-tornado_6.4.bb b/meta-python/recipes-devtools/python/python3-tornado_6.4.bb index 08c8672ebe..b01c1cec2a 100644 --- a/meta-python/recipes-devtools/python/python3-tornado_6.4.bb +++ b/meta-python/recipes-devtools/python/python3-tornado_6.4.bb | |||
@@ -35,7 +35,7 @@ PACKAGES =+ "\ | |||
35 | " | 35 | " |
36 | 36 | ||
37 | FILES:${PN}-test = " \ | 37 | FILES:${PN}-test = " \ |
38 | ${libdir}/${PYTHON_DIR}/site-packages/*/test \ | 38 | ${PYTHON_SITEPACKAGES_DIR}/*/test \ |
39 | " | 39 | " |
40 | 40 | ||
41 | BBCLASSEXTEND += "native nativesdk" | 41 | BBCLASSEXTEND += "native nativesdk" |