pinokiod 1.2.22 → 1.2.24

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.
@@ -74,6 +74,8 @@ class Conda {
74
74
  // (this.kernel.platform === 'win32' ? 'conda_hook' : `eval "$(conda shell.bash hook)"`),
75
75
  // (this.platform === 'win32' ? `activate base` : `conda activate base`),
76
76
  "conda config --add create_default_packages python=3.10",
77
+ "conda update -y conda",
78
+ "conda update -y --all",
77
79
  "conda install -y -c conda-forge pip brotli brotlipy",
78
80
  // "conda update --all",
79
81
  // "conda update -y --all",
package/kernel/shell.js CHANGED
@@ -100,6 +100,13 @@ class Shell {
100
100
  if (this.env.CMAKE_GENERATOR) {
101
101
  delete this.env.CMAKE_GENERATOR
102
102
  }
103
+
104
+ if (this.env.CUDA_HOME) {
105
+ delete this.env.CUDA_HOME
106
+ }
107
+ if (this.env.CUDA_PATH) {
108
+ delete this.env.CUDA_PATH
109
+ }
103
110
 
104
111
  this.env.CMAKE_OBJECT_PATH_MAX = 1024
105
112
 
@@ -185,6 +192,13 @@ class Shell {
185
192
  }
186
193
  }
187
194
 
195
+
196
+ if (params["-env"] && Array.isArray(params["-env"])) {
197
+ for(let key of params["-env"]) {
198
+ delete this.env[key]
199
+ }
200
+ }
201
+
188
202
  // 3. path => path can be http, relative, absolute
189
203
  this.path = params.path
190
204
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "pinokiod",
3
- "version": "1.2.22",
3
+ "version": "1.2.24",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "scripts": {
package/server/index.js CHANGED
@@ -297,6 +297,9 @@ class Server {
297
297
  args: "-c conda-forge"
298
298
  }, {
299
299
  name: "py"
300
+ }, {
301
+ gpu: "nvidia",
302
+ name: "cuda"
300
303
  }]
301
304
  let platform = os.platform()
302
305
  if (platform === "win32") {
@@ -551,6 +554,9 @@ class Server {
551
554
  args: "-c conda-forge"
552
555
  }, {
553
556
  name: "py"
557
+ }, {
558
+ gpu: "nvidia",
559
+ name: "cuda"
554
560
  }]
555
561
  let platform = os.platform()
556
562
  if (platform === "win32") {