-
-
Notifications
You must be signed in to change notification settings - Fork 33
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
Suggestion: don't fallback to path backend for namespace packages when editables backend is selected #79
Comments
OK, it seems my |
Would it make sense to make the editable installation fail for implicit namespace packages when the |
|
But I do want to install the project itself 🙂 Let me restate things:
|
The problem is, |
In my case the hard failure would have let me know that I was missing an |
It has nothing to do with correctness. It is okay for a package without a |
Of course, but if I explicitely select the The warning would serve as a hint that something might not be configured as the user intended. |
A warning would be okay and easy to add. |
Thank you so much! |
Is your feature request related to a problem? Please describe.
The
src
layout has only one purpose: prevent running tests against the sources.But it seems PDM, just like Poetry, adds my
src
directory to PYTHONPATH:Describe the solution you'd like
I would like PDM to avoid adding my
src
folder to PYTHONPATH. I want the installed version of my package to be used when I run my tests, or simply run an interpreter, not the source version. Adding the sources to PYTHONPATH hides potential packaging errors.I can't seem to find where the
src
folder is added to PYTHONPATH, it does not seem to be insitecustomize.py
at least, so not sure if it's really PDM that adds it.The text was updated successfully, but these errors were encountered: