patchelf-wrapper
A wrapper for patchelf
What it is and what it does
patchelf-wrapper is a Python package that automates the installation of patchelf 0.11, a utility for modifying ELF binaries. It's designed for Python projects that need patchelf as a build dependency and want to avoid requiring end-users to install it via their OS package manager. The wrapper provides setup commands to check, build, and install patchelf into a project's environment.
The package has no runtime dependencies and installs patchelf by downloading and compiling its source during the installation process. It's intended only for developers packaging Python tools that depend on patchelf, not for end-users of patchelf itself. The repository is archived and has not been updated since 2022-01-19, making it a legacy tool for older projects.
Use it for:
- Packaging a Python tool that modifies ELF binaries and needs patchelf available at build time without requiring users to install system packages.
- Automating CI/CD pipelines where patchelf must be available but system package managers are not available or not preferred.
- Building Python wheels that depend on patchelf functionality for binary patching during the build process.
Worth the install?
AI-flagged interpretation of the facts on this page — verify before relying
Provides a Python wrapper that downloads and builds patchelf 0.11 for projects that need it as a build-time dependency, rather than relying on system package managers.
No. The project is abandoned (last release 2020-07-04, repository archived), installs only patchelf 0.11 which is likely outdated, and requires a C compiler and build tools for every installation. For new projects, use your OS package manager or a modern build tool. For existing projects already using this package, consider migrating to a maintained alternative or installing patchelf directly via your system's package manager.
Install
patchelf-wrapper on PyPI
pip
pip install patchelf-wrapperuv
uv add patchelf-wrapperpoetry
poetry add patchelf-wrapperInstalling patchelf-wrapper
Before you install
High install friction: the package builds patchelf from source as part of installation. Repository is archived and last updated 2022-01-19, with no releases since 2020-07-04; maintenance is abandoned.
License in practice
Licensed under BSD (permissive), so no restrictions on use. Note that patchelf itself, which this wrapper installs, is licensed under GPL, version 3.
Quickstart
# In setup.py or requirements.txt:
# patchelf-wrapper==1.2.0
# Or install directly:
# pip install patchelf-wrapper
# Then use in your build setup:
from patchelf_wrapper import build_patchelf
Requires a C compiler and build tools to compile patchelf from source during installation; only supports Linux (POSIX).
Verify before relying
- Whether patchelf 0.11 remains compatible with modern Linux distributions and Python versions.
- Whether the GPL v3 license of patchelf creates compliance obligations for downstream projects.
- Current state of the upstream patchelf project and whether 0.11 is still maintained.
Package facts
| License | BSD (permissive) |
| Python support | not specified |
| Install friction | high — source build required |
| Runtime dependencies | none |
| Maintenance | abandoned — 2,232 days since the last release |
| Last repo commit | (repository archived) |
| First released | |
| Downloads | 1,178,932/month — #4,261 on PyPI (30-day window, as of 2026-08-14) |
| Known vulnerabilities | none known (OSV.dev, checked 2026-08-14) |
Evidence: patchelf-wrapper-1.2.0.tar.gz
Keywords: patchelf
Tags
More Build Tools packages
Provides reusable utilities for Python…
permissive · top 100 on PyPI
tqdmWraps any iterable to display a real-time…
copyleft · top 100 on PyPI
pippip is the standard installer for Python…
permissive · top 100 on PyPI
hatchlingHatchling is a standards-compliant Python build…
permissive · top 100 on PyPI
grpcio-toolsGenerates Python gRPC service stubs and message…
permissive · top 1,000 on PyPI
pre-commitpre-commit is a framework for installing and…
permissive · top 1,000 on PyPI
patchelfProvides a PyPI-packaged binary of patchelf, a…
copyleft · top 5,000 on PyPI
chialisp-builderManages build-time compilation of Chialisp…
unclear · top 15,000 on PyPI
enum-compatConditionally installs enum34 on Python…
permissive · top 5,000 on PyPI
oldest-supported-numpyProvides the oldest version of NumPy compatible…
permissive · top 5,000 on PyPI
versioneerVersioneer automates version management in…
permissive · top 5,000 on PyPI
pbs-installerDownloads and installs python-build-standalone…
permissive · top 1,000 on PyPI
versioneer-518Automates version management in…
permissive · top 15,000 on PyPI
patchyPatchy modifies Python functions at runtime by…
permissive · top 5,000 on PyPI
ignoreDownloads and installs common .gitignore…
permissive · top 15,000 on PyPI
coherent.licensedA Setuptools plugin that automatically injects…
permissive · top 15,000 on PyPI