Skip to main content

repairwheel

CI - Test PyPI - Version

Overview

  • repairwheel combines the "repair" steps from auditwheel, delocate, and delvewheel into a single tool, enabling cross-platform wheel repair.
  • It includes pure-python replacements for external tools like patchelf, otool, install_name_tool, and codesign, so no non-python dependencies are required.

What's it do?

  1. When invoked, repairwheel first looks at the platform tag on the input wheel.
  2. Based on the tag, repairwheel selects a repair step from auditwheel, delocate, or delvewheel (or nothing, if it's a pure-Python wheel)
  3. Finally, repairwheel rewrites the result in a canonical form ensuring that:
    1. File timestamps are set to a constant value;
    2. Files in the archive are ordered lexicographically; and
    3. Files in RECORD are ordered lexicographically

The final result should be bitwise-identitcal regardless of the system used to perform the repair.

Usage

usage: repairwheel [-h] -o OUTPUT_DIR [-l LIB_DIR] [-e EXCLUDE]
                   [--no-sys-paths] [-V]
                   wheels [wheels ...]

positional arguments:
  wheels                wheel file(s) to repair, supports glob patterns)

options:
  -h, --help            show this help message and exit
  -o, --output-dir OUTPUT_DIR
  -l, --lib-dir LIB_DIR
  -e, --exclude EXCLUDE
                        library name or glob pattern to exclude from wheel
                        repair; may be repeated
  --no-sys-paths        do not search libraries in system paths
  -V, --version         show program's version number and exit

Example

$ repairwheel \
  tests/testwheel/cp36-abi3-macosx_10_11_arm64/testwheel-0.0.1-cp36-abi3-macosx_10_11_arm64.whl \
  -l tests/testwheel/cp36-abi3-macosx_10_11_arm64/lib \
  -o /tmp/wheelout

$ repairwheel \
  tests/testwheel/cp36-abi3-linux_x86_64/testwheel-0.0.1-cp36-abi3-linux_x86_64.whl \
  -l tests/testwheel/cp36-abi3-linux_x86_64/lib \
  -o /tmp/wheelout

$ ls /tmp/wheelout
testwheel-0.0.1-cp36-abi3-macosx_10_11_arm64.whl
testwheel-0.0.1-cp36-abi3-manylinux_2_5_x86_64.manylinux1_x86_64.whl

Metadata

Release files for repairwheel 0.8.1

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

Source distribution (sdist)

Source distribution for repairwheel 0.8.1
File Size Uploaded Provenance Actions
repairwheel-0.8.1.tar.gz 296.2 kB Without provenance Details for repairwheel-0.8.1.tar.gz

Built distribution (wheel)

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

Total release size: 446.2 kB

Release files / repairwheel-0.8.1.tar.gz

Download URL repairwheel-0.8.1.tar.gz
Size 296.2 kB
Tags Source
SHA-256 checksum
How to use checksums
0f46f1a2841c276e003d6824869d198830f5124168f963de34081cbe2d753203
BLAKE2b-256 checksum
How to use checksums
3faeebf2d586aa2ec7aa53e142314cdd52c077c97091bfa9fe054228a471f281
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via Hatch/1.18.2 {"ci":true,"cpu":"x86_64","distro":{"id":"resolute","libc":{"lib":"glibc","version":"2.43"},"name":"Ubuntu","version":"26.04"},"implementation":{"name":"CPython","version":"3.14.4"},"installer":{"name":"hatch","version":"1.18.2"},"openssl_version":"OpenSSL 3.5.5 27 Jan 2026","python":"3.14.4","system":{"name":"Linux","release":"7.0.0-1020-azure"}} HTTPX2/2.16.2

Release files / repairwheel-0.8.1-py3-none-any.whl

Download URL repairwheel-0.8.1-py3-none-any.whl
Size 150.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
76f16c32a2a05265faa31f944c70973aa8e0721382b52e6aee834188bafadbc8
BLAKE2b-256 checksum
How to use checksums
49c1d72f924b08ee2d861eddb6ad1b882a40b4a1dc856130d09f805264b620bf
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via Hatch/1.18.2 {"ci":true,"cpu":"x86_64","distro":{"id":"resolute","libc":{"lib":"glibc","version":"2.43"},"name":"Ubuntu","version":"26.04"},"implementation":{"name":"CPython","version":"3.14.4"},"installer":{"name":"hatch","version":"1.18.2"},"openssl_version":"OpenSSL 3.5.5 27 Jan 2026","python":"3.14.4","system":{"name":"Linux","release":"7.0.0-1020-azure"}} HTTPX2/2.16.2

Security for repairwheel 0.8.1

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.

No provenance found

None of the files in this release were uploaded with provenance metadata.

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