pinokiod 3.8.50 → 3.8.52
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/index.js +16 -13
- package/kernel/peer.js +2 -1
- package/kernel/router/index.js +1 -0
- package/package.json +1 -1
package/kernel/bin/index.js
CHANGED
|
@@ -323,20 +323,23 @@ class Bin {
|
|
|
323
323
|
} else {
|
|
324
324
|
site_packages_path = path.resolve(this.kernel.homedir, "bin/miniconda/lib/python3.10/site-packages")
|
|
325
325
|
}
|
|
326
|
-
// check if any of 'uvicorn', 'importlib_metadata', 'fastapi' exists
|
|
327
|
-
let module_paths = ["fastapi", "uvicorn", "importlib_metadata"].map((name) => {
|
|
328
|
-
return path.resolve(site_packages_path, name)
|
|
329
|
-
})
|
|
326
|
+
// // check if any of 'uvicorn', 'importlib_metadata', 'fastapi' exists
|
|
327
|
+
// let module_paths = ["fastapi", "uvicorn", "importlib_metadata"].map((name) => {
|
|
328
|
+
// return path.resolve(site_packages_path, name)
|
|
329
|
+
// })
|
|
330
|
+
// let to_reset_exists = false
|
|
331
|
+
// for(let module_path of module_paths) {
|
|
332
|
+
// let e = await this.kernel.exists(module_path)
|
|
333
|
+
// console.log("checking kernel exists", { module_path, e })
|
|
334
|
+
// if (e) {
|
|
335
|
+
// to_reset_exists = true
|
|
336
|
+
// break;
|
|
337
|
+
// }
|
|
338
|
+
// }
|
|
339
|
+
// console.log("> to_reset_exists", to_reset_exists)
|
|
340
|
+
|
|
330
341
|
let to_reset_exists = false
|
|
331
|
-
|
|
332
|
-
let e = await this.kernel.exists(module_path)
|
|
333
|
-
console.log("checking kernel exists", { module_path, e })
|
|
334
|
-
if (e) {
|
|
335
|
-
to_reset_exists = true
|
|
336
|
-
break;
|
|
337
|
-
}
|
|
338
|
-
}
|
|
339
|
-
console.log("> to_reset_exists", to_reset_exists)
|
|
342
|
+
|
|
340
343
|
if (to_reset_exists) {
|
|
341
344
|
this.correct_conda = false
|
|
342
345
|
} else {
|
package/kernel/peer.js
CHANGED
|
@@ -45,8 +45,9 @@ class PeerDiscovery {
|
|
|
45
45
|
let peer_info = await Promise.all(Array.from(this.peers).map((host) => {
|
|
46
46
|
return this._refresh(host)
|
|
47
47
|
}))
|
|
48
|
+
console.log({ peer_info })
|
|
48
49
|
for(let i=0; i<peer_info.length; i++) {
|
|
49
|
-
let host =
|
|
50
|
+
let host = peer_info[i]
|
|
50
51
|
this.info[host] = {
|
|
51
52
|
host,
|
|
52
53
|
...peer_info[i],
|
package/kernel/router/index.js
CHANGED