pinokiod 3.2.82 → 3.2.84
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 +1 -1
- package/kernel/bin/brew.js +40 -11
- package/kernel/bin/conda.js +4 -4
- package/kernel/bin/cuda.js +16 -16
- package/kernel/bin/ffmpeg.js +4 -4
- package/kernel/bin/git.js +4 -4
- package/kernel/bin/huggingface.js +4 -4
- package/kernel/bin/llvm.js +4 -4
- package/kernel/bin/node.js +4 -4
- package/kernel/bin/uv.js +4 -4
- package/kernel/bin/zip.js +4 -4
- package/package.json +1 -1
package/kernel/bin/aria2.js
CHANGED
|
@@ -17,7 +17,7 @@ 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({ message: "conda install -y -c conda-forge aria2"
|
|
20
|
+
await this.kernel.bin.exec({ message: "conda install -y -c conda-forge aria2" }, ondata)
|
|
21
21
|
}
|
|
22
22
|
}
|
|
23
23
|
async installed() {
|
package/kernel/bin/brew.js
CHANGED
|
@@ -19,19 +19,48 @@ class Brew {
|
|
|
19
19
|
await this.kernel.bin.rm("Homebrew.zip", ondata)
|
|
20
20
|
|
|
21
21
|
if (this.kernel.platform === "darwin") {
|
|
22
|
-
|
|
23
|
-
|
|
22
|
+
// command line tools
|
|
23
|
+
let e4;
|
|
24
|
+
let result = await this.kernel.bin.exec({ message: "xcode-select --version" }, (stream) => { })
|
|
25
|
+
if (result && result.stdout) {
|
|
26
|
+
e4 = /xcode-select version ([0-9]+)/gi.exec(result.stdout)
|
|
27
|
+
if (e4.length > 1) {
|
|
28
|
+
let version = Number(e4[1])
|
|
29
|
+
console.log("xcode-select version", version)
|
|
30
|
+
if (version >= 2349) {
|
|
31
|
+
e4 = true
|
|
32
|
+
} else {
|
|
33
|
+
e4 = false
|
|
34
|
+
}
|
|
35
|
+
} else {
|
|
36
|
+
e4 = false
|
|
37
|
+
}
|
|
38
|
+
} else {
|
|
39
|
+
e4 = false
|
|
40
|
+
}
|
|
24
41
|
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
42
|
+
console.log("> e4", e4)
|
|
43
|
+
|
|
44
|
+
if (!e4) {
|
|
45
|
+
console.log("install the latest xcode build tools")
|
|
46
|
+
// not installed or not installed properly
|
|
47
|
+
// install xcode build tools
|
|
48
|
+
await this.kernel.bin.exec({ sudo: true, conda: { skip: true }, message: "rm -rf /Library/Developer/CommandLineTools" }, (stream) => { ondata(stream) })
|
|
49
|
+
let sh_path = path.resolve(this.kernel.homedir, "xcode.sh")
|
|
50
|
+
let src_path = path.resolve(__dirname, "xcode.sh")
|
|
51
|
+
console.log({ sh_path, src_path })
|
|
52
|
+
let sh = await fs.promises.readFile(src_path, "utf8")
|
|
53
|
+
console.log({ sh })
|
|
54
|
+
await fs.promises.writeFile(sh_path, sh)
|
|
55
|
+
await this.kernel.bin.exec({ message: "bash ./xcode.sh", path: this.kernel.homedir, conda: { skip: true }}, (stream) => { ondata(stream) })
|
|
56
|
+
|
|
57
|
+
ondata({ raw: "installing xcode-select. please approve the xcode-select install dialog and install before proceeding...\r\n" })
|
|
58
|
+
await this.kernel.bin.exec({ message: "xcode-select --install", conda: { skip: true } }, (stream) => { ondata(stream) })
|
|
59
|
+
|
|
60
|
+
} else {
|
|
61
|
+
console.log("no need to install xcode build tools")
|
|
62
|
+
}
|
|
32
63
|
|
|
33
|
-
ondata({ raw: "installing xcode-select. please approve the xcode-select install dialog and install before proceeding...\r\n" })
|
|
34
|
-
await this.kernel.bin.exec({ message: "xcode-select --install", conda: { skip: true } }, (stream) => { ondata(stream) })
|
|
35
64
|
|
|
36
65
|
//ondata({ raw: "Setting CommandLineTools path...\r\n" })
|
|
37
66
|
//await this.kernel.bin.exec({ sudo: true, message: "xcode-select -switch /Library/Developer/CommandLineTools" }, (stream) => { ondata(stream) })
|
package/kernel/bin/conda.js
CHANGED
|
@@ -133,10 +133,10 @@ conda-libmamba-solver=24.7.0`)
|
|
|
133
133
|
|
|
134
134
|
await this.kernel.bin.exec({
|
|
135
135
|
message: cmds,
|
|
136
|
-
conda: {
|
|
137
|
-
name: "base",
|
|
138
|
-
activate: "minimal"
|
|
139
|
-
}
|
|
136
|
+
// conda: {
|
|
137
|
+
// name: "base",
|
|
138
|
+
// activate: "minimal"
|
|
139
|
+
// }
|
|
140
140
|
// [
|
|
141
141
|
// (this.kernel.platform === 'win32' ? 'conda_hook' : `eval "$(conda shell.bash hook)"`),
|
|
142
142
|
// (this.platform === 'win32' ? `activate base` : `conda activate base`),
|
package/kernel/bin/cuda.js
CHANGED
|
@@ -3,32 +3,32 @@ class Cuda {
|
|
|
3
3
|
if (this.kernel.platform === "win32") {
|
|
4
4
|
await this.kernel.bin.exec({
|
|
5
5
|
message: "conda install -y cudnn libzlib-wapi -c conda-forge",
|
|
6
|
-
conda: {
|
|
7
|
-
name: "base",
|
|
8
|
-
activate: "minimal"
|
|
9
|
-
}
|
|
6
|
+
// conda: {
|
|
7
|
+
// name: "base",
|
|
8
|
+
// activate: "minimal"
|
|
9
|
+
// }
|
|
10
10
|
}, ondata)
|
|
11
11
|
await this.kernel.bin.exec({
|
|
12
12
|
message: "conda install -y cuda -c nvidia/label/cuda-12.1.0",
|
|
13
|
-
conda: {
|
|
14
|
-
name: "base",
|
|
15
|
-
activate: "minimal"
|
|
16
|
-
}
|
|
13
|
+
// conda: {
|
|
14
|
+
// name: "base",
|
|
15
|
+
// activate: "minimal"
|
|
16
|
+
// }
|
|
17
17
|
}, ondata)
|
|
18
18
|
} else {
|
|
19
19
|
await this.kernel.bin.exec({
|
|
20
20
|
message: "conda install -y cudnn -c conda-forge",
|
|
21
|
-
conda: {
|
|
22
|
-
name: "base",
|
|
23
|
-
activate: "minimal"
|
|
24
|
-
}
|
|
21
|
+
// conda: {
|
|
22
|
+
// name: "base",
|
|
23
|
+
// activate: "minimal"
|
|
24
|
+
// }
|
|
25
25
|
}, ondata)
|
|
26
26
|
await this.kernel.bin.exec({
|
|
27
27
|
message: "conda install -y cuda -c nvidia/label/cuda-12.1.0",
|
|
28
|
-
conda: {
|
|
29
|
-
name: "base",
|
|
30
|
-
activate: "minimal"
|
|
31
|
-
}
|
|
28
|
+
// conda: {
|
|
29
|
+
// name: "base",
|
|
30
|
+
// activate: "minimal"
|
|
31
|
+
// }
|
|
32
32
|
}, ondata)
|
|
33
33
|
}
|
|
34
34
|
}
|
package/kernel/bin/ffmpeg.js
CHANGED
|
@@ -6,10 +6,10 @@ class Ffmpeg {
|
|
|
6
6
|
async install(req, ondata) {
|
|
7
7
|
await this.kernel.bin.exec({
|
|
8
8
|
message: "conda install -y -c conda-forge ffmpeg",
|
|
9
|
-
conda: {
|
|
10
|
-
name: "base",
|
|
11
|
-
activate: "minimal"
|
|
12
|
-
}
|
|
9
|
+
// conda: {
|
|
10
|
+
// name: "base",
|
|
11
|
+
// activate: "minimal"
|
|
12
|
+
// }
|
|
13
13
|
}, ondata)
|
|
14
14
|
}
|
|
15
15
|
async installed() {
|
package/kernel/bin/git.js
CHANGED
|
@@ -7,10 +7,10 @@ class Git {
|
|
|
7
7
|
async install(req, ondata) {
|
|
8
8
|
await this.kernel.bin.exec({
|
|
9
9
|
message: "conda install --no-shortcuts -y -c conda-forge git git-lfs",
|
|
10
|
-
conda: {
|
|
11
|
-
name: "base",
|
|
12
|
-
activate: "minimal"
|
|
13
|
-
}
|
|
10
|
+
// conda: {
|
|
11
|
+
// name: "base",
|
|
12
|
+
// activate: "minimal"
|
|
13
|
+
// }
|
|
14
14
|
}, ondata)
|
|
15
15
|
if (this.kernel.platform === 'win32') {
|
|
16
16
|
let gitconfig_path = path.resolve(this.kernel.homedir, "gitconfig")
|
|
@@ -2,10 +2,10 @@ class Huggingface {
|
|
|
2
2
|
async install(req, ondata) {
|
|
3
3
|
await this.kernel.bin.exec({
|
|
4
4
|
message: "conda install -y -c conda-forge huggingface_hub",
|
|
5
|
-
conda: {
|
|
6
|
-
name: "base",
|
|
7
|
-
activate: "minimal"
|
|
8
|
-
}
|
|
5
|
+
// conda: {
|
|
6
|
+
// name: "base",
|
|
7
|
+
// activate: "minimal"
|
|
8
|
+
// }
|
|
9
9
|
}, ondata)
|
|
10
10
|
}
|
|
11
11
|
async installed() {
|
package/kernel/bin/llvm.js
CHANGED
package/kernel/bin/node.js
CHANGED
|
@@ -7,10 +7,10 @@ class Node {
|
|
|
7
7
|
await this.kernel.bin.exec({
|
|
8
8
|
//message: "conda install -y nodejs=22.12.0 -c conda-forge"
|
|
9
9
|
message: "conda install -y nodejs=20.17.0 -c conda-forge",
|
|
10
|
-
conda: {
|
|
11
|
-
name: "base",
|
|
12
|
-
activate: "minimal"
|
|
13
|
-
}
|
|
10
|
+
// conda: {
|
|
11
|
+
// name: "base",
|
|
12
|
+
// activate: "minimal"
|
|
13
|
+
// }
|
|
14
14
|
}, ondata)
|
|
15
15
|
}
|
|
16
16
|
async installed() {
|
package/kernel/bin/uv.js
CHANGED
|
@@ -6,10 +6,10 @@ class UV {
|
|
|
6
6
|
async install(req, ondata) {
|
|
7
7
|
await this.kernel.bin.exec({
|
|
8
8
|
message: "conda install -y -c conda-forge uv",
|
|
9
|
-
conda: {
|
|
10
|
-
name: "base",
|
|
11
|
-
activate: "minimal"
|
|
12
|
-
}
|
|
9
|
+
// conda: {
|
|
10
|
+
// name: "base",
|
|
11
|
+
// activate: "minimal"
|
|
12
|
+
// }
|
|
13
13
|
}, ondata)
|
|
14
14
|
}
|
|
15
15
|
async installed() {
|
package/kernel/bin/zip.js
CHANGED