Skip to main content
Pre-release

This release is a pre-release and may not be stable for production use.

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 Toga Chart 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.3.0rc1

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.3.0rc1
File Size Uploaded
xbuild-0.3.0rc1.tar.gz 88.0 kB Details

Built distribution (wheel)

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

Total release size: 111.1 kB

Release files / xbuild-0.3.0rc1.tar.gz

Download URL xbuild-0.3.0rc1.tar.gz
Size 88.0 kB
Tags Source
SHA-256 checksum
How to use checksums
3e038430e16ba5af4d71db2b2d786c501390496af0378aef5cc7c67f3cab8f92
BLAKE2b-256 checksum
How to use checksums
67c1524b8ba4a951f7f37ed8361b32903fc3234229e81914587eb30cb6f9a675
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 22, 2026.

Transparency log

Release files / xbuild-0.3.0rc1-py3-none-any.whl

Download URL xbuild-0.3.0rc1-py3-none-any.whl
Size 23.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
3ebc27c9bb3f01eb7bfb71c13a5a0eab059dae81a0c8c7d2e2b7c8392038c49d
BLAKE2b-256 checksum
How to use checksums
ada40c9cc597950f1160ef572ad706084c4f6de056209332c71cf6d469449573
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 22, 2026.

Transparency log

Release history Release notifications | RSS feed

0.4.0

2 release files

0.3.0

2 release files

This release

0.3.0rc1 This release

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