diff options
Diffstat (limited to 'meta-python/recipes-devtools/python')
| -rw-r--r-- | meta-python/recipes-devtools/python/python3-cassandra-driver/0001-skip-verifying-the-availability-of-setuptools.patch | 34 | ||||
| -rw-r--r-- | meta-python/recipes-devtools/python/python3-cassandra-driver_3.29.3.bb (renamed from meta-python/recipes-devtools/python/python3-cassandra-driver_3.29.2.bb) | 7 |
2 files changed, 39 insertions, 2 deletions
diff --git a/meta-python/recipes-devtools/python/python3-cassandra-driver/0001-skip-verifying-the-availability-of-setuptools.patch b/meta-python/recipes-devtools/python/python3-cassandra-driver/0001-skip-verifying-the-availability-of-setuptools.patch new file mode 100644 index 0000000000..b58fd04752 --- /dev/null +++ b/meta-python/recipes-devtools/python/python3-cassandra-driver/0001-skip-verifying-the-availability-of-setuptools.patch | |||
| @@ -0,0 +1,34 @@ | |||
| 1 | From ebee090ac020c5a4e4194788fc2f53d7a4e30b40 Mon Sep 17 00:00:00 2001 | ||
| 2 | From: Gyorgy Sarvari <skandigraun@gmail.com> | ||
| 3 | Date: Sun, 15 Mar 2026 21:28:07 +0100 | ||
| 4 | Subject: [PATCH] skip verifying the availability of setuptools | ||
| 5 | |||
| 6 | The setup script checks is setuptools is available (with the correct minimum | ||
| 7 | version), using setuptool's pkg_resouces modules. Setuptools has dropped | ||
| 8 | this module in version 82, making this import fail. | ||
| 9 | |||
| 10 | This patch skips the availability check of Setuptools, it is expected to be | ||
| 11 | always available from oe-core - the patch itself is oe-specific. | ||
| 12 | |||
| 13 | Upstream has already prepared a solution to rework their setup script to | ||
| 14 | work with the latest Setuptools, however that patch builds on several other | ||
| 15 | patches. | ||
| 16 | |||
| 17 | Upstream-Status: Inappropriate [oe-specific] | ||
| 18 | Signed-off-by: Gyorgy Sarvari <skandigraun@gmail.com> | ||
| 19 | --- | ||
| 20 | ez_setup.py | 1 + | ||
| 21 | 1 file changed, 1 insertion(+) | ||
| 22 | |||
| 23 | diff --git a/ez_setup.py b/ez_setup.py | ||
| 24 | index 76e7105..c668e5d 100644 | ||
| 25 | --- a/ez_setup.py | ||
| 26 | +++ b/ez_setup.py | ||
| 27 | @@ -107,6 +107,7 @@ def _do_download(version, download_base, to_dir, download_delay): | ||
| 28 | |||
| 29 | def use_setuptools(version=DEFAULT_VERSION, download_base=DEFAULT_URL, | ||
| 30 | to_dir=os.curdir, download_delay=15): | ||
| 31 | + return | ||
| 32 | # making sure we use the absolute path | ||
| 33 | to_dir = os.path.abspath(to_dir) | ||
| 34 | was_imported = 'pkg_resources' in sys.modules or \ | ||
diff --git a/meta-python/recipes-devtools/python/python3-cassandra-driver_3.29.2.bb b/meta-python/recipes-devtools/python/python3-cassandra-driver_3.29.3.bb index f60167d309..6ab86300f5 100644 --- a/meta-python/recipes-devtools/python/python3-cassandra-driver_3.29.2.bb +++ b/meta-python/recipes-devtools/python/python3-cassandra-driver_3.29.3.bb | |||
| @@ -8,9 +8,12 @@ LICENSE = "Apache-2.0" | |||
| 8 | LIC_FILES_CHKSUM = "file://LICENSE;md5=2ee41112a44fe7014dce33e26468ba93" | 8 | LIC_FILES_CHKSUM = "file://LICENSE;md5=2ee41112a44fe7014dce33e26468ba93" |
| 9 | SRCNAME = "cassandra-driver" | 9 | SRCNAME = "cassandra-driver" |
| 10 | 10 | ||
| 11 | SRC_URI[sha256sum] = "c4310a7d0457f51a63fb019d8ef501588c491141362b53097fbc62fa06559b7c" | 11 | SRC_URI += "file://0001-skip-verifying-the-availability-of-setuptools.patch" |
| 12 | SRC_URI[sha256sum] = "ff6b82ee4533f6fd4474d833e693b44b984f58337173ee98ed76bce08721a636" | ||
| 12 | 13 | ||
| 13 | inherit pypi setuptools3 | 14 | PYPI_PACKAGE = "cassandra_driver" |
| 15 | |||
| 16 | inherit pypi python_setuptools_build_meta | ||
| 14 | 17 | ||
| 15 | RDEPENDS:${PN} += "\ | 18 | RDEPENDS:${PN} += "\ |
| 16 | python3-cython \ | 19 | python3-cython \ |
