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

install-poetry.py breaks global installs #4279

Closed
3 tasks done
martinxsliu opened this issue Jul 13, 2021 · 3 comments
Closed
3 tasks done

install-poetry.py breaks global installs #4279

martinxsliu opened this issue Jul 13, 2021 · 3 comments
Labels
kind/bug Something isn't working as expected

Comments

@martinxsliu
Copy link

  • I am on the latest Poetry version.
  • I have searched the issues of this repo and believe that this is not a duplicate.
  • If an exception occurs when executing a command, I executed it again in debug mode (-vvv option).
  • OS version and name: linux debian slim
  • Poetry version: 1.1.7
  • Link of a Gist with the contents of your pyproject.toml file: n/a

Issue

Using the old get-poetry.py installer script to install Poetry, I can install projects globally by setting poetry config virtualenvs.create false (e.g. see #243). This is useful for installing projects in a Docker container.

Using the new install-poetry.py installer, it looks like the script creates a virtualenv at ${XDG_DATA_HOME}/pypoetry/venv (~/.local/share/pypoetry/venv by default) inside of which Poetry is installed. Based on my understanding, this also means that projects will be installed within this venv instead of globally. I'm not sure if I'm missing something, but how can we do a global install with the new installer?

@martinxsliu martinxsliu added kind/bug Something isn't working as expected status/triage This issue needs to be triaged labels Jul 13, 2021
@martinxsliu
Copy link
Author

This is the same problem as #4187.

Feel free to close as duplicate, but I'm keeping it open for now as this issue is about global installs vs strictly about virtualenvs.create which may or may not be working as intended depending on how you look at it.

@finswimmer
Copy link
Member

Yes, this should be a duplicate of #4187.

@abn abn removed the status/triage This issue needs to be triaged label Mar 3, 2022
Copy link

github-actions bot commented Mar 2, 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 2, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
kind/bug Something isn't working as expected
Projects
None yet
Development

No branches or pull requests

3 participants