pinokiod 3.2.36 → 3.2.39
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 +1 -1
- package/kernel/bin/py.js +6 -1
- package/package.json +1 -1
package/kernel/bin/conda.js
CHANGED
|
@@ -108,10 +108,10 @@ create_default_packages:
|
|
|
108
108
|
//"conda clean -y --index-cache",
|
|
109
109
|
"conda clean -y --all",
|
|
110
110
|
`conda config --file ${this.kernel.path('condarc')} --set remote_read_timeout_secs 300`,
|
|
111
|
+
"conda install -y conda-libmamba-solver=24.7.0 conda=24.7.1",
|
|
111
112
|
`conda config --file ${this.kernel.path('condarc')} --set auto_update_conda False`,
|
|
112
113
|
// "conda update -y conda",
|
|
113
114
|
// "conda update -y --all",
|
|
114
|
-
"conda install -y conda-libmamba-solver=24.7.0 conda=24.7.1 --freeze-installed",
|
|
115
115
|
]
|
|
116
116
|
//if (this.kernel.platform === "win32" || this.kernel.platform === "darwin") {
|
|
117
117
|
// cmds.push("conda install -y conda-libmamba-solver=24.7.0 conda=24.7.1 --freeze-installed")
|
package/kernel/bin/py.js
CHANGED
|
@@ -11,7 +11,12 @@ class Py {
|
|
|
11
11
|
}
|
|
12
12
|
async installed() {
|
|
13
13
|
let exists = await this.kernel.exists(this.kernel.bin.path("py"))
|
|
14
|
-
|
|
14
|
+
if (exists) {
|
|
15
|
+
console.log("pip", this.kernel.bin.installed.pip)
|
|
16
|
+
return this.kernel.bin.installed.pip.has("fastapi") && this.kernel.bin.installed.pip.has("uvicorn")
|
|
17
|
+
} else {
|
|
18
|
+
return false
|
|
19
|
+
}
|
|
15
20
|
}
|
|
16
21
|
async uninstall(req, ondata) {
|
|
17
22
|
await this.kernel.bin.rm(this.kernel.bin.path("py"), ondata)
|