Understanding maturin backend for wheel creation and dynamic dependencies #2127
-
I'm not sure yet if this is a bug, a mistake I've made, or just something not supported. I have a
Specifically, the required dependencies specifications are delegated to the
I'm using this because I need to calculate the version of each dependency at build time based on a bunch of internal information like CI pipeline ID, git SHA, mono-repo version, etc. Now that I'm using the maturin build-backend, instead of the setuptools-rust backend, I now find that the dynamic dependencies are not included in the built wheel, when running:
In fact, looking at the resultant wheel's Am I right in thinking that switching to the maturin backend disables the ability to use Is there another supported "dynamic" mechanism for the maturin back-end? If this is not possible, as an improvement, could maturin issue an error if it encounters I'm also wondering if I should revert back to |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
Perhaps this isn't supported by As a workaround I will look at splitting the project into two packages - one architecturally-dependent package built by Does this sound reasonable? |
Beta Was this translation helpful? Give feedback.
Yes, maturin does not invoke
setup.py
becausesetup.py
is a setuptools-thing and maturin does not depend on setuptools at all.Your workaround sounds reasonable.