pinokiod 3.2.227 → 3.2.228
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 +13 -4
- package/package.json +1 -1
package/kernel/shell.js
CHANGED
|
@@ -738,10 +738,19 @@ class Shell {
|
|
|
738
738
|
let deactivate_path = (this.platform === 'win32' ? path.resolve(env_path, "Scripts", "deactivate") : "deactivate")
|
|
739
739
|
let env_exists = await this.exists(env_path)
|
|
740
740
|
if (env_exists) {
|
|
741
|
-
|
|
742
|
-
|
|
743
|
-
|
|
744
|
-
|
|
741
|
+
if (use_uv) {
|
|
742
|
+
venv_activation = [
|
|
743
|
+
`uv venv ${env_path}${python_version}`,
|
|
744
|
+
(this.platform === "win32" ? `${activate_path} ${env_path}` : `source ${activate_path} ${env_path}`),
|
|
745
|
+
timeout,
|
|
746
|
+
]
|
|
747
|
+
} else {
|
|
748
|
+
venv_activation = [
|
|
749
|
+
`python -m venv ${env_path}`,
|
|
750
|
+
(this.platform === "win32" ? `${activate_path} ${env_path}` : `source ${activate_path} ${env_path}`),
|
|
751
|
+
timeout,
|
|
752
|
+
]
|
|
753
|
+
}
|
|
745
754
|
} else {
|
|
746
755
|
if (use_uv) {
|
|
747
756
|
// when python version is specified as venv.python => use uv
|