pinokiod 1.3.84 → 1.3.86
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 +4 -18
- package/package.json +1 -1
package/kernel/bin/conda.js
CHANGED
|
@@ -88,30 +88,16 @@ create_default_packages:
|
|
|
88
88
|
ondata({ raw: `running installer: ${installer}...\r\n` })
|
|
89
89
|
|
|
90
90
|
let cmd
|
|
91
|
-
let is_sudo
|
|
92
91
|
if (this.kernel.platform === "win32") {
|
|
93
|
-
|
|
94
|
-
await new Promise((resolve, reject) => {
|
|
95
|
-
setTimeout(() => {
|
|
96
|
-
resolve()
|
|
97
|
-
}, 1000)
|
|
98
|
-
})
|
|
99
|
-
cmd = `start /wait "" "${path.resolve(install_path, installer)}" /InstallationType=JustMe /RegisterPython=0 /S /D=${install_path}`
|
|
92
|
+
cmd = `start /wait ${installer) /InstallationType=JustMe /RegisterPython=0 /S /D=${install_path}`
|
|
100
93
|
} else {
|
|
101
|
-
is_sudo = false
|
|
102
94
|
cmd = `bash ${installer} -b -p ${install_path}`
|
|
103
95
|
}
|
|
104
96
|
ondata({ raw: `${cmd}\r\n` })
|
|
105
97
|
ondata({ raw: `path: ${this.kernel.bin.path()}\r\n` })
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
})
|
|
110
|
-
} else {
|
|
111
|
-
await this.kernel.bin.exec({ message: cmd, conda: { skip: true } }, (stream) => {
|
|
112
|
-
ondata(stream)
|
|
113
|
-
})
|
|
114
|
-
}
|
|
98
|
+
await this.kernel.bin.exec({ message: cmd, conda: { skip: true } }, (stream) => {
|
|
99
|
+
ondata(stream)
|
|
100
|
+
})
|
|
115
101
|
//// await this.activate()
|
|
116
102
|
// await fs.promises.writeFile(this.kernel.bin.path('miniconda/condarc'), `channels:
|
|
117
103
|
// - conda-forge
|