-
Notifications
You must be signed in to change notification settings - Fork 36
Use CONDA_PREFIX in build #209
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
Conversation
|
Hmm, this might be something but I wont commit to it right now. At the end, all xeus kernel should follow what jupyterlite-xeus has in its readme (https://github.com/jupyterlite/xeus?tab=readme-ov-file#build-the-kernel and https://github.com/jupyterlite/xeus?tab=readme-ov-file#build-the-jupyterlite-site) We're following what is done by all other xeus kernels and won't like to change stuff unless done from the top or if something is obviously wrong. Is there a particular advantage here ?
Converting to draft for now |
|
@anutosh491 At least for me on my Macbook the variable MAMBA_ROOT_PREFIX is not defined, and have to define manually. Activating the environment is better practice since it sets your environment variables correct. At the moment it only knows where the packages are because we essentially hardcode the path. You don't need the XEUS_CPP_INSTALL_DIR. Its just there until I do my PR which references a different location (which will reduce the size if our deployment and hopefully speed up the initial loading time) |
That shouldn't be the case. Maybe check your micromamba installation.
I mean cmake is expected to be outside this env and also as the readme for jupyterlite says it just wants a prefix location for the build, let's keep it that way. Let's not deviate from what all kernels are doing (hence converted to draft, maybe once done from the top we can make the change) |
|
@anutosh491 I just realised we are already using conda_prefix when it comes to the non wasm build, so its not too far out there to use it in our wasm build too. Also can you explain your comment about cmake being expected outside this environment. I don't see how activating the environment affects this 😅 Activating an environment doesn't stop an installed package outside that environment being accessible. My understanding is that activating the environment makes sure our system prioritises the ones in the environment being used. If you elaborate on your comment, then it should clear up my misunderstanding. |
Ahh nevermind, I might have missed something here. But my point being many jupyterlite maintainers would be interested in building xeus-cpp-lite (and xeus-r-lite and xeus-python-lite etc) in the coming days as quite some improvements are planned out on the jupyterlite-xeus side. I don't plan on breaking consistency for one xeus kernel only. Maybe make a PR to jupyterlite-xeus directly changing the workflow there and then we can move this in. |
|
Closing as done in jupyterlite/xeus#143 |
Description
Please include a summary of changes, motivation and context for this PR.
This PR updates the build instructions so that we make use of CONDA_PREFIX. In the process of making this PR I noticed some bugs in the build (both ci and instructions) from not activating the wasm environment we create.
Fixes # (issue)
Type of change
Please tick all options which are relevant.