pyc_wheel
Compile all py files in a wheel to pyc files.
Overview
pyc_wheel is a strict fork of Grant Patten’s pycwheel package with a fixes allowing to work with Python3 or higher and with a code reformatting and some improvements.
Usage
Processing the wheel in place:
$ python3 -m pyc_wheel your_wheel-1.0.0-py3-none-any.whl
# Output: your_wheel-1.0.0-py3-none-any.whl
or renaming for the python version:
$ python3.13 -m pyc_wheel --rename your_wheel-1.0.0-py3-none-any.whl
# Output: your_wheel-1.0.0-cp313-none-any.whl
or with backup:
$ python3.13 -m pyc_wheel --rename --with-backup your_wheel-1.0.0-py3-none-any.whl
# Output: your_wheel-1.0.0-cp313-none-any.whl
# your_wheel-1.0.0-py3-none-any.whl.bak
or with quiet:
$ python3 -m pyc_wheel --quiet your_wheel-1.0.0-py3-none-any.whl
# Output: your_wheel-1.0.0-py3-none-any.whl
or skipping compilation for a file subset:
$ python3 -m pyc_wheel --exclude "some/regex" your_wheel-1.0.0-py3-none-any.whl
To check all available processing options:
$ python3 -m pyc_wheel --help
Installation
Prerequisites:
Python 3.11 or higher
pip
To install run:
python -m pip install --upgrade pyc_wheel
Development
Prerequisites:
Development is strictly based on nox. To install it run:
python -m pip install --upgrade nox
Visit Development page.
Installation from sources:
clone the sources:
git clone https://github.com/karpierz/pyc_wheel pyc_wheel
and run:
python -m pip install ./pyc_wheel
or on development mode:
python -m pip install --editable ./pyc_wheel
License
Copyright (c) 2019-2026 Adam KarpierzCopyright (c) 2016 Grant PattenLicensed under the MIT LicensePlease refer to the accompanying LICENSE file.
Sponsoring
Release files for pyc-wheel 2.4.4
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| pyc_wheel-2.4.4.tar.gz | 137.4 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| pyc_wheel-2.4.4-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 146.2 kB
Release files / pyc_wheel-2.4.4.tar.gz
| Download URL | pyc_wheel-2.4.4.tar.gz |
|---|---|
| Size | 137.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
b46a5b0473f89747b3b47666ba485905852569e9c1e2f94c44335662266c2f6f
|
|
BLAKE2b-256 checksum How to use checksums |
341e5c251974b2c89398f4329647560fe9f0a52692e1075c21bef88df0b8005f
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.13.15
|
Release files / pyc_wheel-2.4.4-py3-none-any.whl
| Download URL | pyc_wheel-2.4.4-py3-none-any.whl |
|---|---|
| Size | 8.8 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
a4d335f571f1c7c53a4b4dbdf6de58ae47c26e34555716710b3775d32a9cf2ee
|
|
BLAKE2b-256 checksum How to use checksums |
6743e8c520481e64298d69c29ce11bf8df6a38393e395571131cbf5de502a5cc
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.13.15
|