项目作者: kernhanda

项目描述 :
Python bindings for clang from clang release branches
高级语言: Python
项目地址: git://github.com/kernhanda/python-clang5.git
创建时间: 2017-10-29T23:09:24Z
项目社区:https://github.com/kernhanda/python-clang5

开源协议:Other

下载


python-clang5

Python bindings for clang from clang release branches

This is the python bindings subdir of llvm clang repository.
https://github.com/llvm-mirror/clang/tree/master/bindings/python

Specifically, it’s from the release_50 branch.

This is a non-official fork. Mainly for Pypi packaging purposes.
The pypi package is not official either.

Test:

You may need to alter LD_LIBRARY_PATH so that the Clang library can be
found. The unit tests are designed to be run with nosetests. For example:

  1. $ env PYTHONPATH=$(echo ~/llvm/tools/clang/bindings/python/) \
  2. LD_LIBRARY_PATH=$(llvm-config --libdir) \
  3. nosetests -v
  4. tests.cindex.test_index.test_create ... ok
  5. ...

Credit to trolldbois/python-clang
for the original repository, which is no longer maintained. This isn’t a fork
because I am not maintaining the older branches from that repository.