wheel-stub
This is a PEP 517 build backend to act as a "soft link" between a package released on a 3rd party package index and pypi.org. This allows users to keep the simple UX of pip install foo while hosting the actual wheel files on a non-PyPi index.
Demo usage
- Install hatch: https://hatch.pypa.io/latest/install/
- Run
hatch shell - Run
hatch build -t wheel cd demo- Grab your favorite wheel file on https://pypi.nvidia.com, e.g.
wget https://pypi.nvidia.com/nvidia-cuda-runtime-cu12/nvidia_cuda_runtime_cu12-12.4.99-py3-none-manylinux2014_x86_64.whl - Build the sdist:
There should now be a newPIP_FIND_LINKS=`pwd`/../dist PIP_NO_INDEX=1 python -m build --sdist --config-setting source_wheel=nvidia_cuda_runtime_cu12-12.4.99-py3-none-manylinux2014_x86_64.whldist/folder with e.g.nvidia_cuda_runtime_cu12-12.4.99.tar.gz - Install the sdist:
Feel free to test withpip install --no-cache ./dist/<my_sdist>.tar.gz--extra-index-url https://pypi.nvidia.comas well. - Done! You should see everything install correctly
Configuration
There are a few configuration options available for wheel_stub. These can be set in your pyproject.toml file:
-
index_url: The url to the 3rd party index to install wheels from. This is the only required configuration setting. -
stub_only: Do not install the wheel from the 3rd party package repository, instead erroring with instructions of how to use the repository directly. This can be used in cases such as a project which depends on non-PyPi dependencies, which would get rejected from pypi.org. Set automatically based on project dependencies.trueorfalse(defaultfalse) -
include_cuda_debuginfo: Whether to query information about the available CUDA runtime when reporting an error.trueorfalse(defaultfalse)
License
This project is released under the Apache-2 license. It vendors the packaging project, which is BSD 2-clause and Apache 2 dual licensed. It also vendors tomli, which is MIT licensed. For more details see the LICENSE file.
Metadata
Release files for wheel-stub 0.5.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| wheel_stub-0.5.0-py3-none-any.whl | Python 3 | none | any | Details |
Release files / wheel_stub-0.5.0-py3-none-any.whl
| Download URL | wheel_stub-0.5.0-py3-none-any.whl |
|---|---|
| Size | 108.9 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
debb507277eb5793dcfa8e92f1f41ba4b93f7db05035725b5780cb6bcb444f3f
|
|
BLAKE2b-256 checksum How to use checksums |
06bca04db4c1ca8991c38d9cc4004adaa38309d5e236568c77965a0ea61601a0
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.7
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Feb 6, 2026.
Transparency log