Skip to main content

Repair any wheel, anywhere

Project description

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] wheel

positional arguments:
  wheel

options:
  -h, --help            show this help message and exit
  -o OUTPUT_DIR, --output-dir OUTPUT_DIR
  -l LIB_DIR, --lib-dir LIB_DIR

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

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

repairwheel-0.2.5.tar.gz (241.4 kB view details)

Uploaded Source

Built Distribution

repairwheel-0.2.5-py3-none-any.whl (122.3 kB view details)

Uploaded Python 3

File details

Details for the file repairwheel-0.2.5.tar.gz.

File metadata

  • Download URL: repairwheel-0.2.5.tar.gz
  • Upload date:
  • Size: 241.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: python-httpx/0.24.1

File hashes

Hashes for repairwheel-0.2.5.tar.gz
Algorithm Hash digest
SHA256 fb461263bc730dd0234407b38956dfe73e7273acb243a89998310ee9db0399af
MD5 c636e05aece469b7a69cc89d45a87185
BLAKE2b-256 1fae98ab44fcd7c2c779d924162c8707e4633950c1dc535900f9d4bf0ae7cf06

See more details on using hashes here.

File details

Details for the file repairwheel-0.2.5-py3-none-any.whl.

File metadata

File hashes

Hashes for repairwheel-0.2.5-py3-none-any.whl
Algorithm Hash digest
SHA256 702e67b148ff9c5029406fe036e405418e6e61400d26670baad71a2c32cf1fab
MD5 8b1b6675e3f463a45d094f7737f6b700
BLAKE2b-256 028747bcfac9279f48047bfa2f70f89289d2ee05bf578de9ca94582cb7ff81fb

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page