pinokiod 3.6.37 → 3.6.39
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 +22 -18
- package/kernel/bin/index.js +19 -17
- package/package.json +1 -1
package/kernel/bin/conda.js
CHANGED
|
@@ -80,7 +80,8 @@ report_errors: false`)
|
|
|
80
80
|
// }
|
|
81
81
|
let pinned_exists = await this.kernel.exists("bin/miniconda/conda-meta")
|
|
82
82
|
if (pinned_exists) {
|
|
83
|
-
await fs.promises.writeFile(this.kernel.path('bin/miniconda/conda-meta/pinned'), `conda ==24.11.3`)
|
|
83
|
+
//await fs.promises.writeFile(this.kernel.path('bin/miniconda/conda-meta/pinned'), `conda ==24.11.3`)
|
|
84
|
+
await fs.promises.writeFile(this.kernel.path('bin/miniconda/conda-meta/pinned'), "")
|
|
84
85
|
//sqlite ==3.47.2`)
|
|
85
86
|
// await fs.promises.writeFile(this.kernel.path('bin/miniconda/conda-meta/pinned'), `conda=24.9.0`)
|
|
86
87
|
// await fs.promises.writeFile(this.kernel.path('bin/miniconda/conda-meta/pinned'), `conda=24.11.2
|
|
@@ -119,10 +120,11 @@ report_errors: false`)
|
|
|
119
120
|
let version = chunks[1]
|
|
120
121
|
conda.add(name)
|
|
121
122
|
if (name === "conda") {
|
|
122
|
-
|
|
123
|
-
if (String(version) === "24.11.
|
|
124
|
-
|
|
125
|
-
|
|
123
|
+
conda_check.conda = true
|
|
124
|
+
// //if (String(version) === "24.11.1") {
|
|
125
|
+
// if (String(version) === "24.11.3") {
|
|
126
|
+
// conda_check.conda = true
|
|
127
|
+
// }
|
|
126
128
|
}
|
|
127
129
|
// check conda-libmamba-solver is up to date
|
|
128
130
|
// sometimes it just fails silently so need to check
|
|
@@ -138,17 +140,17 @@ report_errors: false`)
|
|
|
138
140
|
|
|
139
141
|
// Use sqlite to check if `conda update -y --all` went through successfully
|
|
140
142
|
// sometimes it just fails silently so need to check
|
|
141
|
-
if (name === "sqlite") {
|
|
142
|
-
let coerced = semver.coerce(version)
|
|
143
|
-
let sqlite_requirement = ">=3.47.2"
|
|
144
|
-
if (semver.satisfies(coerced, sqlite_requirement)) {
|
|
145
|
-
console.log("semver satisfied")
|
|
146
|
-
|
|
147
|
-
conda_check.sqlite = true
|
|
148
|
-
} else {
|
|
149
|
-
console.log("semver NOT satisfied")
|
|
150
|
-
}
|
|
151
|
-
}
|
|
143
|
+
// if (name === "sqlite") {
|
|
144
|
+
// let coerced = semver.coerce(version)
|
|
145
|
+
// let sqlite_requirement = ">=3.47.2"
|
|
146
|
+
// if (semver.satisfies(coerced, sqlite_requirement)) {
|
|
147
|
+
// console.log("semver satisfied")
|
|
148
|
+
//
|
|
149
|
+
// conda_check.sqlite = true
|
|
150
|
+
// } else {
|
|
151
|
+
// console.log("semver NOT satisfied")
|
|
152
|
+
// }
|
|
153
|
+
// }
|
|
152
154
|
}
|
|
153
155
|
} else {
|
|
154
156
|
if (/.*name.*version.*build.*channel/i.test(line)) {
|
|
@@ -158,7 +160,8 @@ report_errors: false`)
|
|
|
158
160
|
}
|
|
159
161
|
console.log("> Check", { conda_check, conda })
|
|
160
162
|
this.kernel.bin.installed.conda = conda
|
|
161
|
-
return conda_check.conda && conda_check.mamba && conda_check.sqlite
|
|
163
|
+
//return conda_check.conda && conda_check.mamba && conda_check.sqlite
|
|
164
|
+
return conda_check.conda && conda_check.mamba
|
|
162
165
|
}
|
|
163
166
|
async install(req, ondata) {
|
|
164
167
|
for(let i=0; i<5; i++) {
|
|
@@ -207,7 +210,8 @@ report_errors: false`)
|
|
|
207
210
|
let pinned_exists = await this.kernel.exists("bin/miniconda/conda-meta")
|
|
208
211
|
if (pinned_exists) {
|
|
209
212
|
//await fs.promises.writeFile(this.kernel.path('bin/miniconda/conda-meta/pinned'), `conda=24.11.1`)
|
|
210
|
-
await fs.promises.writeFile(this.kernel.path('bin/miniconda/conda-meta/pinned'), `conda ==24.11.3`)
|
|
213
|
+
//await fs.promises.writeFile(this.kernel.path('bin/miniconda/conda-meta/pinned'), `conda ==24.11.3`)
|
|
214
|
+
await fs.promises.writeFile(this.kernel.path('bin/miniconda/conda-meta/pinned'), "")
|
|
211
215
|
//sqlite ==3.47.2`)
|
|
212
216
|
// await fs.promises.writeFile(this.kernel.path('bin/miniconda/conda-meta/pinned'), `conda=24.9.0`)
|
|
213
217
|
// await fs.promises.writeFile(this.kernel.path('bin/miniconda/conda-meta/pinned'), `conda=24.11.2
|
package/kernel/bin/index.js
CHANGED
|
@@ -335,10 +335,11 @@ class Bin {
|
|
|
335
335
|
conda.add(name)
|
|
336
336
|
conda_versions[name] = version
|
|
337
337
|
if (name === "conda") {
|
|
338
|
-
|
|
339
|
-
if (String(version) === "24.11.
|
|
340
|
-
|
|
341
|
-
|
|
338
|
+
conda_check.conda = true
|
|
339
|
+
// //if (String(version) === "24.11.1") {
|
|
340
|
+
// if (String(version) === "24.11.3") {
|
|
341
|
+
// conda_check.conda = true
|
|
342
|
+
// }
|
|
342
343
|
}
|
|
343
344
|
if (name === "conda-libmamba-solver") {
|
|
344
345
|
//if (String(version) === "24.7.0") {
|
|
@@ -352,18 +353,18 @@ class Bin {
|
|
|
352
353
|
}
|
|
353
354
|
// Use sqlite to check if `conda update -y --all` went through successfully
|
|
354
355
|
// sometimes it just fails silently so need to check
|
|
355
|
-
if (name === "sqlite") {
|
|
356
|
-
let coerced = semver.coerce(version)
|
|
357
|
-
let sqlite_requirement = ">=3.47.2"
|
|
358
|
-
// console.log({ coerced, version, sqlite_requirement })
|
|
359
|
-
if (semver.satisfies(coerced, sqlite_requirement)) {
|
|
360
|
-
console.log("semver satisfied")
|
|
361
|
-
|
|
362
|
-
conda_check.sqlite = true
|
|
363
|
-
} else {
|
|
364
|
-
console.log("semver NOT satisfied")
|
|
365
|
-
}
|
|
366
|
-
}
|
|
356
|
+
// if (name === "sqlite") {
|
|
357
|
+
// let coerced = semver.coerce(version)
|
|
358
|
+
// let sqlite_requirement = ">=3.47.2"
|
|
359
|
+
// // console.log({ coerced, version, sqlite_requirement })
|
|
360
|
+
// if (semver.satisfies(coerced, sqlite_requirement)) {
|
|
361
|
+
// console.log("semver satisfied")
|
|
362
|
+
//
|
|
363
|
+
// conda_check.sqlite = true
|
|
364
|
+
// } else {
|
|
365
|
+
// console.log("semver NOT satisfied")
|
|
366
|
+
// }
|
|
367
|
+
// }
|
|
367
368
|
}
|
|
368
369
|
} else {
|
|
369
370
|
if (/.*name.*version.*build.*channel/i.test(line)) {
|
|
@@ -373,7 +374,8 @@ class Bin {
|
|
|
373
374
|
}
|
|
374
375
|
|
|
375
376
|
console.log({ conda_check })
|
|
376
|
-
if (conda_check.conda && conda_check.mamba && conda_check.sqlite) {
|
|
377
|
+
//if (conda_check.conda && conda_check.mamba && conda_check.sqlite) {
|
|
378
|
+
if (conda_check.conda && conda_check.mamba) {
|
|
377
379
|
this.correct_conda = true
|
|
378
380
|
}
|
|
379
381
|
}
|