Skip to content

Install

Python

dexpp needs Python 3.10 or newer.

pip install dexpp

PyPI has prebuilt wheels for CPython 3.10, 3.11, 3.12, 3.13 and 3.14, for each of these systems:

System Wheels
Linux x86_64 glibc 2.28 or newer, and musl
macOS 14 or newer Apple Silicon (arm64) and Intel (x86_64), one wheel each
Windows x64

The same wheels are attached to each GitHub release.

On any other platform or Python version, pip builds dexpp from the source distribution. That needs:

  • a C++23 compiler: GCC 13 or newer, Clang 19 or newer, Apple Clang from Xcode 16 or newer, or MSVC from Visual Studio 2022 or newer;
  • CMake 3.18 or newer.

The build downloads two dependencies by itself (pybind11 and libdeflate), so it needs network access.

Check the install:

import dexpp
print(dexpp.__version__)

The package ships type stubs. Editors, mypy and pyright get full completion and type checking with no extra package. The examples on this site write the type of every variable, and they pass mypy --strict.

From a checkout

pip install . in a checkout builds and installs the same package.

To work on the library itself, build the module in the tree instead and point PYTHONPATH at the build folder:

cmake -S . -B build -DDEXPP_BUILD_PYTHON=ON
cmake --build build -j --config Release
PYTHONPATH=build python3 bindings/python/test_dexpp.py

The module lands in build/ with every CMake generator, including Visual Studio. On Windows, use python instead of python3, and set PYTHONPATH in the way your shell does it.

Run the tests from the repository root. They open their fixture files by relative path.

C++, C, Go and Java

The C++ library and the C, Go and Java bindings are used from source. There are no install rules and no prebuilt binaries yet. See C++, C and Go and Java for how to build and use each one.