PDM distribution = false + tool.pdm.scripts of type call #3225
Unanswered
jakeswenson
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I’m developing an application and want to use tool.pdm.scripts to call some of my app’s functions. Since this is an app and not a library, I’ve set:
Given this setup, is it possible to have
call
scripts that reference modules in my code?When I run
pdm run extract
, I receive an error stating it can’t importfoo.extract
.However, if I change distribution to true and then run
pdm install --dev
, everything works as expected. It seems my modules aren’t importable unless they’re installed into the virtual environment.Is there a way to make this work without setting
distribution = true
? Should I consider opening an issue for this?Beta Was this translation helpful? Give feedback.
All reactions