Replies: 1 comment
-
For completeness: my current workaround is to build the non-editable wheels with the |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello! I am trying to use hatch in a monorepo environment. In the monorepo, i will have a folder
libraries/my_lib
. This library is used across my projects, for example inprojects/my_project
.Now, I want to be able to do the following:
my_lib
to be available as an editable package tomy_project
.my_project
in production, where I would need a normal wheel ofmy_lib
I have solved use case 1 in the following way:
my_lib
spyproject.toml
I define:Then, in
my_project
pyproject.toml I can declare my_lib as a dependency, use pip compile to generate a lock file (with argument--find-links /.wheels
), and all seems well.However, as this creates a .whl with only symlinks, it would not work out of the box to ship these wheels into my dockerfile for production.
I tried to modify my_libs
pyproject.toml
like this:this seems to build two wheels, but they overwrite each other.
Is there a way to build for these two versions, but save them such that they do not overwrite each other? Either by tweaking the
pyproject.toml
configuration, or by providing an argument tohatch build
that I missed?It feels I am so close to make this work, but yet so far away... :(
Any help very much appreciated!
Beta Was this translation helpful? Give feedback.
All reactions