Unofficial self contained distribution of the LLDB Python Bindings
Project description
lldb-python
An unofficial self contained distribution of the LLDB Python Bindings to ease integration of the LLDB debugger into external Python projects.
The Python API is normally distributed as part of the main LLDB package, but this typically uses the System Python which can make it difficult to integrate into standalone Python projects that typically will use a virtual environment
A small patch is made to the LLDB build to disable linking to the Python library, and to enable linking to static libraries provided by conan.
This makes it easier to distribute the LLDB Python bindings as a relocatable binary distribution.
Installation
Download the appropriate wheel file for your platform and architecture and install using PIP.
Example Usage
There are extensive examples in the LLDB Documentation and the LLVM Repository
There is also a basic test suite in the test
folder of this repository
Build
Wheels are built using scikit-build-core and cibuildwheel. Some post-build customization of the built wheel is done that could not be accomplished using these tools alone.
./download-llvm.sh
pipx run build -v --wheel
./python edit-wheel.py preprocess dist/<wheel_file>
Then to test the wheel
pip install -r requirements.txt
python -m venv .venv
source .venv/bin/activate
pip install dist/<wheel_file>
pytest -v test
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 lldb_python-19.0.0.dev1-cp312-cp312-manylinux_2_28_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5ee902f27544cd67eb12c135e65b9a11b4c1d59a0ce156fb1480e90a2f621ac4 |
|
MD5 | d6d7c6f623d0d414a6e0d80acf08c0d9 |
|
BLAKE2b-256 | 67c73b273318f362a850e0aaefa03996901307e0f520196874dba6164b7df65f |
Hashes for lldb_python-19.0.0.dev1-cp312-cp312-macosx_11_0_arm64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | d52209a57d4fed341fac63ca137a0c52fead1d5a48fd88e412643ea616b94b9b |
|
MD5 | 18a87710e5cb98612a603a579ad715f0 |
|
BLAKE2b-256 | 5cc2072fb4010fe1007b12759170469a1511aa5eeb0e8748531d7c7e6bb56e20 |
Hashes for lldb_python-19.0.0.dev1-cp311-cp311-manylinux_2_28_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | b70d08765309f379e438a24f23ebd2c29a06bfbc1c49d8dfdfb136a68a7d076b |
|
MD5 | 430190dd45c989bb6fbedb3b2aeff025 |
|
BLAKE2b-256 | 47377547f167766ea1472448b3c7293e6585dc426c259ef7ab12131c97308484 |
Hashes for lldb_python-19.0.0.dev1-cp311-cp311-macosx_11_0_arm64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8a877c4c8f3da210ec322215302b7287c3cd8c677372215401861a91fbe80294 |
|
MD5 | 65aaa600da4a1a9cff850ecbae086444 |
|
BLAKE2b-256 | a7d127a695afe875816e4447bd1a1e75deb78bf4231cc5ee82226222e57ee4cd |
Hashes for lldb_python-19.0.0.dev1-cp310-cp310-manylinux_2_28_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | a37e031d9dcd34feb17e8278775ac30bffb3df4c805345253713c436b34239bd |
|
MD5 | b12f4a2b39db8adb30a760861c48c846 |
|
BLAKE2b-256 | 85ee78d5af32f50bfb6535006eca3d4100dbfca1f6a204f9f1a3ea87057b588a |
Hashes for lldb_python-19.0.0.dev1-cp310-cp310-macosx_11_0_arm64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8fa0f0e0a14b331eae4b9a2ce6ef9bb3e9fd2efaabb8b5f6e69af5cbba344613 |
|
MD5 | d91b230a1d86de7a92e8ef25db1154bf |
|
BLAKE2b-256 | 57f09010bd7485aec733032016f6bfbac86adce19d2c617518567879a3ee5c04 |