nmk_python.backends.build_backend

Python build backend definition module

Classes

PythonBuildBackend

Python build backend interface

Module Contents

class nmk_python.backends.build_backend.PythonBuildBackend(model: nmk.model.model.NmkModel)

Bases: abc.ABC

Python build backend interface

Parameters:

model – NmkModel instance

abstractmethod install_editable()

Install current project as editable package

abstractmethod install_wheel(wheel_path: pathlib.Path)

Install current project built wheel

abstractmethod build_wheel(build_dir: pathlib.Path, built_wheel_name: str, wheel_version: str) pathlib.Path

Build current project wheel

Parameters:
  • build_dir – temporary build folder

  • built_wheel_name – name of the built wheel file

Returns:

path to built wheel

abstractmethod uninstall_wheels(wheel_names: list[str])

Uninstall specified wheels

Parameters:

wheel_names – names of the wheels to uninstall