pinokiod 3.7.2 → 3.7.4
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/bin/conda.js +4 -0
- package/kernel/shell.js +8 -8
- package/package.json +1 -1
package/kernel/bin/conda.js
CHANGED
|
@@ -79,6 +79,10 @@ class Conda {
|
|
|
79
79
|
- defaults
|
|
80
80
|
create_default_packages:
|
|
81
81
|
- python=3.10
|
|
82
|
+
envs_dirs:
|
|
83
|
+
- ${this.kernel.bin.path("miniconda/envs")}
|
|
84
|
+
pkgs_dirs:
|
|
85
|
+
- ${this.kernel.bin.path("miniconda/pkgs")}
|
|
82
86
|
remote_connect_timeout_secs: 20.0
|
|
83
87
|
remote_read_timeout_secs: 300.0
|
|
84
88
|
remote_max_retries: 6
|
package/kernel/shell.js
CHANGED
|
@@ -121,11 +121,11 @@ class Shell {
|
|
|
121
121
|
this.env.CMAKE_OBJECT_PATH_MAX = 1024
|
|
122
122
|
this.env.PYTORCH_ENABLE_MPS_FALLBACK = 1
|
|
123
123
|
this.env.TORCH_FORCE_NO_WEIGHTS_ONLY_LOAD = 1
|
|
124
|
-
if (this.platform === 'win32') {
|
|
125
|
-
this.env.USERPROFILE = this.kernel.homedir
|
|
126
|
-
} else {
|
|
127
|
-
this.env.HOME = this.kernel.homedir
|
|
128
|
-
}
|
|
124
|
+
// if (this.platform === 'win32') {
|
|
125
|
+
// this.env.USERPROFILE = this.kernel.homedir
|
|
126
|
+
// } else {
|
|
127
|
+
// this.env.HOME = this.kernel.homedir
|
|
128
|
+
// }
|
|
129
129
|
|
|
130
130
|
// this.env.PIP_REQUIRE_VIRTUALENV = "true"
|
|
131
131
|
// this.env.NPM_CONFIG_USERCONFIG = this.kernel.path("user_npmrc")
|
|
@@ -184,17 +184,17 @@ class Shell {
|
|
|
184
184
|
if (key.toLowerCase() === "path") {
|
|
185
185
|
// "path" is a special case => merge with process.env.PATH
|
|
186
186
|
if (params.env.path) {
|
|
187
|
-
this.env[PATH_KEY] = `${params.env.path.join(path.delimiter)}${path.delimiter}${this.env[PATH_KEY]}
|
|
187
|
+
this.env[PATH_KEY] = `${params.env.path.join(path.delimiter)}${path.delimiter}${this.env[PATH_KEY]}`.replaceAll('"', '')
|
|
188
188
|
//this.env.PINOKIO_PATH = params.env.path.join(path.delimiter)
|
|
189
189
|
//this.env[PATH_KEY] = `$PINOKIO_PATH${path.delimiter}${this.env[PATH_KEY]}`
|
|
190
190
|
}
|
|
191
191
|
if (params.env.PATH) {
|
|
192
|
-
this.env[PATH_KEY] = `${params.env.PATH.join(path.delimiter)}${path.delimiter}${this.env[PATH_KEY]}
|
|
192
|
+
this.env[PATH_KEY] = `${params.env.PATH.join(path.delimiter)}${path.delimiter}${this.env[PATH_KEY]}`.replaceAll('"', '')
|
|
193
193
|
//this.env.PINOKIO_PATH = params.env.PATH.join(path.delimiter)
|
|
194
194
|
//this.env[PATH_KEY] = `$PINOKIO_PATH${path.delimiter}${this.env[PATH_KEY]}`
|
|
195
195
|
}
|
|
196
196
|
if (params.env.Path) {
|
|
197
|
-
this.env[PATH_KEY] = `${params.env.Path.join(path.delimiter)}${path.delimiter}${this.env[PATH_KEY]}
|
|
197
|
+
this.env[PATH_KEY] = `${params.env.Path.join(path.delimiter)}${path.delimiter}${this.env[PATH_KEY]}`.replaceAll('"', '')
|
|
198
198
|
//this.env.PINOKIO_PATH = params.env.Path.join(path.delimiter)
|
|
199
199
|
//this.env[PATH_KEY] = `$PINOKIO_PATH${path.delimiter}${this.env[PATH_KEY]}`
|
|
200
200
|
}
|