mirror of
https://github.com/ckaczor/azuredatastudio.git
synced 2026-02-16 10:58:30 -05:00
Skip checking if python is running when only doing package upgrades during python install. (#13995)
This commit is contained in:
@@ -40,6 +40,7 @@ export interface PythonInstallSettings {
|
||||
installPath: string;
|
||||
existingPython: boolean;
|
||||
packages: PythonPkgDetails[];
|
||||
packageUpgradeOnly?: boolean;
|
||||
}
|
||||
export interface IJupyterServerInstallation {
|
||||
installCondaPackages(packages: PythonPkgDetails[], useMinVersion: boolean): Promise<void>;
|
||||
@@ -372,9 +373,9 @@ export class JupyterServerInstallation implements IJupyterServerInstallation {
|
||||
}
|
||||
|
||||
// Check if Python is running before attempting to overwrite the installation.
|
||||
// This step is skipped when using an existing installation, since we only add
|
||||
// extra packages in that case and don't modify the install itself.
|
||||
if (!installSettings.existingPython) {
|
||||
// This step is skipped when using an existing installation or when upgrading
|
||||
// packages, since those cases wouldn't overwrite the installation.
|
||||
if (!installSettings.existingPython && !installSettings.packageUpgradeOnly) {
|
||||
let pythonExePath = JupyterServerInstallation.getPythonExePath(installSettings.installPath, false);
|
||||
let isPythonRunning = await this.isPythonRunning(pythonExePath);
|
||||
if (isPythonRunning) {
|
||||
|
||||
Reference in New Issue
Block a user