pinokiod 2.1.44 → 2.1.46

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.
@@ -172,6 +172,8 @@ class Bin {
172
172
  return file.endsWith(".js") && file !== "index.js" && file !== "cmake.js"
173
173
  })
174
174
 
175
+ console.log({ modfiles })
176
+
175
177
 
176
178
  this.mods = []
177
179
  for(let filename of modfiles) {
@@ -183,6 +185,7 @@ class Bin {
183
185
  let name = path.basename(filename, ".js")
184
186
  this.mods.push({ name, mod })
185
187
  }
188
+ console.log(">> this.mods = ", this.mods)
186
189
  // inject kernel
187
190
  for(let i=0; i<this.mods.length; i++) {
188
191
  this.mods[i].mod.kernel = this.kernel
@@ -197,6 +200,7 @@ class Bin {
197
200
  }
198
201
  this.mod[mod.name] = mod.mod
199
202
  }
203
+ console.log(">> this.mod", this.mod)
200
204
 
201
205
 
202
206
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "pinokiod",
3
- "version": "2.1.44",
3
+ "version": "2.1.46",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "scripts": {
package/server/index.js CHANGED
@@ -1547,6 +1547,7 @@ class Server {
1547
1547
  return relevant.platform && relevant.arch && relevant.gpu
1548
1548
  }
1549
1549
  async _installed(name, type) {
1550
+ console.log("check _installed", { name, type })
1550
1551
  if (type === "conda") {
1551
1552
  return this.kernel.bin.installed.conda.has(name)
1552
1553
  } else if (type === "pip") {
@@ -1556,6 +1557,7 @@ class Server {
1556
1557
  } else {
1557
1558
  // check kernel/bin/<module>.installed()
1558
1559
  let filepath = path.resolve(__dirname, "..", "kernel", "bin", name + ".js")
1560
+ console.log("mod", this.kernel.bin.mod)
1559
1561
  let mod = this.kernel.bin.mod[name]
1560
1562
  let installed = false
1561
1563
  if (mod.installed) {