class

MStrap::Runtimes::Python

Inherits MStrap::Runtime / MStrap::DSL / MStrap::DSL::System / MStrap::DSL::Logging / Reference / Object

Python runtime management implmentation. It contains methods for interacting with Python via the chosen runtime manager and bootstrapping a Python project based on conventions.

TODO: Does not support virtualenv

Instance methods

bootstrap

Bootstrap the current directory for the runtime

Source
install_packages(packages : Array(Defs::PkgDef), runtime_version : String | Nil = nil) : Bool

Installs global packages for the runtime with an optional version specification, and optional runtime version.

NOTE: The version specification is dependent upon the underlying package manager and is passed verbatim.

Source
matches?

Returns whether the project uses the runtime

Source