pinokiod 3.2.144 → 3.2.146

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.
@@ -98,7 +98,6 @@ create_default_packages:
98
98
 
99
99
  console.log("CONDA", res.response)
100
100
  let lines = res.response.split(/[\r\n]+/)
101
- console.log({ lines })
102
101
  let conda_check = {}
103
102
  for(let line of lines) {
104
103
  let chunks = line.split(/\s+/).filter(x => x)
@@ -176,8 +176,6 @@ class Bin {
176
176
  return file.endsWith(".js") && file !== "index.js" && file !== "cmake.js"
177
177
  })
178
178
 
179
- console.log("*bin.init")
180
-
181
179
  this.mods = []
182
180
  for(let filename of modfiles) {
183
181
  // 1. get all the modules in __dirname
@@ -321,10 +319,9 @@ class Bin {
321
319
  this.installed.conda = new Set()
322
320
  if (conda_exists) {
323
321
  // Try 3 times, because sometimes conda just silently quits with no error message
324
- for(let i=0; i<3; i++) {
325
- console.log("tryList", i)
322
+ for(let i=0; i<5; i++) {
326
323
  await this.tryList()
327
- console.log("> conda list", this.installed.conda)
324
+ console.log(`> conda list ${i}`, Array.from(this.installed.conda))
328
325
  if (this.installed.conda.size > 0) {
329
326
  break
330
327
  }
@@ -580,11 +577,11 @@ class Bin {
580
577
  console.log(`## [${x}] Install Step 3: Check Installed`, requirement)
581
578
  let installed = await this._installed(requirement.name, requirement.type)
582
579
  if (installed) {
583
- console.log(`## [${x}] Install Step 4: Installed Successful. Break`)
580
+ console.log(`## [${x}] Install Step 4: Installed Successful. Break`, requirement)
584
581
  break;
585
582
  } else {
586
- console.log(`## [${x}] Install Step 4: Install Unsuccessful. Retrying in 2 seconds`)
587
- await new Promise((reolve, reject) => {
583
+ console.log(`## [${x}] Install Step 4: Install Unsuccessful. Retrying in 2 seconds`, requirement)
584
+ await new Promise((resolve, reject) => {
588
585
  setTimeout(()=> {
589
586
  resolve()
590
587
  }, 2000)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "pinokiod",
3
- "version": "3.2.144",
3
+ "version": "3.2.146",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "scripts": {