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

freeze the environment by default when it is activated #115

Open
cjdoris opened this issue Oct 21, 2023 · 2 comments
Open

freeze the environment by default when it is activated #115

cjdoris opened this issue Oct 21, 2023 · 2 comments
Assignees
Milestone

Comments

@cjdoris
Copy link
Collaborator

cjdoris commented Oct 21, 2023

Add a freeze=true argument to activate! (or something like this) to freeze the environment until it is deactivated.

The effect of this is that resolve will refuse to uninstall or modify any already-installed packages - i.e. you can only add new packages, and in this case we use the conda install --freeze-deps, only passing the extra packages to conda install and pip install.

This will let the user safely add new packages even if PythonCall is already running, and prevents disrupting anything already there (which might already be depended upon).

Could even add a --fast flag to resolve which uses this scheme anyway (if possible).

@cjdoris cjdoris self-assigned this Oct 21, 2023
@cjdoris
Copy link
Collaborator Author

cjdoris commented Oct 21, 2023

I'm not sure how to mark an environment as frozen. Perhaps just set an env var JULIA_CONDAPKG_FROZEN=true, and check for this in resolve()?

@cjdoris cjdoris added this to the features milestone Oct 21, 2023
@ufechner7
Copy link

This would be very useful...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants