-
Notifications
You must be signed in to change notification settings - Fork 196
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
PEP 582 support? #132
Comments
As this is not an approved PEP, I would say that no one is working actively to support it (the details might change, or the PEP may be rejected). However, some of tools used by |
If you are using emacs here is how you can do it for lsp-python-ms pdm-project/pdm#372 (comment). A similar thing should be possible with python-lsp-server as long as there is an option to add extra search paths. |
Thank you both for the helpful responses! The Hopefully something as simple as extra search paths would be possible in the future, if the PEP is approved and gains larger adoption. |
That's weird, how does mypy detect venvs? It should be getting that path somewhere right? Why not just modify that mechanism to point to wherever the libs are stored inside pypackages ? |
If I'm not mistaken when you activate a virtualenv your The same is likely (almost certainly) possible with |
@Gradecak true, I know that the ideal situation is to have the tools themselves do it. But that won't happen until the PEP actually makes it. I really like the proposal, but it's been in limbo for a while and it will probably be a while if at all for it to be adopted. |
interested in this one. (It's OK to not support it though) |
Considering this PEP is now rejected I think this issue could be closed. If the PEP reappears in some new form then the question of whether |
Closing then. |
Hi all,
Just curious if there are any plans to support the loading of project local packages from
__pypackages__
directory, as per PEP 582Or even better, if this is somehow supported would it be possible to point me in the right direction to get
pylsp
to pick it up?Thanks!
The text was updated successfully, but these errors were encountered: