pinokiod 3.0.21 → 3.0.23
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 +0 -3
- package/kernel/bin/cuda.js +0 -3
- package/kernel/bin/git.js +1 -1
- package/kernel/bin/huggingface.js +1 -1
- package/kernel/bin/uv.js +1 -1
- package/kernel/bin/zip.js +2 -2
- package/package.json +1 -1
- package/server/index.js +1 -2
package/kernel/bin/conda.js
CHANGED
|
@@ -140,9 +140,6 @@ create_default_packages:
|
|
|
140
140
|
}, (stream) => {
|
|
141
141
|
ondata(stream)
|
|
142
142
|
})
|
|
143
|
-
await this.kernel.bin.exec({
|
|
144
|
-
message: "conda config --add channels conda-forge"
|
|
145
|
-
}, ondata)
|
|
146
143
|
if (this.kernel.platform === "win32") {
|
|
147
144
|
// copy python.exe to python3.exe so you can run with both python3 and python
|
|
148
145
|
await fs.promises.copyFile(
|
package/kernel/bin/cuda.js
CHANGED
|
@@ -1,8 +1,5 @@
|
|
|
1
1
|
class Cuda {
|
|
2
2
|
async install(req, ondata) {
|
|
3
|
-
await this.kernel.bin.exec({
|
|
4
|
-
message: "conda config --add channels nvidia"
|
|
5
|
-
}, ondata)
|
|
6
3
|
if (this.kernel.platform === "win32") {
|
|
7
4
|
await this.kernel.bin.exec({
|
|
8
5
|
message: "conda install -y cudnn libzlib-wapi -c conda-forge",
|
package/kernel/bin/git.js
CHANGED
|
@@ -5,7 +5,7 @@ const { rimraf } = require('rimraf')
|
|
|
5
5
|
const path = require("path")
|
|
6
6
|
class Git {
|
|
7
7
|
async install(req, ondata) {
|
|
8
|
-
await this.kernel.bin.exec({ message: "conda install -y -c conda-forge git git-lfs
|
|
8
|
+
await this.kernel.bin.exec({ message: "conda install -y -c conda-forge git git-lfs" }, ondata)
|
|
9
9
|
if (this.kernel.platform === 'win32') {
|
|
10
10
|
let gitconfig_path = path.resolve(this.kernel.homedir, "gitconfig")
|
|
11
11
|
// check if gitconfig exists
|
package/kernel/bin/uv.js
CHANGED
package/kernel/bin/zip.js
CHANGED
|
@@ -2,9 +2,9 @@ class Zip {
|
|
|
2
2
|
async install(req, ondata) {
|
|
3
3
|
let cmd
|
|
4
4
|
if (this.kernel.platform === 'win32') {
|
|
5
|
-
cmd = "conda install -y -c conda-forge 7zip
|
|
5
|
+
cmd = "conda install -y -c conda-forge 7zip"
|
|
6
6
|
} else {
|
|
7
|
-
cmd = "conda install -y -c conda-forge p7zip
|
|
7
|
+
cmd = "conda install -y -c conda-forge p7zip"
|
|
8
8
|
}
|
|
9
9
|
await this.kernel.bin.exec({ message: cmd }, ondata)
|
|
10
10
|
}
|
package/package.json
CHANGED
package/server/index.js
CHANGED
|
@@ -470,7 +470,7 @@ class Server {
|
|
|
470
470
|
}, {
|
|
471
471
|
type: "conda",
|
|
472
472
|
name: ["nodejs", "ffmpeg", ],
|
|
473
|
-
args: "-c conda-forge
|
|
473
|
+
args: "-c conda-forge"
|
|
474
474
|
}]
|
|
475
475
|
let platform = os.platform()
|
|
476
476
|
if (platform === "win32") {
|
|
@@ -489,7 +489,6 @@ class Server {
|
|
|
489
489
|
if (this.kernel.gpu === "nvidia") {
|
|
490
490
|
requirements.push({
|
|
491
491
|
name: "cuda",
|
|
492
|
-
args: "--debug"
|
|
493
492
|
})
|
|
494
493
|
}
|
|
495
494
|
requirements = requirements.concat([{
|