Skip to main content

Python bindings for LLVM

Project description


This package has been tested with LLVM 3.1 and 3.2, Python 2.7 and Python 3.2. Other Python versions should work.


  1. Get 3.1 or 3.2 version of LLVM, build it. Make sure --enable-pic is passed to LLVM’s configure.

    For LLVM 3.2, make sure that environment variable REQUIRES_RTTI=1 is defined when running make. Otherwise, you may see “undefined symbol: _ZTIN4llvm24PassRegistrationListenerE”. Please refer to for details.

  2. Get llvm-py and install it:

    $ git clone
    $ cd llvmpy
    $ python install

    Run the tests:

    $ python -c "import llvm; llvm.test()"
  3. See documentation at ‘’ and examples under ‘test’.


llvmpy is distributed under the new BSD license, which is similar to the LLVM license itself. See the file called LICENSE for the full license text.

Project details

Download files

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

Files for llvmpy, version 0.10.1
Filename, size File type Python version Upload date Hashes
Filename, size llvmpy-0.10.1.tar.gz (547.0 kB) File type Source Python version None Upload date Hashes View

Supported by

Pingdom Pingdom Monitoring Google Google Object Storage and Download Analytics Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page