Compile all py files in a wheel to pyc files.
Project description
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.10 or higher
pip and setuptools
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
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file pyc_wheel-2.1.0.tar.gz.
File metadata
- Download URL: pyc_wheel-2.1.0.tar.gz
- Upload date:
- Size: 132.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.11
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
35fb2c569711e51d6d047b033ca948b871071c4ccc8cef8139cc1ae9b135dda4
|
|
| MD5 |
40cca1e9f9d8d34778bd0cf00bc0ca94
|
|
| BLAKE2b-256 |
ac9698b8e8087f3a1f84b16cc52e8e82af19fee5e1dba9f3ae1ee32cbf52dcec
|
File details
Details for the file pyc_wheel-2.1.0-py3-none-any.whl.
File metadata
- Download URL: pyc_wheel-2.1.0-py3-none-any.whl
- Upload date:
- Size: 8.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.11
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
68e57fe5555850bad003e537f37ab79e2410d4c0d7549b366521dc556003e4f4
|
|
| MD5 |
4c13599f69b6b627c5c59763d5456ac3
|
|
| BLAKE2b-256 |
a511aafd9d2fb031c62abcaf5efa927bb96292653e77a4348922281296413b66
|