Installation¶
Preferred way¶
pip install llvm2py
Supported versions
CPython3.10 - CPython3.13
On Windows 64bit and manylinux x86_64 platforms.
Manual installation¶
Dependencies
For correct build you need CMake >= 3.27
C and C++ compilers.
The system must also have libraries libffi и libtinfo.
Note
If the libraries are not found, you can add them manually, example [CMakeLists.txt](./CMakeLists.txt), lines 12-15.
Preferred build system Ninja
Cloning llvm2py
git clone git@github.com:Papr1ka/llvm2py.git
cd llvm2py
LLVM setup
You must have the static library LLVM version >= 16 installed on the system.
This can be done via the distribution’s package manager.¶
Example:
sudo dnf install llvm
sudo dnf install llvm-devel
Or you can build LLVM manually and specify the path to the cmake folder, line 21¶
LLVM_DIR = "/usr/lib/llvm-18/cmake" # Path to cmake folder of llvm library
Or you can download compiled libraries¶
Deb packages https://apt.llvm.org/
Windows https://packages.msys2.org/package/mingw-w64-x86_64-llvm
Run setup.py
in the directory with setup.py:
python -m pip install .