Skip to content

Conversation

@ShahanaFarooqui
Copy link
Collaborator

The gl-sdk Python package build was failing because while cargo build --workspace successfully compiles libglsdk.so into the Cargo target directory (target/release/libglsdk.so), the Python package's pyproject.toml expects this shared library at libs/gl-sdk/glsdk/libglsdk.so as a forced inclusion, causing uv sync to fail with a FileNotFoundError when attempting to build the editable wheel.

This fix adds a step to copy the compiled library from the Cargo build output to the expected Python package location before running uv sync, ensuring the file exists.

The gl-sdk Python package build was failing because while cargo build --workspace successfully compiles libglsdk.so into the Cargo target directory (target/release/libglsdk.so), the Python package's pyproject.toml expects this shared library at libs/gl-sdk/glsdk/libglsdk.so as a forced inclusion, causing uv sync to fail with a FileNotFoundError when attempting to build the editable wheel. This fix adds a step to copy the compiled library from the Cargo build output to the expected Python package location before running uv sync, ensuring the file exists when hatchling processes the forced inclusion.
@ShahanaFarooqui
Copy link
Collaborator Author

Test run also passed 19937849633.

@ShahanaFarooqui ShahanaFarooqui merged commit 8b74c38 into Blockstream:main Dec 4, 2025
12 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants