Skip to content

Commit c6a7f2e

Browse files
committed
Update to new empack mount points
1 parent b7f3a08 commit c6a7f2e

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

include/pyjs/pre_js/load_pkg.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -260,6 +260,7 @@ Module["bootstrap_from_empack_packed_environment"] = async function
260260
// fetch json with list of all packages
261261
let empack_env_meta = await fetchJson(packages_json_url);
262262
let all_packages = empack_env_meta.packages;
263+
let all_mount_points = empack_env_meta.mounts;
263264
let prefix = empack_env_meta.prefix;
264265

265266
if(verbose){
@@ -285,6 +286,7 @@ Module["bootstrap_from_empack_packed_environment"] = async function
285286
if(verbose){
286287
console.log("fetchAndUntarAll");
287288
}
289+
await Promise.all(all_mount_points.map(pkg => fetchAndUntar(package_tarballs_root_url, python_is_ready_promise, pkg, verbose)));
288290
let shared_libs = await Promise.all(packages.map(pkg => fetchAndUntar(package_tarballs_root_url, python_is_ready_promise, pkg, verbose)));
289291

290292
if(verbose){

0 commit comments

Comments
 (0)