diff --git a/meta-python/recipes-devtools/python/python3-gmpy2/0001-Avoid-do_configure-requires-check-error.patch b/meta-python/recipes-devtools/python/python3-gmpy2/0001-Avoid-do_configure-requires-check-error.patch new file mode 100644 index 0000000000..3c602cebe5 --- /dev/null +++ b/meta-python/recipes-devtools/python/python3-gmpy2/0001-Avoid-do_configure-requires-check-error.patch @@ -0,0 +1,29 @@ +Subject: [PATCH] Avoid do_configure requires check error. + +The gmpy2-2.3.0 need setuptools < 80, but version in oe-core is 80.9.0, +so fix it to avoid following error. + +| ERROR Missing dependencies: +| setuptools<80,>=77 + +Upstream-Status: Inappropriate + +Signed-off-by: Liu Yiding +--- + pyproject.toml | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/pyproject.toml b/pyproject.toml +index 1f00809..3a4f3e2 100644 +--- a/pyproject.toml ++++ b/pyproject.toml +@@ -1,5 +1,5 @@ + [build-system] +-requires = ['setuptools>=77,<80', 'setuptools_scm[toml]>=6.0'] ++requires = ['setuptools>=77', 'setuptools_scm[toml]>=6.0'] + build-backend = 'setuptools.build_meta' + + [project] +-- +2.43.0 + diff --git a/meta-python/recipes-devtools/python/python3-gmpy2_2.2.2.bb b/meta-python/recipes-devtools/python/python3-gmpy2_2.3.0.bb similarity index 52% rename from meta-python/recipes-devtools/python/python3-gmpy2_2.2.2.bb rename to meta-python/recipes-devtools/python/python3-gmpy2_2.3.0.bb index 2196616a0e..841d87097d 100644 --- a/meta-python/recipes-devtools/python/python3-gmpy2_2.2.2.bb +++ b/meta-python/recipes-devtools/python/python3-gmpy2_2.3.0.bb @@ -1,13 +1,16 @@ SUMMARY = "GMP/MPIR, MPFR, and MPC interface to Python 2.6+ and 3.x" SECTION = "devel/python" +HOMEPAGE = "https://github.com/gmpy2/gmpy2" LICENSE = "GPL-3.0-only | LGPL-3.0-or-later" LIC_FILES_CHKSUM = "file://COPYING;md5=d32239bcb673463ab874e80d47fae504 \ file://COPYING.LESSER;md5=e6a600fd5e1d9cbde2d983680233ad02" -DEPENDS += "gmp mpfr libmpc" +DEPENDS += "gmp mpfr libmpc python3-setuptools-scm-native" -SRC_URI[sha256sum] = "d9b8c81e0f5e1a3cabf1ea8d154b29b5ef6e33b8f4e4c37b3da957b2dd6a3fa8" +SRC_URI[sha256sum] = "2d943cc9051fcd6b15b2a09369e2f7e18c526bc04c210782e4da61b62495eb4a" -inherit pypi python_setuptools_build_meta python3native +SRC_URI += "file://0001-Avoid-do_configure-requires-check-error.patch" + +inherit pypi python_setuptools_build_meta BBCLASSEXTEND = "native nativesdk"