Skip to content

Refactor manage.sh: split activation and installation actions - #969

Open
gonzaponte wants to merge 2 commits into
next-exp:masterfrom
gonzaponte:activate-fast
Open

Refactor manage.sh: split activation and installation actions#969
gonzaponte wants to merge 2 commits into
next-exp:masterfrom
gonzaponte:activate-fast

Conversation

@gonzaponte

Copy link
Copy Markdown
Collaborator

Make activate responsible only for activating an existing environment.

Remove implicit conda and environment installation and cython compilation from activation, since those operations are already handled by dedicated commands. Moreover, the new procedure to compile cython stuff is painfully slow, so it will only be done by default in the installation step.

This avoids unnecessary work during activation and makes command behavior more explicit and predictable at the expense of forcing the user to learn more than one instruction.

A new installation now requires

bash manage.sh install_and_check

while, once installed, one just needs to do

source manage.sh activate.

The activation step still checks for the availability of conda and the environment to guide the user.

`activate` (formerly known as `work_in_python_version`) used to mean "do
whatever you need to do to set up IC now". This has lead to multiple
cases of confusion because it installs conda if the user forgets to
activate it, and other more intricate issues.

This commit wants to split functionalities and make them more clear, at
the expense of forcing the user to know what they want to do.

Moreover, the new procedure to compile cython stuff is painfully slow,
so it will only be done by default in the installation step.
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

Successfully merging this pull request may close these issues.

1 participant