Quickly makes Python wheels from a bunch of .py files without needing a setup.py at all.
You probably don’t want to use this. It’s intentionally minimal for my own use-cases, and doesn’t have many features yet (no support for dependencies, extras). If all you’re looking for is a fast build, then consider using flit build --format wheel with a pyproject.toml, this should be nearly as fast.
Usage
For a single file distribution:
python whl.py path/to/myfile.py
For a package (directory with an __init__.py file in it):
python whl.py path/to/dir
whl.py will look in some sensible places to autodetect the package name/version.
Rationale
If all you want to do is package some .py file(s) into a .whl, that’s essentially just making a zipfile. Executing a setuptools / distutils style installer script or a PEP517 / PEP518 style build system is bloated with features which you don’t need, and it can be done much cheaper/faster:
$ time python whl.py mypkg
./mypkg-0.1-py2.py3-none-any.whl
python whl.py mypkg 0.06s user 0.02s system 86% cpu 0.091 total
Compared with doing things the correct way:
$ time python -m build --wheel .
* Creating venv isolated environment...
...
<blah blah>
...
Successfully built mypkg-0.1-py2.py3-none-any.whl
python -m build --wheel . 5.05s user 0.53s system 96% cpu 5.776 total
Metadata
Release files for whl 0.0.7
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 | Actions Reset |
|---|---|---|---|---|
| whl-0.0.7-py2.py3-none-any.whl | Python 3, Python 2 | none | any | Details for whl-0.0.7-py2.py3-none-any.whl |
Release files / whl-0.0.7-py2.py3-none-any.whl
| Download URL | whl-0.0.7-py2.py3-none-any.whl |
|---|---|
| Size | 5.1 kB |
| Tags | Python 2 Python 3 |
|
SHA-256 checksum How to use checksums |
67dc76256537aa229b002065e75d7ac822a207c78178e9944775b629c2c574cb
|
|
BLAKE2b-256 checksum How to use checksums |
846ed205237725a684962e34b1fdc2e0aeea70d5341e4866fbfe9a77efb361d1
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.10.4 {"installer":{"name":"uv","version":"0.10.4","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}
|
Security for whl 0.0.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.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.