pinokiod 1.3.13 → 1.3.15
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 +16 -1
- package/kernel/index.js +1 -0
- package/package.json +1 -1
package/kernel/bin/conda.js
CHANGED
|
@@ -69,13 +69,28 @@ class Conda {
|
|
|
69
69
|
ondata(stream)
|
|
70
70
|
})
|
|
71
71
|
// await this.activate()
|
|
72
|
+
await fs.promises.writeFile(this.kernel.bin.path('miniconda/condarc'), `channels:
|
|
73
|
+
- conda-forge
|
|
74
|
+
- defaults
|
|
75
|
+
create_default_packages:
|
|
76
|
+
- python=3.10`)
|
|
72
77
|
await this.kernel.bin.exec({
|
|
73
78
|
message: [
|
|
74
79
|
// (this.kernel.platform === 'win32' ? 'conda_hook' : `eval "$(conda shell.bash hook)"`),
|
|
75
80
|
// (this.platform === 'win32' ? `activate base` : `conda activate base`),
|
|
81
|
+
/*
|
|
82
|
+
`conda config --file ${this.kernel.bin.path('miniconda', 'condarc')} --remove channels conda-forge`,
|
|
83
|
+
`conda config --file ${this.kernel.bin.path('miniconda', 'condarc')} --remove channels defaults`,
|
|
84
|
+
`conda config --file ${this.kernel.bin.path('miniconda', 'condarc')} --prepend channels defaults`,
|
|
85
|
+
`conda config --file ${this.kernel.bin.path('miniconda', 'condarc')} --prepend channels conda-forge`,
|
|
76
86
|
`conda config --file ${this.kernel.bin.path('miniconda', 'condarc')} --add create_default_packages python=3.10`,
|
|
87
|
+
*/
|
|
77
88
|
//"conda update -y conda",
|
|
78
|
-
|
|
89
|
+
|
|
90
|
+
|
|
91
|
+
//"conda update -y --all", // don't use this because it causes dll issues on windows
|
|
92
|
+
|
|
93
|
+
|
|
79
94
|
// handling the conda-libmamba-solver bug here: https://github.com/conda/conda-libmamba-solver/issues/283
|
|
80
95
|
"conda remove -y libarchive",
|
|
81
96
|
"conda install -y -c conda-forge libarchive",
|
package/kernel/index.js
CHANGED