Skip to main content

mxlpy-native

The compiled Radau and LSODA solvers behind MxlPy's Native integrator, plus llvmlite, which compiles models to machine code for them. Install it through MxlPy rather than on its own:

pip install "mxlpy[native]"

Platforms

Wheels are published for Linux (x86_64, aarch64; glibc 2.28+), macOS (arm64, 12+) and Windows (amd64, arm64), the platforms llvmlite has wheels for. On anything else, mxlpy[native] installs the WASM backend (wasmtime) instead, which runs the same solvers without a compiler, a little slower.

If pip has to build from the sdist anyway, it needs a C11 compiler (GCC 8+, Clang 7+ or MSVC 2019 16.8+), and nothing else: no Fortran, BLAS/LAPACK or Python headers. The build says what to install if the compiler is missing or fails.

Troubleshooting

python -m mxlpy_native

prints the installed version, the solver ABI, and whether the compiled solvers and llvmlite load, with a fix for each failure.

Development

uv sync           # builds the extension in place
uv run pytest

c/vendor/ is copied from mxl-solvers by its scripts/vendor.sh. vendor/VENDORED records the commit and file hashes, which tests/test_vendor.py checks. Fix solvers there, not here. c/mxn_solvers.c is the glue MxlPy calls, compiled unchanged into the wheel and into MxlPy's solvers.wasm (scripts/build_native_wasm.sh in MxlPy).

When an exported function's signature or meaning changes, bump MXN_ABI_VERSION in c/mxn_solvers.c, ABI_VERSION in src/mxlpy_native/__init__.py and the ABI MxlPy expects, then release both. MxlPy refuses a mismatched pair with an upgrade hint instead of crashing.

Releasing

Bump version in pyproject.toml and publish a GitHub release v<version>. The release workflow builds the wheels with cibuildwheel plus an sdist and uploads them to PyPI via trusted publishing.

Metadata

Release files for mxlpy-native 0.3.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for mxlpy-native 0.3.0
File Size Uploaded Provenance Actions
mxlpy_native-0.3.0.tar.gz 64.8 kB With provenance Details for mxlpy_native-0.3.0.tar.gz

Built distributions (wheels)

Table of built distributions (wheels) for mxlpy-native 0.3.0
File Actions
mxlpy_native-0.3.0-cp312-abi3-win_arm64.whl CPython 3.12 abi3 Windows ARM64 Details for mxlpy_native-0.3.0-cp312-abi3-win_arm64.whl
mxlpy_native-0.3.0-cp312-abi3-win_amd64.whl CPython 3.12 abi3 Windows x86-64 Details for mxlpy_native-0.3.0-cp312-abi3-win_amd64.whl
mxlpy_native-0.3.0-cp312-abi3-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl CPython 3.12 abi3 Linux glibc 2.28+ x86-64, Linux glibc 2.17+ x86-64 Details for mxlpy_native-0.3.0-cp312-abi3-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl
mxlpy_native-0.3.0-cp312-abi3-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl CPython 3.12 abi3 Linux glibc 2.28+ ARM64, Linux glibc 2.17+ ARM64 Details for mxlpy_native-0.3.0-cp312-abi3-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl
mxlpy_native-0.3.0-cp312-abi3-macosx_12_0_arm64.whl CPython 3.12 abi3 macOS 12.0+ ARM64 Details for mxlpy_native-0.3.0-cp312-abi3-macosx_12_0_arm64.whl

Total release size: 611.6 kB

Release files / mxlpy_native-0.3.0.tar.gz

Download URL mxlpy_native-0.3.0.tar.gz
Size 64.8 kB
Tags Source
SHA-256 checksum
How to use checksums
584f00a82b2c7b29374c29ac57473e69aa850d3173f735224f25f8e18dd28c82
BLAKE2b-256 checksum
How to use checksums
a1d1a868e50123c9fe7a7be51f90fddd9c27579697f8fcaec309c185a00f5081
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 6, 2026.

Transparency log

Release files / mxlpy_native-0.3.0-cp312-abi3-win_arm64.whl

Download URL mxlpy_native-0.3.0-cp312-abi3-win_arm64.whl
Size 49.0 kB
Tags CPython 3.12 Windows ARM64 abi3
SHA-256 checksum
How to use checksums
7a70935a79279ee6a4f5341a666b1e1b73fee52f9898b384fb1142c7cf9210cf
BLAKE2b-256 checksum
How to use checksums
9684a32671e161f8ba29d35c9a8d25eeff78d11ec661727b190104f240084346
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 6, 2026.

Transparency log

Release files / mxlpy_native-0.3.0-cp312-abi3-win_amd64.whl

Download URL mxlpy_native-0.3.0-cp312-abi3-win_amd64.whl
Size 54.6 kB
Tags CPython 3.12 Windows x86-64 abi3
SHA-256 checksum
How to use checksums
3883870c7ea873f5d0a3866430f16d6ee808a348e3492379febfab15b4de43ff
BLAKE2b-256 checksum
How to use checksums
5535a712a459d0163935bfd51bdcbec1f7f36b7377827f3fd3061334b48bd269
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 6, 2026.

Transparency log

Release files / mxlpy_native-0.3.0-cp312-abi3-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl

Download URL mxlpy_native-0.3.0-cp312-abi3-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl
Size 177.2 kB
Tags CPython 3.12 Linux glibc 2.17+ x86-64 Linux glibc 2.28+ x86-64 abi3
SHA-256 checksum
How to use checksums
747d080ded5870a6b785808afed6cedf00652a9aa392982dd7413295ef1008f4
BLAKE2b-256 checksum
How to use checksums
4621f8e1252653b9a3bad947e0277b76f7d12b45c1cde1d6b7f870d36f47f6fb
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 6, 2026.

Transparency log

Release files / mxlpy_native-0.3.0-cp312-abi3-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl

Download URL mxlpy_native-0.3.0-cp312-abi3-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl
Size 167.9 kB
Tags CPython 3.12 Linux glibc 2.17+ ARM64 Linux glibc 2.28+ ARM64 abi3
SHA-256 checksum
How to use checksums
898ce38f1c7b27a80b0382e72233671d90d4855107bd1f3ff87f1363a8324e14
BLAKE2b-256 checksum
How to use checksums
7d682ec33ec8a85295d56c6e41da3585a01fdf4d4cea2e26fc9214d72bcee329
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 6, 2026.

Transparency log

Release files / mxlpy_native-0.3.0-cp312-abi3-macosx_12_0_arm64.whl

Download URL mxlpy_native-0.3.0-cp312-abi3-macosx_12_0_arm64.whl
Size 98.1 kB
Tags CPython 3.12 abi3 macOS 12.0+ ARM64
SHA-256 checksum
How to use checksums
d24b67c073b18d24247adbe46976cb0c1cbc1f66fedfabb42595df546e93f060
BLAKE2b-256 checksum
How to use checksums
d39a0b9cbcbd03c4ff6c61fb0ef2090399ef4b8df25b8fb23260aa8c2c7ce6b9
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 6, 2026.

Transparency log

Security for mxlpy-native 0.3.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

Full provenance

All 6 files in this release have been uploaded with provenance metadata.

Select from 6 files

Attestation for mxlpy_native-0.3.0.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 6, 2026.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page