diff --git a/include/pyjs/pre_js/load_pkg.js b/include/pyjs/pre_js/load_pkg.js index d8e573a..52091f0 100644 --- a/include/pyjs/pre_js/load_pkg.js +++ b/include/pyjs/pre_js/load_pkg.js @@ -108,7 +108,7 @@ Module["bootstrap_from_empack_packed_environment"] = async function pkg, verbose ) { - let package_url = `${package_tarballs_root_url}/${pkg.filename}` + const package_url = pkg?.url ?? `${package_tarballs_root_url}/${pkg.filename}`; if (verbose) { console.log(`!!fetching pkg ${pkg.name} from ${package_url}`) } @@ -126,7 +126,7 @@ Module["bootstrap_from_empack_packed_environment"] = async function async function bootstrap_python(prefix, package_tarballs_root_url, python_package, verbose) { // fetch python package - let python_package_url = `${package_tarballs_root_url}/${python_package.filename}` + const python_package_url = python_package?.url ?? `${package_tarballs_root_url}/${python_package.filename}`; if (verbose) { console.log(`fetching python package from ${python_package_url}`)