Using Maturin with a local python dependency. #2774
Unanswered
Ruhrpottpatriot
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
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I have an existing Python project where we have to rewrite performance critical features in Rust. The project has local python dependencies which reside in adjacent folders to the project, i.e. like this:
For various reasons I can't simply use a
git://dependency and for other reasons the package is also not in a python package registry. This constraints are highly unlikely to change.I'm currently using hatch and hatchling to manage the projects virtual environments for development, unit-testing, etc. With hatch I can do this:
However, this doesn't work with maturin, or at least I haven't gotten it to work. If I do
maturin developfrom inside a hatch venv I get:What's the proper way to solve this problem?
Beta Was this translation helpful? Give feedback.
All reactions