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

a way to import modules from the project root in pdm_build.py #246

Closed
DetachHead opened this issue Jun 17, 2024 · 0 comments
Closed

a way to import modules from the project root in pdm_build.py #246

DetachHead opened this issue Jun 17, 2024 · 0 comments

Comments

@DetachHead
Copy link
Contributor

original issue: #245

Is your feature/enhancement proposal related to a problem? Please describe.

i want my pdm_build.py to be able to import from other modules in my project, but this doesn't seem to be possible.

# ./foo.py
foo = 1
# ./pdm_build.py
from foo import foo

but when running pdm install, the foo module seems inaccessible from pdm_build.py:

ModuleNotFoundError: No module named 'foo'

Describe the solution you'd like

a way to make other modules in my project accessible from pdm_build.py

@frostming frostming closed this as not planned Won't fix, can't repro, duplicate, stale Jun 17, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants