pinokiod 3.2.93 → 3.2.95

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.
@@ -119,11 +119,16 @@ conda-libmamba-solver=24.7.0`)
119
119
  let cmds = [
120
120
  //"conda clean -y --index-cache",
121
121
  "conda clean -y --all",
122
+ `conda config --file ${this.kernel.path('condarc')} --set remote_connect_timeout_secs 20`,
122
123
  `conda config --file ${this.kernel.path('condarc')} --set remote_read_timeout_secs 300`,
124
+ `conda config --file ${this.kernel.path('condarc')} --set remote_max_retries 6`,
125
+ `conda config --file ${this.kernel.path('condarc')} --set repodata_threads 4`,
126
+ `conda config --file ${this.kernel.path('condarc')} --set fetch_threads 5`,
123
127
  // "conda install libsqlite --force-reinstall -y",
124
128
  // `conda config --file ${this.kernel.path('condarc')} --set auto_update_conda False`,
125
129
  "conda install -y conda-libmamba-solver=24.7.0 conda=24.7.1",
126
130
  "conda update -y --all",
131
+ "conda clean -y --all",
127
132
  // "conda update -y conda",
128
133
  // "conda update -y --all",
129
134
  ]
package/kernel/shell.js CHANGED
@@ -110,7 +110,6 @@ class Shell {
110
110
  delete this.env.CUDA_PATH
111
111
  }
112
112
 
113
- this.env.PINOKIO_SHELL_START = Date.now()
114
113
  this.env.CMAKE_OBJECT_PATH_MAX = 1024
115
114
  this.env.PYTORCH_ENABLE_MPS_FALLBACK = 1
116
115
  // this.env.NPM_CONFIG_USERCONFIG = this.kernel.path("user_npmrc")
@@ -454,10 +453,8 @@ class Shell {
454
453
  let delimiter
455
454
  if (this.platform === "win32") {
456
455
  delimiter = " && "; // must use &&. & doesn't necessariliy wait until the curruent command finishes
457
- params.message.push(`echo "--- pinokio shell.run finished: %PINOKIO_SHELL_START% ---"`)
458
456
  } else {
459
457
  delimiter = " ; ";
460
- params.message.push('echo "--- pinokio shell.run finished $PINOKIO_SHELL_START ---"')
461
458
  }
462
459
  return params.message.filter((m) => {
463
460
  return m && !/^\s+$/.test(m)
@@ -559,8 +556,7 @@ class Shell {
559
556
  `conda deactivate`,
560
557
  `conda deactivate`,
561
558
  `conda deactivate`,
562
- (this.platform === 'win32' ? `call conda activate ${env_path}` : `conda activate ${env_path}`),
563
- //`conda activate ${env_path}`,
559
+ `conda activate ${env_path}`,
564
560
  ]
565
561
  } else {
566
562
  conda_activation = [
@@ -569,8 +565,7 @@ class Shell {
569
565
  `conda deactivate`,
570
566
  `conda deactivate`,
571
567
  `conda deactivate`,
572
- (this.platform === 'win32' ? `call conda activate ${env_path}` : `conda activate ${env_path}`),
573
- //`conda activate ${env_path}`,
568
+ `conda activate ${env_path}`,
574
569
  ]
575
570
  }
576
571
  } else if (conda_name) {
@@ -580,8 +575,7 @@ class Shell {
580
575
  `conda deactivate`,
581
576
  `conda deactivate`,
582
577
  `conda deactivate`,
583
- (this.platform === 'win32' ? `call conda activate ${conda_name}` : `conda activate ${conda_name}`),
584
- //`conda activate ${conda_name}`,
578
+ `conda activate ${conda_name}`,
585
579
  ]
586
580
  } else {
587
581
  let envs_path = this.kernel.bin.path("miniconda/envs")
@@ -593,8 +587,7 @@ class Shell {
593
587
  `conda deactivate`,
594
588
  `conda deactivate`,
595
589
  `conda deactivate`,
596
- (this.platform === 'win32' ? `call conda activate ${conda_name}` : `conda activate ${conda_name}`),
597
- //`conda activate ${conda_name}`,
590
+ `conda activate ${conda_name}`,
598
591
  ]
599
592
  } else {
600
593
  conda_activation = [
@@ -603,8 +596,7 @@ class Shell {
603
596
  `conda deactivate`,
604
597
  `conda deactivate`,
605
598
  `conda deactivate`,
606
- (this.platform === 'win32' ? `call conda activate ${conda_name}` : `conda activate ${conda_name}`),
607
- //`conda activate ${conda_name}`,
599
+ `conda activate ${conda_name}`,
608
600
  ]
609
601
  }
610
602
  }
@@ -849,13 +841,9 @@ ${cleaned}
849
841
  // Decide whether to kill or continue
850
842
  if (this.ready) {
851
843
  // when ready, watch out for the prompt pattern that terminates with [\r\n ]
852
- //let termination_prompt_re = new RegExp(this.prompt_pattern + "[ \r\n]*$", "g")
853
- let termination_prompt_re = new RegExp(".*--- pinokio shell.run finished: [0-9]+ ---.*", "g")
844
+ let termination_prompt_re = new RegExp(this.prompt_pattern + "[ \r\n]*$", "g")
854
845
  let line = cleaned.replaceAll(/[\r\n]/g, "")
855
846
  let test = line.match(termination_prompt_re)
856
- console.log(">> LINE, TEST")
857
- console.log("line", line)
858
- console.log("test", test)
859
847
  if (test) {
860
848
  let cache = cleaned
861
849
  let cached_msg = msg
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "pinokiod",
3
- "version": "3.2.93",
3
+ "version": "3.2.95",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "scripts": {