PDM plugins installed from project-root cannot be loaded, if they have dependencies #3067
Closed
1 task done
Labels
🐛 bug
Something isn't working
My plugin is used within its own CI-pipeline, so I added the following lines to my pyproject.toml:
With PDM < 2.16, my CI Pipeline was able to run:
Now, the following happens:
Steps to reproduce
pdm install -G:all
pdm install --plugins
pdm bump
Actual behavior
The dependent libraries, installed in the (local) venv are not loaded.
HINT: The local pth file in
.pdm-plugins
only points to thesrc
folder.Expected behavior
The dependent libraries, installed in the (local) venv are loaded. This could be achieved by letting the pth file for the plugin also point to the venv.
Local fix:
Add
$(pwd)/.venv/lib/python3.12/site-packages/
to$(pwd)/.pdm-plugins/python3.12/site-packages/local.pth
Environment Information
The text was updated successfully, but these errors were encountered: