-
-
Notifications
You must be signed in to change notification settings - Fork 360
Open
Description
I got a problem with making a custom build that needs the project to be installed for the build. Is this possible?
If the project makes library my_project then I need my_project library in my hatch_build.py.
I thought I would be able to configure hatch-build environment
# file: pyproject.toml
...
[tool.hatch.envs.hatch-build]
skip-install = false
dev-mode = true
[tool.hatch.build.targets.custom]
path = "hatch_build.py"
and then have hatch_build.py like
# file: hatch_build.py
from my_project import *
...
But running hatch build -t custom gives ModuleNotFoundError: No module named 'my_project' so it doesn't look like the library got installed. I made an example repo (attached). It look like also that the build environment is named my-project-build?
Metadata
Metadata
Assignees
Labels
No labels