diff options
Diffstat (limited to 'meta/recipes-devtools/python')
| -rw-r--r-- | meta/recipes-devtools/python/python3-cython_3.0.11.bb | 32 | ||||
| -rw-r--r-- | meta/recipes-devtools/python/python3-numpy_1.26.4.bb | 4 | ||||
| -rw-r--r-- | meta/recipes-devtools/python/python3-pyyaml_6.0.2.bb | 4 |
3 files changed, 7 insertions, 33 deletions
diff --git a/meta/recipes-devtools/python/python3-cython_3.0.11.bb b/meta/recipes-devtools/python/python3-cython_3.0.11.bb index efce67d092..020a8e7205 100644 --- a/meta/recipes-devtools/python/python3-cython_3.0.11.bb +++ b/meta/recipes-devtools/python/python3-cython_3.0.11.bb | |||
| @@ -10,42 +10,20 @@ LIC_FILES_CHKSUM = "file://LICENSE.txt;md5=61c3ee8961575861fa86c7e62bc9f69c" | |||
| 10 | SRC_URI += "file://0001-WIP-prefix-map.patch" | 10 | SRC_URI += "file://0001-WIP-prefix-map.patch" |
| 11 | SRC_URI[sha256sum] = "7146dd2af8682b4ca61331851e6aebce9fe5158e75300343f80c07ca80b1faff" | 11 | SRC_URI[sha256sum] = "7146dd2af8682b4ca61331851e6aebce9fe5158e75300343f80c07ca80b1faff" |
| 12 | 12 | ||
| 13 | inherit pypi setuptools3 | 13 | inherit pypi setuptools3 cython |
| 14 | UPSTREAM_CHECK_PYPI_PACKAGE = "Cython" | ||
| 15 | 14 | ||
| 16 | do_install:append() { | 15 | # No need to depend on self |
| 17 | # Make sure we use /usr/bin/env python3 | 16 | DEPENDS:remove = "python3-cython-native" |
| 18 | for PYTHSCRIPT in `grep -rIl '^#!.*python' ${D}`; do | ||
| 19 | sed -i -e '1s|^#!.*|#!/usr/bin/env python3|' $PYTHSCRIPT | ||
| 20 | done | ||
| 21 | 17 | ||
| 22 | # remove build paths from generated sources | 18 | UPSTREAM_CHECK_PYPI_PACKAGE = "Cython" |
| 23 | sed -i -e 's|${WORKDIR}||' ${S}/Cython/*.c ${S}/Cython/Compiler/*.c ${S}/Cython/Plex/*.c | ||
| 24 | 19 | ||
| 20 | do_install:append() { | ||
| 25 | # rename scripts that would conflict with the Python 2 build of Cython | 21 | # rename scripts that would conflict with the Python 2 build of Cython |
| 26 | mv ${D}${bindir}/cython ${D}${bindir}/cython3 | 22 | mv ${D}${bindir}/cython ${D}${bindir}/cython3 |
| 27 | mv ${D}${bindir}/cythonize ${D}${bindir}/cythonize3 | 23 | mv ${D}${bindir}/cythonize ${D}${bindir}/cythonize3 |
| 28 | mv ${D}${bindir}/cygdb ${D}${bindir}/cygdb3 | 24 | mv ${D}${bindir}/cygdb ${D}${bindir}/cygdb3 |
| 29 | } | 25 | } |
| 30 | 26 | ||
| 31 | PACKAGESPLITFUNCS =+ "cython_fix_sources" | ||
| 32 | |||
| 33 | cython_fix_sources () { | ||
| 34 | for f in ${PKGD}${TARGET_DBGSRC_DIR}/Cython/Compiler/FlowControl.c \ | ||
| 35 | ${PKGD}${TARGET_DBGSRC_DIR}/Cython/Compiler/FusedNode.c \ | ||
| 36 | ${PKGD}${TARGET_DBGSRC_DIR}/Cython/Compiler/Scanning.c \ | ||
| 37 | ${PKGD}${TARGET_DBGSRC_DIR}/Cython/Compiler/Visitor.c \ | ||
| 38 | ${PKGD}${TARGET_DBGSRC_DIR}/Cython/Plex/Actions.c \ | ||
| 39 | ${PKGD}${TARGET_DBGSRC_DIR}/Cython/Plex/Scanners.c \ | ||
| 40 | ${PKGD}${TARGET_DBGSRC_DIR}/Cython/Runtime/refnanny.c \ | ||
| 41 | ${PKGD}${TARGET_DBGSRC_DIR}/Cython/Tempita/_tempita.c \ | ||
| 42 | ${PKGD}${libdir}/${PYTHON_DIR}/site-packages/Cython*/SOURCES.txt; do | ||
| 43 | if [ -e $f ]; then | ||
| 44 | sed -i -e 's#${WORKDIR}/cython-${PV}#${TARGET_DBGSRC_DIR}#g' $f | ||
| 45 | fi | ||
| 46 | done | ||
| 47 | } | ||
| 48 | |||
| 49 | RDEPENDS:${PN}:class-target += "\ | 27 | RDEPENDS:${PN}:class-target += "\ |
| 50 | python3-misc \ | 28 | python3-misc \ |
| 51 | python3-netserver \ | 29 | python3-netserver \ |
diff --git a/meta/recipes-devtools/python/python3-numpy_1.26.4.bb b/meta/recipes-devtools/python/python3-numpy_1.26.4.bb index 914245507c..fa78b07f48 100644 --- a/meta/recipes-devtools/python/python3-numpy_1.26.4.bb +++ b/meta/recipes-devtools/python/python3-numpy_1.26.4.bb | |||
| @@ -18,9 +18,7 @@ SRC_URI[sha256sum] = "2a02aba9ed12e4ac4eb3ea9421c420301a0c6460d9830d74a9df87efa4 | |||
| 18 | GITHUB_BASE_URI = "https://github.com/numpy/numpy/releases" | 18 | GITHUB_BASE_URI = "https://github.com/numpy/numpy/releases" |
| 19 | UPSTREAM_CHECK_REGEX = "releases/tag/v?(?P<pver>\d+(\.\d+)+)$" | 19 | UPSTREAM_CHECK_REGEX = "releases/tag/v?(?P<pver>\d+(\.\d+)+)$" |
| 20 | 20 | ||
| 21 | DEPENDS += "python3-cython-native" | 21 | inherit ptest setuptools3 github-releases cython |
| 22 | |||
| 23 | inherit ptest setuptools3 github-releases | ||
| 24 | 22 | ||
| 25 | S = "${WORKDIR}/numpy-${PV}" | 23 | S = "${WORKDIR}/numpy-${PV}" |
| 26 | 24 | ||
diff --git a/meta/recipes-devtools/python/python3-pyyaml_6.0.2.bb b/meta/recipes-devtools/python/python3-pyyaml_6.0.2.bb index 10e61274b0..9f9320a594 100644 --- a/meta/recipes-devtools/python/python3-pyyaml_6.0.2.bb +++ b/meta/recipes-devtools/python/python3-pyyaml_6.0.2.bb | |||
| @@ -4,8 +4,6 @@ HOMEPAGE = "https://pyyaml.org/" | |||
| 4 | LICENSE = "MIT" | 4 | LICENSE = "MIT" |
| 5 | LIC_FILES_CHKSUM = "file://LICENSE;md5=6d8242660a8371add5fe547adf083079" | 5 | LIC_FILES_CHKSUM = "file://LICENSE;md5=6d8242660a8371add5fe547adf083079" |
| 6 | 6 | ||
| 7 | DEPENDS += "python3-cython-native" | ||
| 8 | |||
| 9 | SRC_URI[sha256sum] = "d584d9ec91ad65861cc08d42e834324ef890a082e591037abe114850ff7bbc3e" | 7 | SRC_URI[sha256sum] = "d584d9ec91ad65861cc08d42e834324ef890a082e591037abe114850ff7bbc3e" |
| 10 | 8 | ||
| 11 | SRC_URI += "\ | 9 | SRC_URI += "\ |
| @@ -16,7 +14,7 @@ SRC_URI[test.sha256sum] = "b6a8a2825d89fdc8aee226560f66b8196e872012a0ea7118cbef1 | |||
| 16 | 14 | ||
| 17 | UPSTREAM_CHECK_PYPI_PACKAGE = "PyYAML" | 15 | UPSTREAM_CHECK_PYPI_PACKAGE = "PyYAML" |
| 18 | 16 | ||
| 19 | inherit pypi python_setuptools_build_meta ptest | 17 | inherit pypi python_setuptools_build_meta ptest cython |
| 20 | 18 | ||
| 21 | PACKAGECONFIG ?= "libyaml" | 19 | PACKAGECONFIG ?= "libyaml" |
| 22 | PACKAGECONFIG[libyaml] = "--with-libyaml,--without-libyaml,libyaml" | 20 | PACKAGECONFIG[libyaml] = "--with-libyaml,--without-libyaml,libyaml" |
