pinokiod 3.8.48 → 3.8.50
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 +3 -0
- package/kernel/bin/index.js +6 -0
- package/package.json +1 -1
package/kernel/bin/conda.js
CHANGED
|
@@ -375,6 +375,9 @@ report_errors: false`)
|
|
|
375
375
|
let e
|
|
376
376
|
for(let p of this.paths[this.kernel.platform]) {
|
|
377
377
|
let e = await this.kernel.bin.exists(p)
|
|
378
|
+
console.log("kernel.bin.conda.installed")
|
|
379
|
+
console.log("e", e)
|
|
380
|
+
console.log("correct_conda", this.kernel.bin.correct_conda)
|
|
378
381
|
if (e && this.kernel.bin.correct_conda) return true
|
|
379
382
|
}
|
|
380
383
|
return false
|
package/kernel/bin/index.js
CHANGED
|
@@ -330,11 +330,13 @@ class Bin {
|
|
|
330
330
|
let to_reset_exists = false
|
|
331
331
|
for(let module_path of module_paths) {
|
|
332
332
|
let e = await this.kernel.exists(module_path)
|
|
333
|
+
console.log("checking kernel exists", { module_path, e })
|
|
333
334
|
if (e) {
|
|
334
335
|
to_reset_exists = true
|
|
335
336
|
break;
|
|
336
337
|
}
|
|
337
338
|
}
|
|
339
|
+
console.log("> to_reset_exists", to_reset_exists)
|
|
338
340
|
if (to_reset_exists) {
|
|
339
341
|
this.correct_conda = false
|
|
340
342
|
} else {
|
|
@@ -342,9 +344,12 @@ class Bin {
|
|
|
342
344
|
// process.stdout.write(stream.raw)
|
|
343
345
|
// console.log("conda list check", { stream })
|
|
344
346
|
})
|
|
347
|
+
console.log("> res", res)
|
|
345
348
|
|
|
346
349
|
let lines = res.response.split(/[\r\n]+/)
|
|
350
|
+
console.log("> lines", lines)
|
|
347
351
|
for(let line of lines) {
|
|
352
|
+
console.log("> start", start)
|
|
348
353
|
if (start) {
|
|
349
354
|
let chunks = line.split(/\s+/).filter(x => x)
|
|
350
355
|
if (chunks.length > 2) {
|
|
@@ -394,6 +399,7 @@ class Bin {
|
|
|
394
399
|
}
|
|
395
400
|
}
|
|
396
401
|
}
|
|
402
|
+
console.log("conda_check", conda_check)
|
|
397
403
|
|
|
398
404
|
if (conda_check.conda && conda_check.mamba && conda_check.sqlite) {
|
|
399
405
|
//if (conda_check.conda && conda_check.mamba) {
|