pinokiod 3.2.143 → 3.2.144
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 +12 -10
- package/package.json +1 -1
package/kernel/bin/index.js
CHANGED
|
@@ -135,7 +135,6 @@ class Bin {
|
|
|
135
135
|
// return a single merged env object, constructed from all the modules
|
|
136
136
|
|
|
137
137
|
// 1. get the module envs
|
|
138
|
-
console.log("this.mods=",this.mods)
|
|
139
138
|
let envs = this.mods.map((mod) => {
|
|
140
139
|
if (mod.name === "vs") {
|
|
141
140
|
// don't include vs now
|
|
@@ -239,12 +238,10 @@ class Bin {
|
|
|
239
238
|
let start
|
|
240
239
|
let conda_check = {}
|
|
241
240
|
let conda = new Set()
|
|
242
|
-
console.log("Before running conda list")
|
|
243
241
|
res = await this.exec({ message: `conda list` }, (stream) => {
|
|
244
|
-
process.stdout.write(stream.raw)
|
|
242
|
+
// process.stdout.write(stream.raw)
|
|
245
243
|
// console.log("conda list check", { stream })
|
|
246
244
|
})
|
|
247
|
-
console.log("After running conda list")
|
|
248
245
|
|
|
249
246
|
console.log("CONDA", res.response)
|
|
250
247
|
let lines = res.response.split(/[\r\n]+/)
|
|
@@ -574,19 +571,24 @@ class Bin {
|
|
|
574
571
|
for(let requirement of requirements) {
|
|
575
572
|
i++;
|
|
576
573
|
// Retry at least 5 times until it succeeds
|
|
577
|
-
for(let x=0; x<
|
|
574
|
+
for(let x=0; x<10; x++) {
|
|
578
575
|
console.log(`## Install Interation: ${x}`)
|
|
579
|
-
console.log(
|
|
576
|
+
console.log(`## [${x}] Install Step 1: Try Install`, requirement)
|
|
580
577
|
await this.tryInstall(requirement, i, requirements.length, ondata)
|
|
581
|
-
console.log(
|
|
578
|
+
console.log(`## [${x}] Install Step 2: Refresh Installed`)
|
|
582
579
|
await this.refreshInstalled()
|
|
583
|
-
console.log(
|
|
580
|
+
console.log(`## [${x}] Install Step 3: Check Installed`, requirement)
|
|
584
581
|
let installed = await this._installed(requirement.name, requirement.type)
|
|
585
582
|
if (installed) {
|
|
586
|
-
console.log(
|
|
583
|
+
console.log(`## [${x}] Install Step 4: Installed Successful. Break`)
|
|
587
584
|
break;
|
|
588
585
|
} else {
|
|
589
|
-
console.log(
|
|
586
|
+
console.log(`## [${x}] Install Step 4: Install Unsuccessful. Retrying in 2 seconds`)
|
|
587
|
+
await new Promise((reolve, reject) => {
|
|
588
|
+
setTimeout(()=> {
|
|
589
|
+
resolve()
|
|
590
|
+
}, 2000)
|
|
591
|
+
})
|
|
590
592
|
}
|
|
591
593
|
}
|
|
592
594
|
}
|