diff options
| author | Khem Raj <raj.khem@gmail.com> | 2024-01-06 21:06:33 -0800 |
|---|---|---|
| committer | Khem Raj <raj.khem@gmail.com> | 2024-01-08 19:54:39 -0800 |
| commit | 34794c0c28eb945d24902fbba58dafb61829850e (patch) | |
| tree | e70d9c2092a02f0a532495b41e051e7bb14dc97e /meta-python/recipes-devtools/python | |
| parent | 1a05731de484f1f97eecaeb56296f72e76ba2b32 (diff) | |
| download | meta-openembedded-34794c0c28eb945d24902fbba58dafb61829850e.tar.gz | |
python3-pydantic-core: Rename the cpython module on musl
wheel contains site-package .so named linux-musl which is not loadable
on musl systems, rename it to linux-gnu even on musl like other python
dynamic modules.
This fixed ptest runs for both pydantic-core and pydantic recipes
Signed-off-by: Khem Raj <raj.khem@gmail.com>
Diffstat (limited to 'meta-python/recipes-devtools/python')
| -rw-r--r-- | meta-python/recipes-devtools/python/python3-pydantic-core_2.14.6.bb | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/meta-python/recipes-devtools/python/python3-pydantic-core_2.14.6.bb b/meta-python/recipes-devtools/python/python3-pydantic-core_2.14.6.bb index 601ba25b60..e58ee7fd66 100644 --- a/meta-python/recipes-devtools/python/python3-pydantic-core_2.14.6.bb +++ b/meta-python/recipes-devtools/python/python3-pydantic-core_2.14.6.bb | |||
| @@ -34,6 +34,17 @@ RDEPENDS:${PN}-ptest += "\ | |||
| 34 | python3-unittest-automake-output \ | 34 | python3-unittest-automake-output \ |
| 35 | " | 35 | " |
| 36 | 36 | ||
| 37 | do_install:append() { | ||
| 38 | for f in ${D}/${libdir}/${PYTHON_DIR}/site-packages/pydantic_core/_pydantic_core.*.so | ||
| 39 | do | ||
| 40 | fname=`basename $f` | ||
| 41 | lname=`echo $fname | sed 's/musl/gnu/'` | ||
| 42 | if [ "$fname" != "$lname" ]; then | ||
| 43 | mv $f ${D}/${libdir}/${PYTHON_DIR}/site-packages/pydantic_core/$lname | ||
| 44 | fi | ||
| 45 | done | ||
| 46 | } | ||
| 47 | |||
| 37 | do_install_ptest() { | 48 | do_install_ptest() { |
| 38 | cp -rf ${S}/tests/ ${D}${PTEST_PATH}/ | 49 | cp -rf ${S}/tests/ ${D}${PTEST_PATH}/ |
| 39 | rm -rf ${D}${PTEST_PATH}/tests/benchmarks | 50 | rm -rf ${D}${PTEST_PATH}/tests/benchmarks |
