skillfed

wheel-stub

wheel stub package build backend

wheel-stub v0.5.0 1.8M downloads/30d#3,587 on PyPI
Permissive license Apache-2.0 AGING released

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

uv

uv add wheel-stub

poetry

poetry add wheel-stub

Installing 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

Development Status :: 4 - BetaProgramming Language :: PythonProgramming Language :: Python :: 3.10Programming Language :: Python :: 3.11Programming Language :: Python :: 3.12Programming Language :: Python :: 3.13Programming Language :: Python :: 3.8Programming Language :: Python :: 3.9Programming Language :: Python :: Implementation :: CPythonProgramming Language :: Python :: Implementation :: PyPy

Tags

PEP 517 build backendthird-party package index redirectPyPI stub packagewheel hosting redirectnon-PyPI wheel installationpackage index soft linkcustom index wheel proxy
pep-517package-distributionbuild-backend

More Build Tools packages