Repository navigation
Link extensions against a library shipped by another installed package - #95
Merged
Merged
Conversation
A library artifact may name an installed Python package with python-package instead of a manifest. hatch-rs takes the library from that package's lib/ and headers from include/, links the consumer against it, and adds an rpath to the sibling package in bundled mode. In external mode the package is ignored and the library resolves as before, so a conda recipe builds unchanged. Signed-off-by: Tim Paine <3105306+timkpaine@users.noreply.github.com>
Signed-off-by: Tim Paine <3105306+timkpaine@users.noreply.github.com>
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #95 +/- ##
==========================================
+ Coverage 91.77% 92.14% +0.37%
==========================================
Files 15 15
Lines 2518 2624 +106
==========================================
+ Hits 2311 2418 +107
+ Misses 207 206 -1 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
This was referenced Nov 12, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
A library artifact may name an installed Python package with
python-packageinstead of amanifest. hatch-rs locates the package in the build environment, takes the library from itslib/and headers from itsinclude/, links the consumer against it, and inbundledmode adds an rpath to the sibling package ($ORIGIN/../fsspec_rs/lib). Inexternalmode the package is ignored and the library resolves fromHATCH_RS_LIBRARY_ROOT, pkg-config, or$PREFIXas before, so a conda recipe builds unchanged.staticanddirectskip it as they do for any linked library.This is what fsspec-kafka and the other fsspec extensions need to link
libfsspecfrom the installedfsspec_rswheel instead of compiling their own registry.Adds a fixture project that links
c_abi_libraryfrom the installedc_abi_bundle_projectfixture and loads it through the rpath alone.