pinokiod 3.2.226 → 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.
Files changed (2) hide show
  1. package/kernel/shell.js +13 -4
  2. 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
- venv_activation = [
742
- (this.platform === "win32" ? `${activate_path} ${env_path}` : `source ${activate_path} ${env_path}`),
743
- timeout,
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
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "pinokiod",
3
- "version": "3.2.226",
3
+ "version": "3.2.228",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "scripts": {