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

create a virt. env. without spawning a subshell #8086

Closed
jabbalaci opened this issue Jun 10, 2023 · 2 comments
Closed

create a virt. env. without spawning a subshell #8086

jabbalaci opened this issue Jun 10, 2023 · 2 comments
Labels
kind/feature Feature requests/implementations status/triage This issue needs to be triaged

Comments

@jabbalaci
Copy link

When I want to create a virt. env. quickly, I do these steps:

poetry init -n
poetry shell

The first one creates the pyproject.toml file, and the second one creates the virt. env. However, the second command also starts a subshell, and I don't need that. I will activate the virt. env. when I need that.

Is it possible to tell poetry shell somehow to create the virt. env. if it doesn't exist and then stop? That is, don't spawn a subshell at the end. Thanks.

@jabbalaci jabbalaci added kind/feature Feature requests/implementations status/triage This issue needs to be triaged labels Jun 10, 2023
@jabbalaci
Copy link
Author

Sorry, I found it:

poetry install --no-root

Copy link

This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Feb 29, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
kind/feature Feature requests/implementations status/triage This issue needs to be triaged
Projects
None yet
Development

No branches or pull requests

1 participant