pinokiod 3.6.19 → 3.6.21
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 +20 -19
- package/kernel/bin/ffmpeg.js +2 -2
- package/kernel/bin/index.js +12 -13
- package/package.json +1 -1
package/kernel/bin/conda.js
CHANGED
|
@@ -79,14 +79,15 @@ report_errors: false`)
|
|
|
79
79
|
//report_errors: false`)
|
|
80
80
|
// }
|
|
81
81
|
let pinned_exists = await this.kernel.exists("bin/miniconda/conda-meta")
|
|
82
|
-
|
|
83
|
-
await fs.promises.writeFile(this.kernel.path('bin/miniconda/conda-meta/pinned'), `conda ==24.11.3
|
|
82
|
+
if (pinned_exists) {
|
|
83
|
+
await fs.promises.writeFile(this.kernel.path('bin/miniconda/conda-meta/pinned'), `conda ==24.11.3
|
|
84
|
+
sqlite ==3.47.2`)
|
|
84
85
|
// await fs.promises.writeFile(this.kernel.path('bin/miniconda/conda-meta/pinned'), `conda=24.9.0`)
|
|
85
86
|
// await fs.promises.writeFile(this.kernel.path('bin/miniconda/conda-meta/pinned'), `conda=24.11.2
|
|
86
87
|
//conda-libmamba-solver=24.11.1`)
|
|
87
88
|
// await fs.promises.writeFile(this.kernel.path('bin/miniconda/conda-meta/pinned'), `conda=24.7.1
|
|
88
89
|
//conda-libmamba-solver=24.7.0`)
|
|
89
|
-
|
|
90
|
+
}
|
|
90
91
|
}
|
|
91
92
|
}
|
|
92
93
|
// async init() {
|
|
@@ -137,16 +138,16 @@ report_errors: false`)
|
|
|
137
138
|
|
|
138
139
|
// Use sqlite to check if `conda update -y --all` went through successfully
|
|
139
140
|
// sometimes it just fails silently so need to check
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
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
|
+
conda_check.sqlite = true
|
|
147
|
+
} else {
|
|
148
|
+
console.log("semver NOT satisfied")
|
|
149
|
+
}
|
|
150
|
+
}
|
|
150
151
|
}
|
|
151
152
|
} else {
|
|
152
153
|
if (/.*name.*version.*build.*channel/i.test(line)) {
|
|
@@ -156,8 +157,7 @@ report_errors: false`)
|
|
|
156
157
|
}
|
|
157
158
|
console.log("> Check", { conda_check, conda })
|
|
158
159
|
this.kernel.bin.installed.conda = conda
|
|
159
|
-
return conda_check.conda && conda_check.mamba
|
|
160
|
-
//return conda_check.conda && conda_check.mamba && conda_check.sqlite
|
|
160
|
+
return conda_check.conda && conda_check.mamba && conda_check.sqlite
|
|
161
161
|
}
|
|
162
162
|
async install(req, ondata) {
|
|
163
163
|
for(let i=0; i<5; i++) {
|
|
@@ -204,15 +204,16 @@ report_errors: false`)
|
|
|
204
204
|
|
|
205
205
|
// set pinned
|
|
206
206
|
let pinned_exists = await this.kernel.exists("bin/miniconda/conda-meta")
|
|
207
|
-
|
|
207
|
+
if (pinned_exists) {
|
|
208
208
|
//await fs.promises.writeFile(this.kernel.path('bin/miniconda/conda-meta/pinned'), `conda=24.11.1`)
|
|
209
|
-
await fs.promises.writeFile(this.kernel.path('bin/miniconda/conda-meta/pinned'), `conda ==24.11.3
|
|
209
|
+
await fs.promises.writeFile(this.kernel.path('bin/miniconda/conda-meta/pinned'), `conda ==24.11.3
|
|
210
|
+
sqlite ==3.47.2`)
|
|
210
211
|
// await fs.promises.writeFile(this.kernel.path('bin/miniconda/conda-meta/pinned'), `conda=24.9.0`)
|
|
211
212
|
// await fs.promises.writeFile(this.kernel.path('bin/miniconda/conda-meta/pinned'), `conda=24.11.2
|
|
212
213
|
//conda-libmamba-solver=24.11.1`)
|
|
213
214
|
// await fs.promises.writeFile(this.kernel.path('bin/miniconda/conda-meta/pinned'), `conda=24.7.1
|
|
214
215
|
//conda-libmamba-solver=24.7.0`)
|
|
215
|
-
|
|
216
|
+
}
|
|
216
217
|
//// await this.activate()
|
|
217
218
|
// await fs.promises.writeFile(this.kernel.bin.path('miniconda/condarc'), `channels:
|
|
218
219
|
// - conda-forge
|
|
@@ -249,7 +250,7 @@ report_errors: false`)
|
|
|
249
250
|
//"conda install -y conda-libmamba-solver=24.11.1 conda=24.7.1",
|
|
250
251
|
//"conda install -y conda-libmamba-solver=24.11.1 conda=24.11.2",
|
|
251
252
|
//"conda update -y conda-libmamba-solver",
|
|
252
|
-
"conda update -y conda",// -vvv --debug",
|
|
253
|
+
"conda update -y conda sqlite",// -vvv --debug",
|
|
253
254
|
"conda update -y --all",// -vvv --debug",
|
|
254
255
|
// "python -m pip install --upgrade pip setuptools wheel",
|
|
255
256
|
// "python -m ensurepip --upgrade",
|
package/kernel/bin/ffmpeg.js
CHANGED
|
@@ -17,8 +17,8 @@ class Ffmpeg {
|
|
|
17
17
|
}, ondata)
|
|
18
18
|
}
|
|
19
19
|
async installed() {
|
|
20
|
-
return this.kernel.bin.installed.conda.has("ffmpeg") && this.kernel.bin.installed.conda_versions.sqlite === "3.48.0"
|
|
21
|
-
|
|
20
|
+
//return this.kernel.bin.installed.conda.has("ffmpeg") && this.kernel.bin.installed.conda_versions.sqlite === "3.48.0"
|
|
21
|
+
return this.kernel.bin.installed.conda.has("ffmpeg")
|
|
22
22
|
}
|
|
23
23
|
async uninstall(req, ondata) {
|
|
24
24
|
await this.kernel.bin.exec({
|
package/kernel/bin/index.js
CHANGED
|
@@ -308,17 +308,17 @@ class Bin {
|
|
|
308
308
|
}
|
|
309
309
|
// Use sqlite to check if `conda update -y --all` went through successfully
|
|
310
310
|
// sometimes it just fails silently so need to check
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
311
|
+
if (name === "sqlite") {
|
|
312
|
+
let coerced = semver.coerce(version)
|
|
313
|
+
let sqlite_requirement = ">=3.47.2"
|
|
314
|
+
// console.log({ coerced, version, sqlite_requirement })
|
|
315
|
+
if (semver.satisfies(coerced, sqlite_requirement)) {
|
|
316
|
+
console.log("semver satisfied")
|
|
317
|
+
conda_check.sqlite = true
|
|
318
|
+
} else {
|
|
319
|
+
console.log("semver NOT satisfied")
|
|
320
|
+
}
|
|
321
|
+
}
|
|
322
322
|
}
|
|
323
323
|
} else {
|
|
324
324
|
if (/.*name.*version.*build.*channel/i.test(line)) {
|
|
@@ -328,8 +328,7 @@ class Bin {
|
|
|
328
328
|
}
|
|
329
329
|
|
|
330
330
|
console.log({ conda_check })
|
|
331
|
-
|
|
332
|
-
if (conda_check.conda && conda_check.mamba) {
|
|
331
|
+
if (conda_check.conda && conda_check.mamba && conda_check.sqlite) {
|
|
333
332
|
this.correct_conda = true
|
|
334
333
|
}
|
|
335
334
|
}
|