sighingnow / libclang

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

Add support for Windows on Arm #24

Closed pbo-linaro closed 2 years ago

pbo-linaro commented 2 years ago

Hi libclang!

This PR adds support for WoA (windows on arm - aarch64) by providing a workflow for github actions.

The ultimate goal is to be able to run pip install libclang directly from a WoA machine.


Tested with (on WoA machine):

# 1. create wheel manually
python setup.py bdist_wheel --plat-name=win_arm64
# 2. install it
python -m pip install .\libclang-13.0.0-py2.py3-none-win_arm64.whl
# 3. Run tests from clang official bindings
git clone https://github.com/llvm-mirror/clang/ --depth=1
cd clang\bindings\python
$env:CLANG_LIBRARY_PATH="C:\wenv\arm64\python\tools\Lib\site-packages\clang\native\" python -m unittest
...
# 2 failures reported (same as x64)
sighingnow commented 2 years ago

Thank you!

sighingnow commented 2 years ago

I'll upload the wheel once CI becomes green.

sighingnow commented 2 years ago

The win_arm64 package has been upload to pypi: https://pypi.org/project/libclang/13.0.0/

pbo-linaro commented 2 years ago

That was quick, thanks a lot 👍!