python.wheel
¶
Module Contents¶
Classes¶
Handle Python wheel packages. |
- exception python.wheel.WheelError(message: str | list[str], origin: str | None = None)¶
Bases:
e3.error.E3Error
Exception raised by functions defined in E3.
- class python.wheel.Wheel(path: str)¶
Handle Python wheel packages.
- 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') 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)
- Returns:
a Wheel object
- install() None ¶
Install a wheel.