Skip to main content

Clang Python Bindings, mirrored from the official LLVM repo: https://github.com/llvm/llvm-project/tree/main/clang/bindings/python, to make the installation process easier.

Project description

libclang-for-pip

PyPI Python Downloads License

Arch: x86_64 Arch: aarch64

Linux MacOS Windows

The repository contains code that taken from the LLVM project, to make it easier to install clang's python bindings.

The repository copys necessary Python binding files from LLVM repo, and adds packaging scripts to make it a valid Python package, the uploads the package to pypi. To make the libclang available without install the LLVM toolkits, this package provides bundled static-linked libclang shared library for different platforms, which, should work well on OSX, Windows, as well as usual Linux distributions.

The aim of this project is to make the clang.cindex (aka., Clang Python Bindings) available for more Python users, without setup the LLVM environment. To install the package, you just need to run

pip install libclang

Note that the library is named libclang, the package clang on PyPi is another package and doesn't bundle the prebuilt shared library.

Internals

Update class variable library_path of Config in cindex.py as:

    library_path = os.path.join(os.path.dirname(os.path.realpath(__file__)), 'native')

License

This repository follows the license agreement of the LLVM project, see Apache-2.0 WITH LLVM-exception.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distributions

libclang-13.0.0-py2.py3-none-win_arm64.whl (12.1 MB view hashes)

Uploaded Python 2 Python 3 Windows ARM64

libclang-13.0.0-py2.py3-none-win_amd64.whl (13.9 MB view hashes)

Uploaded Python 2 Python 3 Windows x86-64

libclang-13.0.0-py2.py3-none-musllinux_1_2_x86_64.whl (14.3 MB view hashes)

Uploaded Python 2 Python 3 musllinux: musl 1.2+ x86-64

libclang-13.0.0-py2.py3-none-manylinux2014_armv7l.whl (11.1 MB view hashes)

Uploaded Python 2 Python 3

libclang-13.0.0-py2.py3-none-manylinux2014_aarch64.whl (26.0 MB view hashes)

Uploaded Python 2 Python 3

libclang-13.0.0-py2.py3-none-manylinux1_x86_64.whl (14.5 MB view hashes)

Uploaded Python 2 Python 3

libclang-13.0.0-py2.py3-none-macosx_11_0_arm64.whl (12.2 MB view hashes)

Uploaded Python 2 Python 3 macOS 11.0+ ARM64

libclang-13.0.0-py2.py3-none-macosx_10_9_x86_64.whl (13.0 MB view hashes)

Uploaded Python 2 Python 3 macOS 10.9+ x86-64

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page