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

Discussion around PEP 582 (local __pypackages__) #872

Closed
2 tasks done
ptink opened this issue Feb 8, 2019 · 4 comments
Closed
2 tasks done

Discussion around PEP 582 (local __pypackages__) #872

ptink opened this issue Feb 8, 2019 · 4 comments

Comments

@ptink
Copy link

ptink commented Feb 8, 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.

Question

I'm a little hesitant to bring it up because the PEP (https://www.python.org/dev/peps/pep-0582/) hasn't actually been accepted yet. But it seems to have strong traction and support in most places that I've seen it discussed.

As a TLDR: The PEP proposes that python automatically recognise and import packages from a local __pypackages__ directory over user or global site-packages. The idea being that this gets rid of the need for virtualenvs for python environment isolation as these are an annoying and complicated road block for new users (and, frankly, all users. Hence why poetry abstracts large parts of them away!).

To my mind, the PEP looks broadly promising. I have some reservations about it falling back to a system python. I worry about the ease of accidentally installing a bunch of packages globally when you meant to install them locally and how this will effect e.g. pipx-app that makes isolating python command line tools much easier.

However, assuming the PEP goes through it might be worth considering poetry's role (if any) in implementing this. I am unsure whether their intention is to replace the virtualenv entirely or simply serve as a lower bar to entry for new users but it's worth keeping on the radar in terms of adoption.

@stale
Copy link

stale bot commented Nov 13, 2019

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@stale
Copy link

stale bot commented Nov 20, 2019

Closing this issue automatically because it has not had any activity since it has been marked as stale. If you think it is still relevant and should be addressed, feel free to open a new one.

@stale stale bot closed this as completed Nov 20, 2019
@danieleades
Copy link
Contributor

seems to me maybe this one should be reopened. It's continuing to gain traction.

the best way for Poetry to stop people flooding to Pyflow or PDM would be to abstract over the package storage, and support both the virtualenv and __pypackages__ as strategies

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
None yet
Projects
None yet
Development

No branches or pull requests

2 participants