python.wheel¶
Classes¶
Handle Python wheel packages. |
Module Contents¶
- class python.wheel.WheelError¶
Bases:
e3.error.E3Error
- class python.wheel.Wheel(path: str)¶
Handle Python wheel packages.
- path = b'.'¶
- property metadata_path: str¶
Relative path in a wheel package to the metadata.
- property requirements: set[packaging.requirements.Requirement]¶
Return the set of Requirements for the wheel.
- classmethod build(source_dir: str, dest_dir: str, python_tag: str = 'py3', build_args: list[str] | None = None) Wheel¶
Create a wheel package from a source directory.
- Parameters:
source_dir – location of the sources
dest_dir – directory in which the wheel will be saved
python_tag – python tag (default: py3)
build_args – extra pip wheel build arguments
- Returns:
a Wheel object
- install() None¶
Install a wheel.