Skip to content

Instantly share code, notes, and snippets.

@ianmackenzie
Last active December 24, 2024 04:29
Show Gist options
  • Save ianmackenzie/fc33acca10eedfe2dc2447e9b3b2c959 to your computer and use it in GitHub Desktop.
Save ianmackenzie/fc33acca10eedfe2dc2447e9b3b2c959 to your computer and use it in GitHub Desktop.
delocate-wheel help
usage: delocate-wheel [-h] [--version] [-v] [-d] [-e EXCLUDE]
[--executable-path EXECUTABLE_PATH]
[--ignore-missing-dependencies] [--sanitize-rpaths]
[--no-sanitize-rpaths] [-L LIB_SDIR] [-w WHEEL_DIR] [-k]
[--require-archs ARCHITECTURES]
[--require-target-macos-version REQUIRE_TARGET_MACOS_VERSION]
WHEEL [WHEEL ...]
Copy, relink library dependencies for wheel. Overwrites the wheel in-place by
default. This script respects the MACOSX_DEPLOYMENT_TARGET environment
variable. Set MACOSX_DEPLOYMENT_TARGET to verify and target a specific macOS
release.
positional arguments:
WHEEL The wheel files to be delocated
options:
-h, --help show this help message and exit
--version show program's version number and exit
-v, --verbose Show a more verbose report of progress and failure,
additional flags show even more info, up to -vv
-d, --dylibs-only Only analyze files with known dynamic library
extensions
-e, --exclude EXCLUDE
Exclude any libraries where path includes the given
string
--executable-path EXECUTABLE_PATH
The path used to resolve @executable_path in
dependencies
--ignore-missing-dependencies
Skip dependencies which couldn't be found and delocate
as much as possible
--sanitize-rpaths Remove absolute and relative rpaths from binaries
(default)
--no-sanitize-rpaths Don't remove absolute and relative rpaths from
binaries
-L, --lib-sdir LIB_SDIR
Subdirectory in packages to store copied libraries For
non-package wheels this will be used as a suffix for
the library directory
-w, --wheel-dir WHEEL_DIR
Directory to store delocated wheels (default is to
overwrite input)
-k, --check-archs Check architectures of depended libraries
--require-archs ARCHITECTURES
Architectures that all wheel libraries should have
(from 'intel', 'i386', 'x86_64', 'i386,x86_64',
'universal2', 'x86_64,arm64')
--require-target-macos-version REQUIRE_TARGET_MACOS_VERSION
Verify if platform tag in wheel name is proper
(deprecated) Configure MACOSX_DEPLOYMENT_TARGET
instead of using this flag
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment