1.1.1.1. pmpm.packages package#
- class pmpm.packages.GenericPackage(env: InstallEnvironment, update: bool | None = None, fast_update: bool = False, arch: str = 'x86-64-v3', tune: str = 'generic', version: str = 'master')[source]#
Bases:
object
Generic package class.
- Parameters:
env – the environment to install the package into.
update – whether to update the package if it is already installed.
fast_update – whether to use fast update. If True, it will be used if the package supports it, otherwise it will fall back to normal update.
package_name – the name of the package.
arch – the arch to compile for.
tune – the tune to compile for.
version – the version to install, which should be a valid git tag/branch for git-based packages.
- arch: str = 'x86-64-v3'#
- env: InstallEnvironment#
- fast_update: bool = False#
- property is_installed: bool#
- package_name: ClassVar[str] = ''#
- run_conda_activated(command: str | list[str], **kwargs) None [source]#
Run commands with conda activated.
- Parameters:
kwargs – passes to subprocess.run
- property src_dir: Path#
- property sub_platform: str#
- property system: str#
- tune: str = 'generic'#
- update: bool | None = None#
- version: str = 'master'#