Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allowing to use a package url #74

Merged
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions include/pyjs/pre_js/load_pkg.js
Original file line number Diff line number Diff line change
Expand Up @@ -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}`)
}
Expand All @@ -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}`)
Expand Down
Loading