diff options
Diffstat (limited to 'meta/recipes-devtools/python/python3-packaging_24.1.bb')
| -rw-r--r-- | meta/recipes-devtools/python/python3-packaging_24.1.bb | 21 |
1 files changed, 20 insertions, 1 deletions
diff --git a/meta/recipes-devtools/python/python3-packaging_24.1.bb b/meta/recipes-devtools/python/python3-packaging_24.1.bb index 596250b066..20bcd55fba 100644 --- a/meta/recipes-devtools/python/python3-packaging_24.1.bb +++ b/meta/recipes-devtools/python/python3-packaging_24.1.bb | |||
| @@ -5,7 +5,9 @@ LIC_FILES_CHKSUM = "file://LICENSE;md5=faadaedca9251a90b205c9167578ce91" | |||
| 5 | 5 | ||
| 6 | SRC_URI[sha256sum] = "026ed72c8ed3fcce5bf8950572258698927fd1dbda10a5e981cdf0ac37f4f002" | 6 | SRC_URI[sha256sum] = "026ed72c8ed3fcce5bf8950572258698927fd1dbda10a5e981cdf0ac37f4f002" |
| 7 | 7 | ||
| 8 | inherit pypi python_flit_core | 8 | SRC_URI += "file://run-ptest" |
| 9 | |||
| 10 | inherit pypi python_flit_core ptest | ||
| 9 | 11 | ||
| 10 | BBCLASSEXTEND = "native nativesdk" | 12 | BBCLASSEXTEND = "native nativesdk" |
| 11 | 13 | ||
| @@ -16,3 +18,20 @@ RDEPENDS:${PN} += "python3-profile" | |||
| 16 | do_compile:class-native () { | 18 | do_compile:class-native () { |
| 17 | python_flit_core_do_manual_build | 19 | python_flit_core_do_manual_build |
| 18 | } | 20 | } |
| 21 | |||
| 22 | do_install_ptest() { | ||
| 23 | cp -r ${S}/tests ${D}${PTEST_PATH}/ | ||
| 24 | # We don't need this script which is used to build the binaries | ||
| 25 | rm -f ${D}${PTEST_PATH}/tests/manylinux/build.sh | ||
| 26 | } | ||
| 27 | |||
| 28 | RDEPENDS:${PN}-ptest = "\ | ||
| 29 | python3-ctypes \ | ||
| 30 | python3-pretend \ | ||
| 31 | python3-pytest \ | ||
| 32 | python3-unittest-automake-output \ | ||
| 33 | " | ||
| 34 | |||
| 35 | # The ptest package contains prebuilt test binaries | ||
| 36 | INSANE_SKIP:${PN} = "already-stripped" | ||
| 37 | INSANE_SKIP:${PN}-ptest = "arch" | ||
