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
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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distributions
Built Distributions
Hashes for libclang-13.0.0-py2.py3-none-win_arm64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | b0acfcfbd1f6d411f654cf6ec4f09cecf0f80b3480e4c9f834d1dcb1f8bd6907 |
|
MD5 | 7b5d076237886e15563237d545a5ebf7 |
|
BLAKE2b-256 | 06d2359e2330fc845ea77480d85d6e0640dd372aa76858d01119837cff5e5504 |
Hashes for libclang-13.0.0-py2.py3-none-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | b61dedc1b941f43acca1fa15df0a6669c6c3983197c6f3226ae03a766281dd37 |
|
MD5 | 3067a1ec2725a14f7365dc8ece4f5b03 |
|
BLAKE2b-256 | fa0998786c8eaae694c63a9305667d4e60faec3d5a3b7c32fdd30ce02c470cab |
Hashes for libclang-13.0.0-py2.py3-none-musllinux_1_2_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | dcc7ecd83d91e23e95315d7aa6355ee8d45b43742ca1fb642583e0b2f935d50e |
|
MD5 | f8302c848add9280a23af36b6a719e05 |
|
BLAKE2b-256 | ba8090ffac378195318932cb80ce8fa5e6697e07c74368f34e2edaeba4de4fdc |
Hashes for libclang-13.0.0-py2.py3-none-manylinux2014_armv7l.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | dfcdfc90eeb5d14f291e31c19b195fbcc29a8c0b2bd29fa331011f9536937a89 |
|
MD5 | bea3e911377f7a7c1951ed85a7e6d898 |
|
BLAKE2b-256 | 904f18ae80bed0c458e17dfac6579d52453df600d831af7b0ff6354bcca3f0b9 |
Hashes for libclang-13.0.0-py2.py3-none-manylinux2014_aarch64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | b7de34393ed46c6cf7b22178d0d43cec2f2dab2f5f95450520a47fc1cf2df5ac |
|
MD5 | 0e6f45bc5da029b9b2051ff6ceee80d5 |
|
BLAKE2b-256 | 4a2bdc806aa58745370ce3207130682c0baf76128d1e0d0a93db70ee21bd533b |
Hashes for libclang-13.0.0-py2.py3-none-manylinux1_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9c1e623340ccafe3a10a2abbc90f59593ff29f0c854f4ddb65b6220d9d998fb4 |
|
MD5 | 9b2845d57021720668f9c261846aaf99 |
|
BLAKE2b-256 | 2265cc1a8614487330a79f01ea44a210aa9173c81adf16a3660eb29d3e4b311f |
Hashes for libclang-13.0.0-py2.py3-none-macosx_11_0_arm64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 069407eac2e20ea8f18212d28c6598db31014e7b8a77febc92e762ec133c3226 |
|
MD5 | d4f6c3c92585508c05415fdf282eca76 |
|
BLAKE2b-256 | 4bdf82cda70ce4ebd0c18fe923137d443163e7913159890dfc8e6397f415ecb8 |
Hashes for libclang-13.0.0-py2.py3-none-macosx_10_9_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | bcaffec6b1ab9486811670db7af29d4a361830d6cb75da4f5672e884aa973bda |
|
MD5 | 0263f3460067fb63e865ec82cde9b137 |
|
BLAKE2b-256 | e3f45199b9aa077d9852a13bdd6e89170a4f493fa03597ce083815472f98f059 |