class MStrap::Runtimes::Python
- MStrap::Runtimes::Python
- MStrap::Runtime
- Reference
- Object
Overview
Python runtime management implmentation. It contains methods for interacting with Python via ASDF and bootstrapping a Python project based on conventions.
TODO Does not support virtualenv
Defined in:
mstrap/runtimes/python.crInstance Method Summary
-
#bootstrap
Bootstrap the current directory for the runtime
-
#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.
-
#language_name : String
Name of the language as a string.
-
#matches? : Bool
Returns whether the project uses the runtime
Instance methods inherited from class MStrap::Runtime
asdf_exec(command : String, args : Array(String), runtime_version : String | Nil = nil)
asdf_exec,
asdf_install_plugin
asdf_install_plugin,
asdf_plugin_name : String
asdf_plugin_name,
bootstrap
bootstrap,
current_version
current_version,
has_asdf_plugin?
has_asdf_plugin?,
has_version?(version)
has_version?,
has_versions?
has_versions?,
install_packages(packages : Array(Defs::PkgDef), runtime_version : String | Nil = nil) : Bool
install_packages,
installed_versions
installed_versions,
language_name : String
language_name,
latest_version
latest_version,
matches? : Bool
matches?,
setup
setup,
with_dir_version(dir, &)
with_dir_version
Instance methods inherited from module MStrap::DSL::System
cmd(env : Hash | Nil, command : String, args : Array(String) | Nil, shell = true, input = Process::Redirect::Inherit, output = Process::Redirect::Inherit, error = Process::Redirect::Inherit, quiet = false, sudo = false)
cmd
Instance methods inherited from module MStrap::DSL::Logging
log(msg)
log,
logc(msg)
logc,
logd(msg)
logd,
logn(msg)
logn,
logw(msg)
logw,
success(msg)
success
Instance Method Detail
Bootstrap the current directory for the runtime
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.
Name of the language as a string. Always lowercase.
Returns whether the project uses the runtime