-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
Investigate the possible flow for a Create Environment
command
#19676
Comments
flowchart TD
start([start])
has_interpreter{Interpreter selected?}
has_env_selected{Environment selected?}
has_python{Is Python installed?}
select_newest[Select newest Python]
has_venv{Has `venv`?}
create_env[`python -m venv .venv`]
has_pip{"Has `pip`?"}
has_requirements{Has requirements files?}
select_requirements[/Select requirements files/]
install_requirements["`python -m pip install -r requirements.txt`"]
has_pyproject{Has a `pyproject.toml`?}
select_extras[/Select extras/]
install_extras["`python -m pip install -e .[extras]`"]
error((Notify user of problem))
finished([end])
start --> has_interpreter
subgraph Create Environment
has_interpreter -- yes --> has_venv
has_interpreter -- no --> has_env_selected
%% error
has_env_selected -- "no (nothing selected)" --> has_python
has_python -- yes --> select_newest
%% error
select_newest --> has_venv
has_venv -- yes --> create_env
%% error
end
subgraph Installation
create_env --> has_pip
has_pip -- yes --> has_requirements
%% error
has_requirements -- yes --> select_requirements
select_requirements --> install_requirements
%% finished
has_requirements -- no --> has_pyproject
has_pyproject -- yes --> select_extras
select_extras --> install_extras
%% finished
end
has_venv -- "no (Debian)" --> error
has_python -- no --> error
has_env_selected -- yes --> error
has_pip -- "no (Debian)" --> error
error --> finished
install_extras --> finished
has_pyproject -- no --> finished
install_requirements --> finished
|
Asked for feedback at https://twitter.com/brettsky/status/1557850636611268609 . |
If we are triggering environment creataion, we should probably skip the popup that we show when we detect env creation. |
We should probably skip it regardless and just select the environment with an option to turn off automatic environment detection/selection. |
For now the flow is like this:
|
Which install scenarios are supported? |
|
This would be taking the ideas from WWBD and bringing them here.
The text was updated successfully, but these errors were encountered: