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

Possibility to create and use sub venvs using poetry shell/install while already in a venv #1795

Closed
2 tasks done
FransDel opened this issue Dec 27, 2019 · 2 comments
Closed
2 tasks done
Labels
status/duplicate Duplicate issues

Comments

@FransDel
Copy link

FransDel commented Dec 27, 2019

  • I have searched the issues of this repo and believe that this is not a duplicate.
  • I have searched the documentation and believe that my question is not covered.

Issue

Hello, I've started using poetry to replace pipenv in a project and I haven't seen any issue/documentation discussing this matter. If something already exists discussing this matter I would like to apologise in advance.

I'm currently using poetry inside a virtualenv with other build dependencies and I have a script building and packaging all sub-parts the project which all have their separate environments. I used to use pipenv shell/install which would create new venv's for each sub-part of my project in my build directory. Right now poetry shell doesn't create a new sub-virtualenv since my building virtualenv is already activated. I still need to create the sub-virtualenvs since the sub-projects built code are sent to run on different targets.

I'm not sure if I'm doing everything properly and any suggestions on how to better build the project would be great. Still I think that it would be great if a parameter in poetry.toml or in poetry shell (or install) allowed poetry to override the current venv to create and activate another sub-venv.

I'm currently using this configuration in all the sub components of the project :

[virtualenvs]
create = true
in-project = true
virtualenvs.path = "./.venv"

Notice that even if virtualenvs.path is different then the building venv path it won't create and activate the new sub-project venvs. Another solution could be to create and activate a new venv if the designated sub-venv isn't the same as the root one.

@FransDel FransDel changed the title Possibility to create sub virtualenv's using poetry shell Possibility to create and use sub virtualenv's using poetry shell while already in a venv Dec 27, 2019
@FransDel FransDel changed the title Possibility to create and use sub virtualenv's using poetry shell while already in a venv Possibility to create and use sub virtualenv's using poetry shell/install while already in a venv Dec 27, 2019
@FransDel FransDel changed the title Possibility to create and use sub virtualenv's using poetry shell/install while already in a venv Possibility to create and use sub venvs using poetry shell/install while already in a venv Dec 27, 2019
@finswimmer finswimmer added the kind/feature Feature requests/implementations label Feb 8, 2020
@neersighted
Copy link
Member

Duplicate #4055

@neersighted neersighted closed this as not planned Won't fix, can't repro, duplicate, stale Oct 4, 2022
@neersighted neersighted added status/duplicate Duplicate issues and removed kind/feature Feature requests/implementations labels Oct 4, 2022
Copy link

github-actions bot commented Mar 1, 2024

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 Mar 1, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
status/duplicate Duplicate issues
Projects
None yet
Development

No branches or pull requests

3 participants