pinokiod 3.226.0 → 3.228.0
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 +5 -0
- package/package.json +1 -1
package/kernel/bin/conda.js
CHANGED
|
@@ -130,6 +130,7 @@ report_errors: false`)
|
|
|
130
130
|
let lines = res.response.split(/[\r\n]+/)
|
|
131
131
|
let conda_check = {}
|
|
132
132
|
let conda = new Set()
|
|
133
|
+
let conda_versions = {}
|
|
133
134
|
let start = false
|
|
134
135
|
for(let line of lines) {
|
|
135
136
|
if (start) {
|
|
@@ -138,6 +139,7 @@ report_errors: false`)
|
|
|
138
139
|
let name = chunks[0]
|
|
139
140
|
let version = chunks[1]
|
|
140
141
|
conda.add(name)
|
|
142
|
+
conda_versions[name] = version
|
|
141
143
|
if (name === "conda") {
|
|
142
144
|
conda_check.conda = true
|
|
143
145
|
// //if (String(version) === "24.11.1") {
|
|
@@ -183,7 +185,10 @@ report_errors: false`)
|
|
|
183
185
|
}
|
|
184
186
|
}
|
|
185
187
|
this.kernel.bin.installed.conda = conda
|
|
188
|
+
this.kernel.bin.installed.conda_versions = conda_versions
|
|
186
189
|
return conda_check.conda && conda_check.mamba && conda_check.sqlite
|
|
190
|
+
console.log("2 this.installed.conda", this.kernel.bin.installed.conda)
|
|
191
|
+
console.log("2 this.installed.conda_versions", this.kernel.bin.installed.conda_versions)
|
|
187
192
|
//return conda_check.conda && conda_check.mamba
|
|
188
193
|
}
|
|
189
194
|
async install(req, ondata) {
|