wheel-stub
wheel stub package build backend
What it is and what it does
wheel-stub is a PEP 517 build backend that solves the problem of distributing wheels hosted on non-PyPI indexes while preserving the standard `pip install` user experience. Instead of requiring users to specify custom index URLs or download wheels manually, you configure wheel-stub in your pyproject.toml with a third-party index URL, and it generates a stub package on PyPI that redirects pip to fetch the actual wheel from that index.
The backend has no runtime dependencies and supports Python 3.8 through 3.13 on CPython and PyPy. It vendors its own copies of packaging and tomli to avoid external dependencies. Configuration is minimal: you specify the index URL and optionally control whether to error if the wheel cannot be found, or whether to include CUDA debuginfo in error messages.
Use it for:
- Distribute specialized wheels from a third-party index without requiring users to configure custom pip settings.
- Create a PyPI presence for packages that must remain on a non-PyPI index due to licensing or dependency constraints.
- Simplify installation UX for end users who should not need to know about alternative package indexes.
- Bridge a third-party index and PyPI for packages that cannot be directly mirrored to PyPI.
- Host wheels on a dedicated index while letting users install via standard `pip install` commands.
Worth the install?
AI-flagged interpretation of the facts on this page — verify before relying
A PEP 517 build backend that creates stub packages on PyPI pointing to wheels hosted on third-party package indexes, letting users install them with standard `pip install` commands.
Yes, if you need to host wheels on a non-PyPI index and want users to install them with standard pip commands. The package is low-friction to install and has no runtime dependencies. However, maintenance is aging (189 days since last release), so verify it still works with your Python version and index before adopting in production. No known security vulnerabilities.
Install
wheel-stub on PyPI
pip
pip install wheel-stubuv
uv add wheel-stubpoetry
poetry add wheel-stubInstalling wheel-stub
Before you install
Low friction: pure Python wheel with no runtime dependencies. Maintenance status is aging (189 days since last release), though the package is classified as Beta and supports current Python versions.
License in practice
Apache-2.0 permissive license. The package vendors packaging (BSD 2-clause and Apache 2 dual licensed) and tomli (MIT licensed), all compatible with permissive use.
Quickstart
# In pyproject.toml, configure wheel-stub as build backend:
[build-system]
requires = ["wheel-stub"]
build-backend = "wheel_stub"
[tool.wheel-stub]
index_url = "https://pypi.example.com"
# Then build: python -m build --sdist
Requires a third-party package index URL configured in pyproject.toml; the wheel files must already exist on that index.
Verify before relying
- Whether the package is actively maintained or in maintenance mode (aging status, no recent commits visible).
- Real-world adoption and stability beyond the top-5000 download tier.
- Compatibility with specific third-party indexes and whether stub-only mode behavior is production-ready.
Package facts
| License | Apache-2.0 (permissive) |
| Python support | supports the current Python release (>=3.8) |
| Install friction | low — pure-Python wheel |
| Runtime dependencies | none |
| Maintenance | aging — 189 days since the last release |
| First released | |
| Downloads | 1,757,558/month — #3,587 on PyPI (30-day window, as of 2026-08-14) |
| Known vulnerabilities | none known (OSV.dev, checked 2026-08-14) |
Evidence: wheel_stub-0.5.0-py3-none-any.whl
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
buildBuilds Python packages in isolated…
permissive · top 1,000 on PyPI
pip-install-testA minimal stub package that verifies pip can…
permissive · top 15,000 on PyPI
pdm-pep517A PEP 517 build backend that reads PEP 621…
permissive · top 15,000 on PyPI
wheywhey is a PEP 517 build backend that creates…
permissive · top 15,000 on PyPI
cmeelcmeel is a PEP 517 build backend that packages…
permissive · top 5,000 on PyPI
pep517Provides subprocess-isolated wrappers around…
permissive · top 5,000 on PyPI
whoolwhool is a PEP 517 and PEP 660 compliant build…
permissive · top 15,000 on PyPI
PyQt-builderPyQt-builder is a PEP 517 compliant build…
permissive · top 15,000 on PyPI
poetry-corepoetry-core is a PEP 517 build backend that…
permissive · top 1,000 on PyPI
pip2pipip2pi creates a PyPI-compatible package…
permissive · top 15,000 on PyPI