Skip to content

Commit 62b994b

Browse files
committed
create the modules output directory eagerly, so we can import modules as we build them
1 parent e9b0df4 commit 62b994b

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

mx.graalpython/mx_graalpython.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1162,6 +1162,11 @@ def _prepare_headers(self):
11621162

11631163
def build(self):
11641164
self._prepare_headers()
1165+
1166+
# n.b.: we do the following to ensure that there's a directory when the
1167+
# importlib PathFinder initializes it's directory finders
1168+
mx.ensure_dir_exists(os.path.join(self.subject.get_output_root(), "modules"))
1169+
11651170
env = os.environ.copy()
11661171
cwd = os.path.join(self.subject.get_output_root(), "mxbuild_temp")
11671172
args = []

0 commit comments

Comments
 (0)