Skip to main content

xbuild

Python Versions PyPI Version Maturity BSD License Discord server

xbuild is PEP 517 build frontend that has additions and extensions to support cross-compiling wheels for platforms where compilation cannot be performed natively - most notably Android and iOS. Initial experimental support also exists for Emscripten (WASM).

Quickstart

xbuild

Create a virtual environment for your build platform (i.e., the platform where you will be compiling), and install xbuild. Then, run xbuild from the root directory of the project you want to build. You must pass in the --sysconfig argument, providing the path to the sysconfig_vars JSON file for the target platform, or the equivalent sysconfigdata python configuration:

$ python3 -m venv venv
$ source venv/bin/activate
(venv) $ python -m pip install xbuild
(venv) $ python -m xbuild --sysconfig path/to/_sysconfig_vars__...json

This will do the equivalent of python -m build, but in an cross-platform environment that is pretending to be the environment described by the sysconfig data that has been provided.

xvenv

To explicitly create a cross-platform virtual environment, start by creating a virtual environment for your build platform (i.e., the platform where you will be compiling), then install and use the xvenv script to create cross-platform virtual environment, specifying the platform and architecture you want to target.

$ python3 -m venv venv
$ source venv/bin/activate
(venv) $ python -m pip install xbuild
(venv) $ python -m xvenv --platform ios --arch arm64-iphonesimulator x-venv

You can then activate and deactivate the x-venv environment as you would any other virtual environment.

Documentation

Documentation for xbuild can be found on Read The Docs.

Community

xbuild is part of the BeeWare suite. You can talk to the community through:

We foster a welcoming and respectful community as described in our BeeWare Community Code of Conduct.

Contributing

If you experience problems with xbuild, log them on GitHub. If you want to contribute code, please fork the code and submit a pull request.

Release files for xbuild 0.4.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 xbuild 0.4.0
File Size Uploaded
xbuild-0.4.0.tar.gz 106.9 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for xbuild 0.4.0
File Interpreter ABI Platform
xbuild-0.4.0-py3-none-any.whl Python 3 none any Details

Total release size: 141.4 kB

Release files / xbuild-0.4.0.tar.gz

Download URL xbuild-0.4.0.tar.gz
Size 106.9 kB
Tags Source
SHA-256 checksum
How to use checksums
30623b8b77aee2efdfbbb045ee2cf11c1051ee87f46fb12ed5074fa40e2b53c1
BLAKE2b-256 checksum
How to use checksums
01577c1fafb20743e3d1e37ea6e49bf42b79b27ba413b3486c4e239b490391c5
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

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 Sep 25, 2026.

Transparency log

Release files / xbuild-0.4.0-py3-none-any.whl

Download URL xbuild-0.4.0-py3-none-any.whl
Size 34.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
f3f6cdd451ca36b8991fefdfa39c357bcf3a42f36315b026d32650f6a7919281
BLAKE2b-256 checksum
How to use checksums
3f1aa5ba8c1c5f4be222e8880a2e1ed367be01d70744ccdb0a840ea065656a0a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

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 Sep 25, 2026.

Transparency log

Release history Release notifications | RSS feed

This release

0.4.0 This release

2 release files

0.3.0

2 release files

0.2.0

2 release files

0.0.1

2 release files

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