pinokiod 3.2.170 → 3.2.172
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/shell.js +14 -1
- package/package.json +1 -1
package/kernel/shell.js
CHANGED
|
@@ -557,7 +557,9 @@ class Shell {
|
|
|
557
557
|
`conda deactivate`,
|
|
558
558
|
`conda deactivate`,
|
|
559
559
|
`conda deactivate`,
|
|
560
|
+
(this.platform === 'win32' ? 'timeout /t 1 > nul' : 'sleep 1'),
|
|
560
561
|
`conda activate ${env_path}`,
|
|
562
|
+
(this.platform === 'win32' ? 'timeout /t 1 > nul' : 'sleep 1'),
|
|
561
563
|
]
|
|
562
564
|
} else {
|
|
563
565
|
conda_activation = [
|
|
@@ -566,7 +568,9 @@ class Shell {
|
|
|
566
568
|
`conda deactivate`,
|
|
567
569
|
`conda deactivate`,
|
|
568
570
|
`conda deactivate`,
|
|
571
|
+
(this.platform === 'win32' ? 'timeout /t 1 > nul' : 'sleep 1'),
|
|
569
572
|
`conda activate ${env_path}`,
|
|
573
|
+
(this.platform === 'win32' ? 'timeout /t 1 > nul' : 'sleep 1'),
|
|
570
574
|
]
|
|
571
575
|
}
|
|
572
576
|
} else if (conda_name) {
|
|
@@ -576,7 +580,9 @@ class Shell {
|
|
|
576
580
|
`conda deactivate`,
|
|
577
581
|
`conda deactivate`,
|
|
578
582
|
`conda deactivate`,
|
|
583
|
+
(this.platform === 'win32' ? 'timeout /t 1 > nul' : 'sleep 1'),
|
|
579
584
|
`conda activate ${conda_name}`,
|
|
585
|
+
(this.platform === 'win32' ? 'timeout /t 1 > nul' : 'sleep 1'),
|
|
580
586
|
]
|
|
581
587
|
} else {
|
|
582
588
|
let envs_path = this.kernel.bin.path("miniconda/envs")
|
|
@@ -588,7 +594,9 @@ class Shell {
|
|
|
588
594
|
`conda deactivate`,
|
|
589
595
|
`conda deactivate`,
|
|
590
596
|
`conda deactivate`,
|
|
597
|
+
(this.platform === 'win32' ? 'timeout /t 1 > nul' : 'sleep 1'),
|
|
591
598
|
`conda activate ${conda_name}`,
|
|
599
|
+
(this.platform === 'win32' ? 'timeout /t 1 > nul' : 'sleep 1'),
|
|
592
600
|
]
|
|
593
601
|
} else {
|
|
594
602
|
conda_activation = [
|
|
@@ -597,7 +605,9 @@ class Shell {
|
|
|
597
605
|
`conda deactivate`,
|
|
598
606
|
`conda deactivate`,
|
|
599
607
|
`conda deactivate`,
|
|
608
|
+
(this.platform === 'win32' ? 'timeout /t 1 > nul' : 'sleep 1'),
|
|
600
609
|
`conda activate ${conda_name}`,
|
|
610
|
+
(this.platform === 'win32' ? 'timeout /t 1 > nul' : 'sleep 1'),
|
|
601
611
|
]
|
|
602
612
|
}
|
|
603
613
|
}
|
|
@@ -651,14 +661,17 @@ class Shell {
|
|
|
651
661
|
if (env_exists) {
|
|
652
662
|
venv_activation = [
|
|
653
663
|
(this.platform === "win32" ? `${activate_path} ${env_path}` : `source ${activate_path} ${env_path}`),
|
|
664
|
+
(this.platform === 'win32' ? 'timeout /t 1 > nul' : 'sleep 1'),
|
|
654
665
|
]
|
|
655
666
|
} else {
|
|
656
667
|
venv_activation = [
|
|
657
668
|
`python -m venv ${env_path}`,
|
|
658
669
|
(this.platform === "win32" ? `${activate_path} ${env_path}` : `source ${activate_path} ${env_path}`),
|
|
659
670
|
`python -m pip install --upgrade pip setuptools wheel`,
|
|
660
|
-
`${deactivate_path}
|
|
671
|
+
(this.platform === "win32" ? `${deactivate_path}` : `source ${deactivate_path}`),
|
|
672
|
+
(this.platform === 'win32' ? 'timeout /t 1 > nul' : 'sleep 1'),
|
|
661
673
|
(this.platform === "win32" ? `${activate_path} ${env_path}` : `source ${activate_path} ${env_path}`),
|
|
674
|
+
(this.platform === 'win32' ? 'timeout /t 1 > nul' : 'sleep 1'),
|
|
662
675
|
]
|
|
663
676
|
}
|
|
664
677
|
} else {
|