diff --git a/src/main/kotlin/org/domaindrivenarchitecture/provs/desktop/infrastructure/Python.kt b/src/main/kotlin/org/domaindrivenarchitecture/provs/desktop/infrastructure/Python.kt index da6998b..4b4ba86 100644 --- a/src/main/kotlin/org/domaindrivenarchitecture/provs/desktop/infrastructure/Python.kt +++ b/src/main/kotlin/org/domaindrivenarchitecture/provs/desktop/infrastructure/Python.kt @@ -14,6 +14,7 @@ fun Prov.provisionPython(venvHome: String? = "~/.venv/meissa") = task { installRestClient(venvHome) installJupyterlab(venvHome) installLinters(venvHome) + installAsciinema(venvHome) } fun Prov.installPython3(): ProvResult = task { @@ -45,6 +46,9 @@ fun Prov.installJupyterlab(venvHome: String? = null): ProvResult = task { fun Prov.installLinters(venvHome: String? = null): ProvResult = task { pipInstall("flake8 mypy pylint", venvHome) } +fun Prov.installAsciinema(venvHome: String? = null): ProvResult = task { + pipInstall("asciinema", venvHome) +} private fun Prov.pipInstall(pkg: String, venvHome: String? = null) { cmd(activateVenvCommandPrefix(venvHome) + "pip3 install $pkg")