pinokiod 3.2.168 → 3.2.170
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/kernel/shell.js +3 -0
- package/package.json +1 -1
package/kernel/shell.js
CHANGED
|
@@ -646,6 +646,7 @@ class Shell {
|
|
|
646
646
|
if (params.venv) {
|
|
647
647
|
let env_path = path.resolve(params.path, params.venv)
|
|
648
648
|
let activate_path = (this.platform === 'win32' ? path.resolve(env_path, "Scripts", "activate") : path.resolve(env_path, "bin", "activate"))
|
|
649
|
+
let deactivate_path = (this.platform === 'win32' ? path.resolve(env_path, "Scripts", "deactivate") : path.resolve(env_path, "bin", "deactivate"))
|
|
649
650
|
let env_exists = await this.exists(env_path)
|
|
650
651
|
if (env_exists) {
|
|
651
652
|
venv_activation = [
|
|
@@ -654,7 +655,9 @@ class Shell {
|
|
|
654
655
|
} else {
|
|
655
656
|
venv_activation = [
|
|
656
657
|
`python -m venv ${env_path}`,
|
|
658
|
+
(this.platform === "win32" ? `${activate_path} ${env_path}` : `source ${activate_path} ${env_path}`),
|
|
657
659
|
`python -m pip install --upgrade pip setuptools wheel`,
|
|
660
|
+
`${deactivate_path}`,
|
|
658
661
|
(this.platform === "win32" ? `${activate_path} ${env_path}` : `source ${activate_path} ${env_path}`),
|
|
659
662
|
]
|
|
660
663
|
}
|