All Projects → sighingnow → libclang

sighingnow / libclang

Licence: other
(Unofficial) Release libclang (clang.cindex) on pypi.

Programming Languages

python
139335 projects - #7 most used programming language
shell
77523 projects

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.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].