@@ -2068,10 +2068,10 @@ def update_hpy_import_cmd(args):
20682068
20692069 # do sanity check of the HPy repo
20702070 hpy_repo_include_dir = join (hpy_repo_path , "hpy" , "devel" , "include" )
2071- hpy_repo_runtime_dir = join (hpy_repo_path , "hpy" , "devel" , "src" )
2071+ hpy_repo_src_dir = join (hpy_repo_path , "hpy" , "devel" , "src" )
20722072 hpy_repo_debug_dir = join (hpy_repo_path , "hpy" , "debug" )
20732073 hpy_repo_test_dir = join (hpy_repo_path , "test" )
2074- for d in [hpy_repo_path , hpy_repo_include_dir , hpy_repo_runtime_dir , hpy_repo_test_dir ]:
2074+ for d in [hpy_repo_path , hpy_repo_include_dir , hpy_repo_src_dir , hpy_repo_test_dir ]:
20752075 if not os .path .isdir (d ):
20762076 mx .abort ("HPy import repo is missing directory {}" .format (d ))
20772077
@@ -2156,11 +2156,11 @@ def exclude_subdir(subdir):
21562156
21572157 # runtime sources go into 'lib-graalpython/module/hpy/devel/src'
21582158 runtime_files_dest = join (_get_core_home (), "modules" , "hpy" , "devel" , "src" )
2159- import_files (hpy_repo_runtime_dir , runtime_files_dest )
2160- remove_inexistent_files (hpy_repo_runtime_dir , runtime_files_dest )
2159+ import_files (hpy_repo_src_dir , runtime_files_dest )
2160+ remove_inexistent_files (hpy_repo_src_dir , runtime_files_dest )
21612161
21622162 # 'ctx_tracker.c' also goes to 'com.oracle.graal.python.jni/src/ctx_tracker.c'
2163- tracker_file_src = join (hpy_repo_runtime_dir , "ctx_tracker.c" )
2163+ tracker_file_src = join (hpy_repo_src_dir , "runtime" , "ctx_tracker.c" )
21642164 if not os .path .exists (tracker_file_src ):
21652165 mx .abort ("File '{}' is missing but required." .format (tracker_file_src ))
21662166 tracker_file_dest = join (mx .project ("com.oracle.graal.python.jni" ).dir , "src" , "ctx_tracker.c" )
0 commit comments