-
Notifications
You must be signed in to change notification settings - Fork 12
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
Automatically add the emscripten-forge
channel if it is missing?
#76
Comments
I don't think we should add https://repo.mamba.pm/emscripten-forge automagically if it's not there. People should be free to use any channel they want (if they mirror emscripten-forge or provide their own channel with emscripten packages). |
If no channel is specified, it's used by default though: https://github.com/jupyterlite/xeus/blob/main/jupyterlite_xeus/create_conda_env.py#L47 |
Ah ok, I thought we used to have something like this in |
Could it make sense to also do this if only the |
I see, yeah that could make sense! |
Let's put this behind an optional flag though, as we probably should not change the environment file without the user knowing. |
That sounds good, and would at least help experiment with that without too much disruption. Projects like https://github.com/jupyterlite/repo2jupyterlite could then enable that option by default. |
Problem
Currently the default channels are only added if there is no environment file:
xeus/jupyterlite_xeus/add_on.py
Lines 130 to 147 in eda12f8
Proposed Solution
Maybe the add-on should check if the user-provided
environment.yml
includes https://repo.mamba.pm/emscripten-forge in the list ofchannels
, and add it automatically otherwise?Additional context
This could help improving compatibility with existing
environment.yml
files without having to create a copy of the file with https://repo.mamba.pm/emscripten-forge in it.And also for use cases such as
repo2jupyterlite
: jupyterlite/repo2jupyterlite#19The text was updated successfully, but these errors were encountered: