sighingnow / libclang

(Unofficial) Release libclang (clang.cindex) on pypi.
https://pypi.org/project/libclang
Other
81 stars 21 forks source link

Use cibuildwheel with scikit-build? #16

Closed nightlark closed 2 years ago

nightlark commented 2 years ago

Hey @sighingnow, I noticed the libclang package on PyPI includes copies of the libclang shared library, though only for a handful of the platform tags supported on PyPI. Recently the clang-format wheel was switched over to build using a combination of cibuildwheel (easy builds for wheels across a wide variety of platforms) and scikit-build (easy cross-platform building, single CMake "script" works for all platforms).

Some of the advantages that came from this approach:

If there's interest (or you need help with maintaining the libclang package), I'm willing start working on this for getting libclang 13.0.0 wheels published -- once the changes are made it should be easy to update for future LLVM releases.

sighingnow commented 2 years ago

The cibuildwheel looks nice. And it would be great if you could help to migrate the CI configration!

I think to leverage cibuildwheel, we need to add a CIBW_BEFORE_ALL script to build LLVM and copy the generate libclang.{so,dylib,dll} to the native/ dir. Then everything should just work.

sighingnow commented 2 years ago

I have assigned the issue to you. Thanks!

sighingnow commented 2 years ago

Closed as out-of-date.

Hi @nightlark free to open if you have bandwidth for this ticket in the future. Thanks for your effort for the libclang package!