pinokiod 3.6.40 → 3.6.42
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 +27 -17
- package/kernel/bin/index.js +7 -4
- package/package.json +1 -1
package/kernel/bin/conda.js
CHANGED
|
@@ -90,7 +90,8 @@ report_errors: false`)
|
|
|
90
90
|
let pinned_exists = await this.kernel.exists("bin/miniconda/conda-meta")
|
|
91
91
|
if (pinned_exists) {
|
|
92
92
|
//await fs.promises.writeFile(this.kernel.path('bin/miniconda/conda-meta/pinned'), `conda ==24.11.3`)
|
|
93
|
-
await fs.promises.writeFile(this.kernel.path('bin/miniconda/conda-meta/pinned'), "")
|
|
93
|
+
await fs.promises.writeFile(this.kernel.path('bin/miniconda/conda-meta/pinned'), "sqlite ==3.47.2")
|
|
94
|
+
// await fs.promises.writeFile(this.kernel.path('bin/miniconda/conda-meta/pinned'), "")
|
|
94
95
|
//sqlite ==3.47.2`)
|
|
95
96
|
// await fs.promises.writeFile(this.kernel.path('bin/miniconda/conda-meta/pinned'), `conda=24.9.0`)
|
|
96
97
|
// await fs.promises.writeFile(this.kernel.path('bin/miniconda/conda-meta/pinned'), `conda=24.11.2
|
|
@@ -149,17 +150,20 @@ report_errors: false`)
|
|
|
149
150
|
|
|
150
151
|
// Use sqlite to check if `conda update -y --all` went through successfully
|
|
151
152
|
// sometimes it just fails silently so need to check
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
//
|
|
157
|
-
//
|
|
158
|
-
//
|
|
159
|
-
//
|
|
160
|
-
|
|
161
|
-
//
|
|
162
|
-
//
|
|
153
|
+
if (name === "sqlite") {
|
|
154
|
+
if (String(version) === "3.47.2") {
|
|
155
|
+
conda_check.sqlite = true
|
|
156
|
+
}
|
|
157
|
+
//let coerced = semver.coerce(version)
|
|
158
|
+
//let sqlite_requirement = ">=3.47.2"
|
|
159
|
+
//if (semver.satisfies(coerced, sqlite_requirement)) {
|
|
160
|
+
// console.log("semver satisfied")
|
|
161
|
+
|
|
162
|
+
// conda_check.sqlite = true
|
|
163
|
+
//} else {
|
|
164
|
+
// console.log("semver NOT satisfied")
|
|
165
|
+
//}
|
|
166
|
+
}
|
|
163
167
|
}
|
|
164
168
|
} else {
|
|
165
169
|
if (/.*name.*version.*build.*channel/i.test(line)) {
|
|
@@ -169,8 +173,8 @@ report_errors: false`)
|
|
|
169
173
|
}
|
|
170
174
|
console.log("> Check", { conda_check, conda })
|
|
171
175
|
this.kernel.bin.installed.conda = conda
|
|
172
|
-
|
|
173
|
-
return conda_check.conda && conda_check.mamba
|
|
176
|
+
return conda_check.conda && conda_check.mamba && conda_check.sqlite
|
|
177
|
+
//return conda_check.conda && conda_check.mamba
|
|
174
178
|
}
|
|
175
179
|
async install(req, ondata) {
|
|
176
180
|
for(let i=0; i<5; i++) {
|
|
@@ -220,7 +224,8 @@ report_errors: false`)
|
|
|
220
224
|
if (pinned_exists) {
|
|
221
225
|
//await fs.promises.writeFile(this.kernel.path('bin/miniconda/conda-meta/pinned'), `conda=24.11.1`)
|
|
222
226
|
//await fs.promises.writeFile(this.kernel.path('bin/miniconda/conda-meta/pinned'), `conda ==24.11.3`)
|
|
223
|
-
await fs.promises.writeFile(this.kernel.path('bin/miniconda/conda-meta/pinned'), "")
|
|
227
|
+
await fs.promises.writeFile(this.kernel.path('bin/miniconda/conda-meta/pinned'), "sqlite ==3.47.2")
|
|
228
|
+
//await fs.promises.writeFile(this.kernel.path('bin/miniconda/conda-meta/pinned'), "")
|
|
224
229
|
//sqlite ==3.47.2`)
|
|
225
230
|
// await fs.promises.writeFile(this.kernel.path('bin/miniconda/conda-meta/pinned'), `conda=24.9.0`)
|
|
226
231
|
// await fs.promises.writeFile(this.kernel.path('bin/miniconda/conda-meta/pinned'), `conda=24.11.2
|
|
@@ -244,6 +249,7 @@ report_errors: false`)
|
|
|
244
249
|
let cmds = [
|
|
245
250
|
//"conda clean -y --index-cache",
|
|
246
251
|
"conda clean -y --all",
|
|
252
|
+
"conda install -y -c conda-forge sqlite=3.47.2",
|
|
247
253
|
|
|
248
254
|
// `conda config --file ${this.kernel.path('condarc')} --set remote_connect_timeout_secs 20`,
|
|
249
255
|
// `conda config --file ${this.kernel.path('condarc')} --set remote_read_timeout_secs 300`,
|
|
@@ -265,8 +271,12 @@ report_errors: false`)
|
|
|
265
271
|
//"conda install -y conda-libmamba-solver=24.11.1 conda=24.11.2",
|
|
266
272
|
//"conda update -y conda-libmamba-solver",
|
|
267
273
|
//"conda update -y conda sqlite",// -vvv --debug",
|
|
268
|
-
|
|
269
|
-
|
|
274
|
+
|
|
275
|
+
|
|
276
|
+
// "conda update -y conda",// -vvv --debug",
|
|
277
|
+
// "conda update -y --all",// -vvv --debug",
|
|
278
|
+
|
|
279
|
+
|
|
270
280
|
// "python -m pip install --upgrade pip setuptools wheel",
|
|
271
281
|
// "python -m ensurepip --upgrade",
|
|
272
282
|
// "conda update -y conda",
|
package/kernel/bin/index.js
CHANGED
|
@@ -353,7 +353,10 @@ class Bin {
|
|
|
353
353
|
}
|
|
354
354
|
// Use sqlite to check if `conda update -y --all` went through successfully
|
|
355
355
|
// sometimes it just fails silently so need to check
|
|
356
|
-
|
|
356
|
+
if (name === "sqlite") {
|
|
357
|
+
if (String(version) === "3.47.2") {
|
|
358
|
+
conda_check.sqlite = true
|
|
359
|
+
}
|
|
357
360
|
// let coerced = semver.coerce(version)
|
|
358
361
|
// let sqlite_requirement = ">=3.47.2"
|
|
359
362
|
// // console.log({ coerced, version, sqlite_requirement })
|
|
@@ -364,7 +367,7 @@ class Bin {
|
|
|
364
367
|
// } else {
|
|
365
368
|
// console.log("semver NOT satisfied")
|
|
366
369
|
// }
|
|
367
|
-
|
|
370
|
+
}
|
|
368
371
|
}
|
|
369
372
|
} else {
|
|
370
373
|
if (/.*name.*version.*build.*channel/i.test(line)) {
|
|
@@ -374,8 +377,8 @@ class Bin {
|
|
|
374
377
|
}
|
|
375
378
|
|
|
376
379
|
console.log({ conda_check })
|
|
377
|
-
|
|
378
|
-
if (conda_check.conda && conda_check.mamba) {
|
|
380
|
+
if (conda_check.conda && conda_check.mamba && conda_check.sqlite) {
|
|
381
|
+
//if (conda_check.conda && conda_check.mamba) {
|
|
379
382
|
this.correct_conda = true
|
|
380
383
|
}
|
|
381
384
|
}
|