Skip to content

ABI builds fails due wheel repair for dynamic libraries #1118

@petrasvestartas

Description

@petrasvestartas

I am building a binding with referenced dynamic libraries:
https://github.com/petrasvestartas/compas_occt/blob/af2e828963c952795103d1ad58f7c86403743b14/pyproject.toml

cibuildwheel succeeds for less than Python 3.12 version, when it comes to ABI it fails: 3.12, 3.13, 3.14 it fails.

                                                      ✕ 24.18s
cibuildwheel: error: Command ['sh', '-c', "python -m zipfile -e /tmp/cibuildwheel/built_wheel/compas_occt-0.1.15-cp312-abi3-linux_x86_64.whl /tmp/wheel_extract && find /tmp/wheel_extract -name '*.so*' -path '*/compas_occt/lib/*' -exec cp {} /usr/local/lib/ \\; && ldconfig && auditwheel repair --plat manylinux2014_x86_64 -w /tmp/cibuildwheel/repaired_wheel /tmp/cibuildwheel/built_wheel/compas_occt-0.1.15-cp312-abi3-linux_x86_64.whl"] failed with code 2. 

I am using repair operation that make this error, because when you build a Python wheel that uses external shared libraries (like OCCT), the wheel initially contains:

  • Your Python extension modules (.so files)
  • References to external shared libraries (like libTKernel.so.7.9)
  • But the external libraries themselves are NOT included in the wheel by default.

How do you normally include externally build .dll without repair?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions