Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions graalpython/lib-graalpython/patches/metadata.toml
Original file line number Diff line number Diff line change
Expand Up @@ -478,9 +478,15 @@ patch = 'pygame-2.patch'
license = 'LGPL-2.0-or-later'

[[pymongo.rules]]
version = "< 4.8.0"
patch = 'pymongo.patch'
license = 'Apache-2.0'

[[pymongo.rules]]
version = ">= 4.8.0"
patch = 'pymongo-4.8.0.patch'
license = 'Apache-2.0'

[[pyOpenSSL.rules]]
# Pin this version to avoid pulling newer cryptography than we have patch for
version = "== 23.2.0"
Expand Down
7 changes: 7 additions & 0 deletions graalpython/lib-graalpython/patches/pymongo-4.8.0.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
diff --git a/_setup.py b/_setup.py
index a711e24..84d3aea 100644
--- a/_setup.py
+++ b/_setup.py
@@ -128,1 +128,1 @@
-elif sys.platform.startswith("java") or sys.platform == "cli" or "PyPy" in sys.version:
+elif sys.platform.startswith("java") or sys.platform == "cli" or "PyPy" in sys.version or sys.implementation.name == 'graalpy':
8 changes: 1 addition & 7 deletions graalpython/lib-graalpython/patches/pymongo.patch
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,6 @@ diff --git a/setup.py b/setup.py
index a711e24..84d3aea 100644
--- a/setup.py
+++ b/setup.py
@@ -125,7 +125,7 @@ if "--no_ext" in sys.argv or os.environ.get("NO_EXT"):
except ValueError:
pass
ext_modules = []
@@ -128,1 +128,1 @@
-elif sys.platform.startswith("java") or sys.platform == "cli" or "PyPy" in sys.version:
+elif sys.platform.startswith("java") or sys.platform == "cli" or "PyPy" in sys.version or sys.implementation.name == 'graalpy':
sys.stdout.write(
"""
*****************************************************\n