delvewheel
Self-contained wheels for Windows
What it is and what it does
delvewheel is a command-line tool that solves the problem of distributing Python wheels for Windows when they depend on DLLs not guaranteed to be present on end-user machines. It inspects a wheel, identifies external DLL dependencies (excluding system libraries), copies those DLLs into the wheel, and patches the wheel so the DLLs load correctly at runtime. This approach mirrors auditwheel (Linux) and delocate (macOS).
The tool handles DLL name mangling to avoid DLL hell—a Windows problem where multiple versions of the same DLL can conflict. It supports fine-grained control via command-line options to include or exclude specific DLLs, search additional paths, and configure where vendored DLLs are stored within the wheel. It runs on Python 3.9+ and can repair wheels targeting Python 2.6 or later across win32, win_amd64, and win_arm64 architectures.
Use it for:
- Package a compiled extension module with its required DLL dependencies for clean installation on Windows systems.
- Repair an existing wheel by automatically discovering and bundling external DLL dependencies into a self-contained distribution.
- Inspect a wheel to see which external DLLs it depends on before deciding whether to bundle them.
- Produce Windows wheels from a Linux or macOS build environment without needing a Windows machine.
- Manage DLL namespace conflicts by using name-mangling and selective exclusion options.
Worth the install?
AI-flagged interpretation of the facts on this page — verify before relying
Bundles DLL dependencies into Windows Python wheels to create self-contained packages that work without requiring system libraries on the target machine.
Yes. delvewheel fills a critical gap for Windows wheel distribution. It is actively maintained, has low install friction, carries a permissive MIT license, and solves a real problem for anyone shipping compiled Python packages for Windows. The tool is stable (Production/Stable classifier), has no known vulnerabilities, and is popular (433256 monthly downloads, top 15000 packages) indicating real-world adoption.
Install
delvewheel on PyPI
pip
pip install delvewheeluv
uv add delvewheelpoetry
poetry add delvewheelInstalling delvewheel
Before you install
Low friction install with a single runtime dependency (pefile). Active maintenance with recent releases; last commit 2026-08-14 and 152 repository stars indicate ongoing support.
License in practice
MIT license permits commercial and private use with minimal restrictions; you may redistribute the tool and wheels it produces under the same terms.
Quickstart
pip install delvewheel
delvewheel repair mywheel-0.0.1-cp310-cp310-win_amd64.whl
delvewheel show mywheel-0.0.1-cp310-cp310-win_amd64.whl
Requires Python 3.9+ to run; wheels being repaired can target Python 2.6+ on win32, win_amd64, or win_arm64.
Verify before relying
- Whether delvewheel can repair Windows wheels from non-Windows build environments as the description suggests.
- Performance characteristics when processing large wheels with many DLL dependencies.
Package facts
| License | MIT (permissive) |
| Python support | supports the current Python release (>=3.9) |
| Install friction | low — pure-Python wheel |
| Runtime dependencies | 1 — pefile |
| Maintenance | actively maintained — 78 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 433,256/month — #6,702 on PyPI (30-day window, as of 2026-08-14) |
| Known vulnerabilities | none known (OSV.dev, checked 2026-08-14) |
Evidence: delvewheel-1.13.0-py3-none-any.whl
Tags
More Software Development packages
Provides backported and experimental type hints…
permissive · top 100 on PyPI
numpyNumPy provides an N-dimensional array object…
permissive · top 100 on PyPI
fastapiFastAPI is a Python web framework for building…
permissive · top 100 on PyPI
annotated-docProvides a way to document function parameters,…
permissive · top 100 on PyPI
typerTyper builds command-line applications from…
permissive · top 1,000 on PyPI
distlibDistlib provides low-level packaging utilities…
permissive · top 1,000 on PyPI
editablesEditables is a library for building wheels that…
permissive · top 1,000 on PyPI
repairwheelRepairs wheels for cross-platform distribution…
permissive · top 15,000 on PyPI
setuptools-dsosetuptools_dso is a setuptools plugin that…
permissive · top 15,000 on PyPI
auditwheelAudits and repairs Linux and Android wheel…
permissive · top 5,000 on PyPI
change-wheel-versionModifies the version metadata in an…
unclear · top 15,000 on PyPI
cibuildwheelAutomates building and testing Python wheels…
permissive · top 5,000 on PyPI
ray-haproxyProvides a pre-built HAProxy binary bundled…
copyleft · top 15,000 on PyPI
dllistLists the shared libraries (DLLs) currently…
permissive · top 15,000 on PyPI
shivshiv builds self-contained Python zipapps (PEP…
permissive · top 15,000 on PyPI
delocateDelocate finds and relocates dynamic libraries…
permissive · top 15,000 on PyPI