pinokiod 1.3.12 → 1.3.14

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.
@@ -69,11 +69,22 @@ 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`),
76
- "conda config --add create_default_packages python=3.10",
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`,
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
  "conda update -y --all",
79
90
  // handling the conda-libmamba-solver bug here: https://github.com/conda/conda-libmamba-solver/issues/283
package/kernel/index.js CHANGED
@@ -98,6 +98,7 @@ class Kernel {
98
98
  return portfinder.getPortPromise()
99
99
  }
100
100
  path(...args) {
101
+ console.log("ARGS", args)
101
102
  return path.resolve(this.homedir, ...args)
102
103
  }
103
104
  exists(...args) {
package/kernel/shell.js CHANGED
@@ -125,6 +125,7 @@ class Shell {
125
125
  this.env.XDG_STATE_HOME = path.resolve(this.kernel.homedir, "cache", "XDG_STATE_HOME")
126
126
  this.env.GRADIO_TEMP_DIR = path.resolve(this.kernel.homedir, "cache", "GRADIO_TEMP_DIR")
127
127
  this.env.PIP_CONFIG_FILE = path.resolve(this.kernel.homedir, "pipconfig")
128
+ this.env.CONDARC = path.resolve(this.kernel.homedir, "bin", "miniconda", "condarc")
128
129
 
129
130
  this.env.PS1 = "<<PINOKIO SHELL>> "
130
131
  // this.env.PROMPT_COMMAND = "export PS1=\"<<PINOKIO SHELL>> \""
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "pinokiod",
3
- "version": "1.3.12",
3
+ "version": "1.3.14",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "scripts": {