pinokiod 3.2.95 → 3.2.96
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/aria2.js +6 -1
- package/kernel/bin/conda.js +2 -1
- package/kernel/bin/cuda.js +16 -4
- package/kernel/bin/ffmpeg.js +4 -1
- package/kernel/bin/git.js +4 -1
- package/kernel/bin/huggingface.js +4 -1
- package/kernel/bin/index.js +19 -1
- package/kernel/bin/llvm.js +4 -1
- package/kernel/bin/node.js +4 -1
- package/kernel/bin/uv.js +4 -1
- package/kernel/bin/zip.js +4 -1
- package/package.json +1 -1
package/kernel/bin/aria2.js
CHANGED
|
@@ -17,7 +17,12 @@ class Aria2 {
|
|
|
17
17
|
await this.kernel.bin.download(url, dest, ondata)
|
|
18
18
|
await this.kernel.bin.unzip(dest, "aria2", ondata)
|
|
19
19
|
} else {
|
|
20
|
-
await this.kernel.bin.exec({
|
|
20
|
+
await this.kernel.bin.exec({
|
|
21
|
+
message: [
|
|
22
|
+
"conda clean -y --all",
|
|
23
|
+
"conda install -y -c conda-forge aria2"
|
|
24
|
+
]
|
|
25
|
+
}, ondata)
|
|
21
26
|
}
|
|
22
27
|
}
|
|
23
28
|
async installed() {
|
package/kernel/bin/conda.js
CHANGED
|
@@ -127,6 +127,7 @@ conda-libmamba-solver=24.7.0`)
|
|
|
127
127
|
// "conda install libsqlite --force-reinstall -y",
|
|
128
128
|
// `conda config --file ${this.kernel.path('condarc')} --set auto_update_conda False`,
|
|
129
129
|
"conda install -y conda-libmamba-solver=24.7.0 conda=24.7.1",
|
|
130
|
+
"conda clean -y --all",
|
|
130
131
|
"conda update -y --all",
|
|
131
132
|
"conda clean -y --all",
|
|
132
133
|
// "conda update -y conda",
|
|
@@ -207,7 +208,7 @@ conda-libmamba-solver=24.7.0`)
|
|
|
207
208
|
let e
|
|
208
209
|
for(let p of this.paths[this.kernel.platform]) {
|
|
209
210
|
let e = await this.kernel.bin.exists(p)
|
|
210
|
-
if (e) return true
|
|
211
|
+
if (e && this.kernel.bin.correct_conda) return true
|
|
211
212
|
}
|
|
212
213
|
return false
|
|
213
214
|
}
|
package/kernel/bin/cuda.js
CHANGED
|
@@ -2,14 +2,20 @@ class Cuda {
|
|
|
2
2
|
async install(req, ondata) {
|
|
3
3
|
if (this.kernel.platform === "win32") {
|
|
4
4
|
await this.kernel.bin.exec({
|
|
5
|
-
message:
|
|
5
|
+
message: [
|
|
6
|
+
"conda clean -y --all",
|
|
7
|
+
"conda clean -y -all && conda install -y cudnn libzlib-wapi -c conda-forge",
|
|
8
|
+
]
|
|
6
9
|
// conda: {
|
|
7
10
|
// name: "base",
|
|
8
11
|
// activate: "minimal"
|
|
9
12
|
// }
|
|
10
13
|
}, ondata)
|
|
11
14
|
await this.kernel.bin.exec({
|
|
12
|
-
message:
|
|
15
|
+
message: [
|
|
16
|
+
"conda clean -y --all",
|
|
17
|
+
"conda clean -y -all && conda install -y cuda -c nvidia/label/cuda-12.1.0",
|
|
18
|
+
]
|
|
13
19
|
// conda: {
|
|
14
20
|
// name: "base",
|
|
15
21
|
// activate: "minimal"
|
|
@@ -17,14 +23,20 @@ class Cuda {
|
|
|
17
23
|
}, ondata)
|
|
18
24
|
} else {
|
|
19
25
|
await this.kernel.bin.exec({
|
|
20
|
-
message:
|
|
26
|
+
message: [
|
|
27
|
+
"conda clean -y --all",
|
|
28
|
+
"conda install -y cudnn -c conda-forge",
|
|
29
|
+
]
|
|
21
30
|
// conda: {
|
|
22
31
|
// name: "base",
|
|
23
32
|
// activate: "minimal"
|
|
24
33
|
// }
|
|
25
34
|
}, ondata)
|
|
26
35
|
await this.kernel.bin.exec({
|
|
27
|
-
message:
|
|
36
|
+
message: [
|
|
37
|
+
"conda clean -y --all",
|
|
38
|
+
"conda install -y cuda -c nvidia/label/cuda-12.1.0",
|
|
39
|
+
]
|
|
28
40
|
// conda: {
|
|
29
41
|
// name: "base",
|
|
30
42
|
// activate: "minimal"
|
package/kernel/bin/ffmpeg.js
CHANGED
|
@@ -5,7 +5,10 @@ const decompress = require('decompress');
|
|
|
5
5
|
class Ffmpeg {
|
|
6
6
|
async install(req, ondata) {
|
|
7
7
|
await this.kernel.bin.exec({
|
|
8
|
-
|
|
8
|
+
message: [
|
|
9
|
+
"conda clean -y --all",
|
|
10
|
+
"conda install -y -c conda-forge ffmpeg",
|
|
11
|
+
]
|
|
9
12
|
// conda: {
|
|
10
13
|
// name: "base",
|
|
11
14
|
// activate: "minimal"
|
package/kernel/bin/git.js
CHANGED
|
@@ -6,7 +6,10 @@ const path = require("path")
|
|
|
6
6
|
class Git {
|
|
7
7
|
async install(req, ondata) {
|
|
8
8
|
await this.kernel.bin.exec({
|
|
9
|
-
|
|
9
|
+
message: [
|
|
10
|
+
"conda clean -y --all",
|
|
11
|
+
"conda install --no-shortcuts -y -c conda-forge git git-lfs",
|
|
12
|
+
]
|
|
10
13
|
// conda: {
|
|
11
14
|
// name: "base",
|
|
12
15
|
// activate: "minimal"
|
|
@@ -1,7 +1,10 @@
|
|
|
1
1
|
class Huggingface {
|
|
2
2
|
async install(req, ondata) {
|
|
3
3
|
await this.kernel.bin.exec({
|
|
4
|
-
|
|
4
|
+
message: [
|
|
5
|
+
"conda clean -y --all",
|
|
6
|
+
"conda install -y -c conda-forge huggingface_hub",
|
|
7
|
+
]
|
|
5
8
|
// conda: {
|
|
6
9
|
// name: "base",
|
|
7
10
|
// activate: "minimal"
|
package/kernel/bin/index.js
CHANGED
|
@@ -252,6 +252,7 @@ class Bin {
|
|
|
252
252
|
let start
|
|
253
253
|
let res
|
|
254
254
|
let lines
|
|
255
|
+
let conda_check = {}
|
|
255
256
|
if (conda_exists) {
|
|
256
257
|
res = await this.exec({ message: `conda list` }, (stream) => {
|
|
257
258
|
// console.log("conda list check", { stream })
|
|
@@ -263,7 +264,19 @@ class Bin {
|
|
|
263
264
|
if (start) {
|
|
264
265
|
let chunks = line.split(/\s+/).filter(x => x)
|
|
265
266
|
if (chunks.length > 1) {
|
|
266
|
-
|
|
267
|
+
let name = chunks[0]
|
|
268
|
+
let version = chunks[1]
|
|
269
|
+
conda.add(name)
|
|
270
|
+
if (name === "conda") {
|
|
271
|
+
if (String(version) === "24.7.1") {
|
|
272
|
+
conda_check.conda = true
|
|
273
|
+
}
|
|
274
|
+
}
|
|
275
|
+
if (name === "conda-libmamba-solver") {
|
|
276
|
+
if (String(version) === "24.7.0") {
|
|
277
|
+
conda_check.mamba = true
|
|
278
|
+
}
|
|
279
|
+
}
|
|
267
280
|
}
|
|
268
281
|
} else {
|
|
269
282
|
if (/name.*version.*build.*channel/i.test(line)) {
|
|
@@ -273,6 +286,11 @@ class Bin {
|
|
|
273
286
|
}
|
|
274
287
|
}
|
|
275
288
|
|
|
289
|
+
console.log({ conda_check })
|
|
290
|
+
if (conda_check.conda && conda_check.mamba) {
|
|
291
|
+
this.correct_conda = true
|
|
292
|
+
}
|
|
293
|
+
|
|
276
294
|
this.installed.conda = conda
|
|
277
295
|
|
|
278
296
|
// 2. pip
|
package/kernel/bin/llvm.js
CHANGED
|
@@ -4,7 +4,10 @@ class LLVM {
|
|
|
4
4
|
await bin.exec({ conda: { skip: true }, message: "brew install llvm" }, ondata)
|
|
5
5
|
} else {
|
|
6
6
|
await bin.exec({
|
|
7
|
-
message:
|
|
7
|
+
message: [
|
|
8
|
+
"conda clean -y --all",
|
|
9
|
+
"conda install -y -c conda-forge llvm",
|
|
10
|
+
]
|
|
8
11
|
// conda: {
|
|
9
12
|
// name: "base",
|
|
10
13
|
// activate: "minimal"
|
package/kernel/bin/node.js
CHANGED
|
@@ -6,7 +6,10 @@ class Node {
|
|
|
6
6
|
async install(req, ondata) {
|
|
7
7
|
await this.kernel.bin.exec({
|
|
8
8
|
//message: "conda install -y nodejs=22.12.0 -c conda-forge"
|
|
9
|
-
message:
|
|
9
|
+
message: [
|
|
10
|
+
"conda clean -y --all",
|
|
11
|
+
"conda install -y nodejs=20.17.0 -c conda-forge",
|
|
12
|
+
]
|
|
10
13
|
// conda: {
|
|
11
14
|
// name: "base",
|
|
12
15
|
// activate: "minimal"
|
package/kernel/bin/uv.js
CHANGED
|
@@ -5,7 +5,10 @@ const decompress = require('decompress');
|
|
|
5
5
|
class UV {
|
|
6
6
|
async install(req, ondata) {
|
|
7
7
|
await this.kernel.bin.exec({
|
|
8
|
-
message:
|
|
8
|
+
message: [
|
|
9
|
+
"conda clean -y --all",
|
|
10
|
+
"conda install -y -c conda-forge uv",
|
|
11
|
+
]
|
|
9
12
|
// conda: {
|
|
10
13
|
// name: "base",
|
|
11
14
|
// activate: "minimal"
|
package/kernel/bin/zip.js
CHANGED