-
Notifications
You must be signed in to change notification settings - Fork 9
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
Open
AnastasiaSliusar
wants to merge
2
commits into
emscripten-forge:main
Choose a base branch
from
AnastasiaSliusar:custom-loading-packages
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Allowing to use a package url #74
AnastasiaSliusar
wants to merge
2
commits into
emscripten-forge:main
from
AnastasiaSliusar:custom-loading-packages
+2
−2
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
trungleduc
reviewed
Sep 27, 2024
include/pyjs/pre_js/load_pkg.js
Outdated
@@ -108,7 +108,7 @@ Module["bootstrap_from_empack_packed_environment"] = async function | |||
pkg, | |||
verbose | |||
) { | |||
let package_url = `${package_tarballs_root_url}/${pkg.filename}` | |||
let package_url = pkg?.url ? pkg.url :`${package_tarballs_root_url}/${pkg.filename}` |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Suggested change
let package_url = pkg?.url ? pkg.url :`${package_tarballs_root_url}/${pkg.filename}` | |
const package_url = pkg?.url ?? `${package_tarballs_root_url}/${pkg.filename}` |
include/pyjs/pre_js/load_pkg.js
Outdated
@@ -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}` | |||
let python_package_url = python_package?.url ? python_package.url : `${package_tarballs_root_url}/${python_package.filename}` |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Suggested change
let python_package_url = python_package?.url ? python_package.url : `${package_tarballs_root_url}/${python_package.filename}` | |
const python_package_url = python_package?.url ?? `${package_tarballs_root_url}/${python_package.filename}` |
trungleduc
approved these changes
Sep 30, 2024
@martinRenou @DerThorsten let's merge this PR? |
@DerThorsten do you know what is the issue with the build and test CI? The changes here look unharmful |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This PR is the part of the solution of https://github.com/QuantStack/qs.ai/issues/28
This is updated version of #69 , but packages will be able to use a full url to be downloaded. It will be expected that
empack_env_meta.json
file will allow havingurl
for packages and if it is present then this url will be used to download a certain package. If not, the default behavior will be taken.This PR should be used together with jupyterlite/xeus#120