From fe6e48f6ddead3956df73fcb2db9b9e7a49da446 Mon Sep 17 00:00:00 2001 From: Mirco Date: Tue, 7 Nov 2023 09:44:22 +0100 Subject: [PATCH] [skip-ci]install asciinema with pip --- .../provs/desktop/infrastructure/Python.kt | 4 ++++ 1 file changed, 4 insertions(+) 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")