Repository navigation
Ship only one copy of libyamlstar in Python wheels - #18
Open
edgarrmondragon wants to merge 1 commit into
Open
edgarrmondragon wants to merge 1 commit into
edgarrmondragon wants to merge 1 commit into
Conversation
The binding only loads the unversioned `libyamlstar.so` / `.dylib` (`_candidate_filenames` in `yamlstar/__init__.py`), but `cp -pL` turned the versioned symlinks from the build and release archives into full copies inside each Linux and macOS wheel. Nothing needs the versioned names: - the Linux `.so` has no `SONAME` - the macOS install name is `libyamlstar.dylib` - `util/yamlstar-plugin` and the binding never reference them Wheels rebuilt with `make -C python wheels-from-release` from the `v0.1.28` release archives: | Wheel | PyPI 0.1.28 | Rebuilt | |-----------------------|-------------|---------| | `macosx_14_0_arm64` | 12.1 MB | 6.1 MB | | `macosx_15_0_x86_64` | 13.6 MB | 6.8 MB | | `manylinux_2_31_x86_64` | 14.1 MB | 7.1 MB | | `manylinux_2_31_aarch64` | none yet (yaml#16) | 6.2 MB | | `win_amd64` | 6.9 MB | 6.9 MB (unchanged) | - Each rebuilt wheel contains exactly one `libyamlstar.*` file. - `YAMLStar().load('a: [1, {b: c}]')` passes on macOS arm64, macOS x86_64 (Rosetta) and Linux aarch64 (glibc 2.31). - The x86_64 `libyamlstar.so` is byte-identical to the one in the PyPI wheel (SHA-256 `6ac068ffed1c807d...`). Signed-off-by: Edgar Ramírez-Mondragón <[email protected]>
edgarrmondragon
marked this pull request as ready for review
December 2, 2026 18:25
Member
|
@edgarrmondragon Thanks. I'll try to incorporate all this in the next release of YAMLStar. |
This branch has not been deployed
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.
The binding only loads the unversioned
libyamlstar.so/.dylib(_candidate_filenamesinyamlstar/__init__.py), butcp -pLturned the versioned symlinks from the build and release archives into full copies inside each Linux and macOS wheel.Nothing needs the versioned names:
.sohas noSONAMElibyamlstar.dylibutil/yamlstar-pluginand the binding never reference themWheels rebuilt with
make -C python wheels-from-releasefrom thev0.1.28release archives:macosx_14_0_arm64macosx_15_0_x86_64manylinux_2_31_x86_64manylinux_2_31_aarch64win_amd64libyamlstar.*file.YAMLStar().load('a: [1, {b: c}]')passes on macOS arm64, macOS x86_64 (Rosetta) and Linux aarch64 (glibc 2.31).libyamlstar.sois byte-identical to the one in the PyPI wheel (SHA-2566ac068ffed1c807d...).This should probably be merged before #17 to ensure the manylinux aarch64 wheel is not bloated.