Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

iyanmv
Copy link
Contributor

@iyanmv iyanmv commented Feb 1, 2025

Apparently, poetry does not include .so files by default when using packages. To solve this, we add an additional include line that ensures the compiled cpython shared libraries are included in the wheel packages.

Before this change, poetry build -f wheel produces this wheel package:
image

And after this change:
image

In addition, tests directory is also included now in the sdist tarball (as proposed here)

Fixes: #86

Apparently, poetry does not include .so files by default when using
packages. To solve this, we add an additional include line that ensures
the compiled cpython shared libraries are included in the wheel
packages.

In addition, tests are also included now in the sdist tarball.
@coveralls
Copy link

Coverage Status

coverage: 86.984% (-0.1%) from 87.109%
when pulling a500ea3 on iyanmv:fix-wheel
into 7fa43c8 on python-constraint:main.

@fjwillemsen fjwillemsen merged commit fe511fd into python-constraint:main Feb 1, 2025
1 of 2 checks passed
@fjwillemsen
Copy link
Member

Perfect, thank you for looking into this and providing a fix! It has been released in 2.0.2.

@iyanmv iyanmv deleted the fix-wheel branch February 2, 2025 08:08
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.

Shared libraries are not copied to wheel package

3 participants