Skip to content

Commit 1a2c77c

Browse files
committed
fix import cycle when running some gates inside graalpython with graalpython in dynamicimports
1 parent c822bad commit 1a2c77c

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

mx.graalpython/mx_graalpython.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -732,7 +732,11 @@ 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(["%s%s" % ("/" if dy[1] else "", dy[0]) for dy in mx.get_dynamic_imports()])
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+
])
736740
dy += extra_dy
737741
mx_args = ["--env", envfile]
738742
if dy:

0 commit comments

Comments
 (0)