Skip to content

Commit 8c82352

Browse files
committed
revert back to storing enterprise revision in overlay
1 parent 1a2c77c commit 8c82352

File tree

2 files changed

+6
-11
lines changed

2 files changed

+6
-11
lines changed

mx.graalpython/mx_graalpython.py

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -732,11 +732,7 @@ def _graalvm_home(*, envfile, extra_dy=""):
732732
envfile = _sibling(envfile)
733733
home = os.environ.get("GRAALVM_HOME", None)
734734
if not home:
735-
dy = ",".join([
736-
"%s%s" % ("/" if dy[1] else "", dy[0])
737-
for dy in mx.get_dynamic_imports()
738-
if mx.primary_suite() != SUITE or dy[0] != "graalpython"
739-
])
735+
dy = ",".join(["%s%s" % ("/" if dy[1] else "", dy[0]) for dy in mx.get_dynamic_imports()])
740736
dy += extra_dy
741737
mx_args = ["--env", envfile]
742738
if dy:
@@ -1869,6 +1865,11 @@ def update_import_cmd(args):
18691865
join(overlaydir, "python", "graal", "ci"),
18701866
dirs_exist_ok=True)
18711867

1868+
# update the graal-enterprise revision in the overlay (used by benchmarks)
1869+
with open(join(overlaydir, "python", "imported-constants.json"), 'w') as fp:
1870+
d = {'GRAAL_ENTERPRISE_REVISION': revisions['graalpython-enterprise']}
1871+
json.dump(d, fp, indent=2)
1872+
18721873
repos_updated = []
18731874

18741875
# now allow dependent repos to hook into update

mx.graalpython/suite.py

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -74,12 +74,6 @@
7474
{"url": "https://github.com/oracle/graal", "kind": "git"},
7575
]
7676
},
77-
{
78-
"name": "graalpython-enterprise",
79-
"version": "8201efb2057e4f336c0a68efd7ab3943130aef16",
80-
"dynamic": True,
81-
"subdir": True,
82-
},
8377
],
8478
},
8579

0 commit comments

Comments
 (0)