skillfed

patchelf-wrapper

A wrapper for patchelf

patchelf-wrapper v1.2.0 1.2M downloads/30d#4,261 on PyPI7
Permissive license BSD Abandoned released

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-wrapper

uv

uv add patchelf-wrapper

poetry

poetry add patchelf-wrapper

Installing 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

Development Status :: 5 - Production/StableIntended Audience :: DevelopersLicense :: OSI Approved :: BSD LicenseOperating System :: POSIX :: LinuxProgramming Language :: Python :: 2Programming Language :: Python :: 2.7Programming Language :: Python :: 3Programming Language :: Python :: 3.5Programming Language :: Python :: 3.6Programming Language :: Python :: 3.7Programming Language :: Python :: 3.8Topic :: Software Development :: Build Tools

Tags

patchelf installation wrapperpatchelf python packagebuild patchelf from sourcepatchelf dependency managementinstall patchelf programmatically
archivedlegacy-build-tool

More Build Tools packages