pinokiod 3.6.17 → 3.6.19

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.
@@ -80,8 +80,7 @@ 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
84
- sqlite ==3.48.0`)
83
+ await fs.promises.writeFile(this.kernel.path('bin/miniconda/conda-meta/pinned'), `conda ==24.11.3`)
85
84
  // await fs.promises.writeFile(this.kernel.path('bin/miniconda/conda-meta/pinned'), `conda=24.9.0`)
86
85
  // await fs.promises.writeFile(this.kernel.path('bin/miniconda/conda-meta/pinned'), `conda=24.11.2
87
86
  //conda-libmamba-solver=24.11.1`)
@@ -138,16 +137,16 @@ sqlite ==3.48.0`)
138
137
 
139
138
  // Use sqlite to check if `conda update -y --all` went through successfully
140
139
  // 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
- conda_check.sqlite = true
147
- } else {
148
- console.log("semver NOT satisfied")
149
- }
150
- }
140
+ // if (name === "sqlite") {
141
+ // let coerced = semver.coerce(version)
142
+ // let sqlite_requirement = ">=3.47.2"
143
+ // if (semver.satisfies(coerced, sqlite_requirement)) {
144
+ // console.log("semver satisfied")
145
+ // conda_check.sqlite = true
146
+ // } else {
147
+ // console.log("semver NOT satisfied")
148
+ // }
149
+ // }
151
150
  }
152
151
  } else {
153
152
  if (/.*name.*version.*build.*channel/i.test(line)) {
@@ -157,7 +156,8 @@ sqlite ==3.48.0`)
157
156
  }
158
157
  console.log("> Check", { conda_check, conda })
159
158
  this.kernel.bin.installed.conda = conda
160
- return conda_check.conda && conda_check.mamba && conda_check.sqlite
159
+ return conda_check.conda && conda_check.mamba
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++) {
@@ -206,8 +206,7 @@ sqlite ==3.48.0`)
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
210
- sqlite ==3.48.0`)
209
+ await fs.promises.writeFile(this.kernel.path('bin/miniconda/conda-meta/pinned'), `conda ==24.11.3`)
211
210
  // await fs.promises.writeFile(this.kernel.path('bin/miniconda/conda-meta/pinned'), `conda=24.9.0`)
212
211
  // await fs.promises.writeFile(this.kernel.path('bin/miniconda/conda-meta/pinned'), `conda=24.11.2
213
212
  //conda-libmamba-solver=24.11.1`)
@@ -250,7 +249,6 @@ sqlite ==3.48.0`)
250
249
  //"conda install -y conda-libmamba-solver=24.11.1 conda=24.7.1",
251
250
  //"conda install -y conda-libmamba-solver=24.11.1 conda=24.11.2",
252
251
  //"conda update -y conda-libmamba-solver",
253
- "conda install -y sqlite=3.48.0 -c conda-forge",
254
252
  "conda update -y conda",// -vvv --debug",
255
253
  "conda update -y --all",// -vvv --debug",
256
254
  // "python -m pip install --upgrade pip setuptools wheel",
@@ -7,7 +7,8 @@ class Ffmpeg {
7
7
  await this.kernel.bin.exec({
8
8
  message: [
9
9
  "conda clean -y --all",
10
- "conda install -y -c conda-forge ffmpeg=5.1.2",
10
+ //"conda install -y -c conda-forge ffmpeg=5.1.2",
11
+ "conda install -y -c conda-forge ffmpeg sqlite==3.48.0",
11
12
  ]
12
13
  // conda: {
13
14
  // name: "base",
@@ -16,7 +17,8 @@ class Ffmpeg {
16
17
  }, ondata)
17
18
  }
18
19
  async installed() {
19
- return this.kernel.bin.installed.conda.has("ffmpeg") && this.kernel.bin.installed.conda_versions.ffmpeg === "5.1.2"
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")
20
22
  }
21
23
  async uninstall(req, ondata) {
22
24
  await this.kernel.bin.exec({
@@ -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
- if (name === "sqlite") {
312
- let coerced = semver.coerce(version)
313
- let sqlite_requirement = "==3.48.0"
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
- }
311
+ // if (name === "sqlite") {
312
+ // let coerced = semver.coerce(version)
313
+ // let sqlite_requirement = "==3.48.0"
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,7 +328,8 @@ class Bin {
328
328
  }
329
329
 
330
330
  console.log({ conda_check })
331
- if (conda_check.conda && conda_check.mamba && conda_check.sqlite) {
331
+ //if (conda_check.conda && conda_check.mamba && conda_check.sqlite) {
332
+ if (conda_check.conda && conda_check.mamba) {
332
333
  this.correct_conda = true
333
334
  }
334
335
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "pinokiod",
3
- "version": "3.6.17",
3
+ "version": "3.6.19",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "scripts": {