Skip to content

Commit f2fe40d

Browse files
committed
[GR-21590] Update Python imports.
PullRequest: graalpython/2703
2 parents 8c36bfe + 44eb8c4 commit f2fe40d

File tree

3 files changed

+10
-6
lines changed

3 files changed

+10
-6
lines changed

ci.jsonnet

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
{ "overlay": "589247f5605de748107c2312c924b811145f5fd1" }
1+
{ "overlay": "d84ef27aabd7b43c3f7f903a45e01e0036bcca71" }

graalpython/lib-graalpython/modules/ginstall.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -723,7 +723,7 @@ def _install_from_url(url, package, extra_opts=None, add_cflags="", ignore_error
723723
info("auto-patching {}", extracted_dir)
724724
autopatch_capi.auto_patch_tree(extracted_dir)
725725

726-
patch_file_path = first_existing(package, versions, os.path.join(patches_dir, "sdist"), ".patch")
726+
patch_file_path = first_existing(package, versions, get_sdist_patch(patches_dir), ".patch")
727727
if patch_file_path:
728728
run_cmd(["patch", "-d", extracted_dir, "-p1", "-i", patch_file_path], quiet=quiet)
729729

@@ -800,6 +800,10 @@ def read_first_existing(pkg_name, versions, dir, suffix):
800800

801801
# end of code duplicated in pip_hook.py
802802

803+
def get_sdist_patch(patch_dir):
804+
sdist = os.path.join(patch_dir, "sdist")
805+
return sdist if os.path.isdir(sdist) else patch_dir
806+
803807

804808
def install_with_pip(package, msg="", failOnError=False, **kwargs):
805809
for kw in ['extra_opts', 'debug_build']:

mx.graalpython/suite.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -44,31 +44,31 @@
4444
},
4545
{
4646
"name": "sdk",
47-
"version": "7898bacfc2c8164a1087aa78d7cecc46d9d6f5e8",
47+
"version": "e1d6997fce4279ffab3b48d53f680d9e6b19d26a",
4848
"subdir": True,
4949
"urls": [
5050
{"url": "https://github.com/oracle/graal", "kind": "git"},
5151
]
5252
},
5353
{
5454
"name": "tools",
55-
"version": "7898bacfc2c8164a1087aa78d7cecc46d9d6f5e8",
55+
"version": "e1d6997fce4279ffab3b48d53f680d9e6b19d26a",
5656
"subdir": True,
5757
"urls": [
5858
{"url": "https://github.com/oracle/graal", "kind": "git"},
5959
],
6060
},
6161
{
6262
"name": "sulong",
63-
"version": "7898bacfc2c8164a1087aa78d7cecc46d9d6f5e8",
63+
"version": "e1d6997fce4279ffab3b48d53f680d9e6b19d26a",
6464
"subdir": True,
6565
"urls": [
6666
{"url": "https://github.com/oracle/graal", "kind": "git"},
6767
]
6868
},
6969
{
7070
"name": "regex",
71-
"version": "7898bacfc2c8164a1087aa78d7cecc46d9d6f5e8",
71+
"version": "e1d6997fce4279ffab3b48d53f680d9e6b19d26a",
7272
"subdir": True,
7373
"urls": [
7474
{"url": "https://github.com/oracle/graal", "kind": "git"},

0 commit comments

Comments
 (0)