Skip to content

Commit 0c2eca6

Browse files
committed
[GR-59480] Github PR #449: fix pymongo.patch for more pymongo versions
PullRequest: graalpython/3543
2 parents fe73dc7 + 7c6e3c5 commit 0c2eca6

File tree

3 files changed

+14
-7
lines changed

3 files changed

+14
-7
lines changed

graalpython/lib-graalpython/patches/metadata.toml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -478,9 +478,15 @@ patch = 'pygame-2.patch'
478478
license = 'LGPL-2.0-or-later'
479479

480480
[[pymongo.rules]]
481+
version = "< 4.8.0"
481482
patch = 'pymongo.patch'
482483
license = 'Apache-2.0'
483484

485+
[[pymongo.rules]]
486+
version = ">= 4.8.0"
487+
patch = 'pymongo-4.8.0.patch'
488+
license = 'Apache-2.0'
489+
484490
[[pyOpenSSL.rules]]
485491
# Pin this version to avoid pulling newer cryptography than we have patch for
486492
version = "== 23.2.0"
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
diff --git a/_setup.py b/_setup.py
2+
index a711e24..84d3aea 100644
3+
--- a/_setup.py
4+
+++ b/_setup.py
5+
@@ -128,1 +128,1 @@
6+
-elif sys.platform.startswith("java") or sys.platform == "cli" or "PyPy" in sys.version:
7+
+elif sys.platform.startswith("java") or sys.platform == "cli" or "PyPy" in sys.version or sys.implementation.name == 'graalpy':

graalpython/lib-graalpython/patches/pymongo.patch

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,6 @@ diff --git a/setup.py b/setup.py
22
index a711e24..84d3aea 100644
33
--- a/setup.py
44
+++ b/setup.py
5-
@@ -125,7 +125,7 @@ if "--no_ext" in sys.argv or os.environ.get("NO_EXT"):
6-
except ValueError:
7-
pass
8-
ext_modules = []
5+
@@ -128,1 +128,1 @@
96
-elif sys.platform.startswith("java") or sys.platform == "cli" or "PyPy" in sys.version:
107
+elif sys.platform.startswith("java") or sys.platform == "cli" or "PyPy" in sys.version or sys.implementation.name == 'graalpy':
11-
sys.stdout.write(
12-
"""
13-
*****************************************************\n

0 commit comments

Comments
 (0)