pinokiod 1.2.18 → 1.2.19

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.
Files changed (2) hide show
  1. package/kernel/shell.js +5 -2
  2. package/package.json +1 -1
package/kernel/shell.js CHANGED
@@ -477,9 +477,12 @@ class Shell {
477
477
  let conda_path
478
478
  let conda_name
479
479
  let conda_python = "python=3.10"
480
+ let conda_args
480
481
 
481
482
  if (params.conda) {
482
483
 
484
+ conda_args = params.conda.args
485
+
483
486
  // 1. conda_path/conda_name/conda_python
484
487
  if (typeof params.conda === "string") {
485
488
  // params.conda => interpret as path
@@ -531,7 +534,7 @@ class Shell {
531
534
  } else {
532
535
  conda_activation = [
533
536
  (this.platform === 'win32' ? 'conda_hook' : `eval "$(conda shell.bash hook)"`),
534
- `conda create -y -p ${env_path} ${conda_python}`,
537
+ `conda create -y -p ${env_path} ${conda_python} ${conda_args ? conda_args : ''}`,
535
538
  `conda deactivate`,
536
539
  `conda deactivate`,
537
540
  `conda deactivate`,
@@ -562,7 +565,7 @@ class Shell {
562
565
  } else {
563
566
  conda_activation = [
564
567
  (this.platform === 'win32' ? 'conda_hook' : `eval "$(conda shell.bash hook)"`),
565
- `conda create -y -n ${conda_name} ${conda_python}`,
568
+ `conda create -y -n ${conda_name} ${conda_python} ${conda_args ? conda_args : ''}`,
566
569
  `conda deactivate`,
567
570
  `conda deactivate`,
568
571
  `conda deactivate`,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "pinokiod",
3
- "version": "1.2.18",
3
+ "version": "1.2.19",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "scripts": {