mirror of
https://github.com/ckaczor/azuredatastudio.git
synced 2026-02-16 10:58:30 -05:00
Use Existing Install option by default when setting up python on Mac and Linux. (#21093)
This commit is contained in:
@@ -28,6 +28,7 @@ export const allowRoot = 'allowRoot';
|
|||||||
|
|
||||||
export const winPlatform = 'win32';
|
export const winPlatform = 'win32';
|
||||||
export const macPlatform = 'darwin';
|
export const macPlatform = 'darwin';
|
||||||
|
export const linuxPlatform = 'linux';
|
||||||
|
|
||||||
export const jupyterNotebookProviderId = 'jupyter';
|
export const jupyterNotebookProviderId = 'jupyter';
|
||||||
export const jupyterConfigRootFolder = 'jupyter_config';
|
export const jupyterConfigRootFolder = 'jupyter_config';
|
||||||
|
|||||||
@@ -13,6 +13,8 @@ import * as utils from '../../common/utils';
|
|||||||
import { promises as fs } from 'fs';
|
import { promises as fs } from 'fs';
|
||||||
import { Deferred } from '../../common/promise';
|
import { Deferred } from '../../common/promise';
|
||||||
import { PythonPathLookup } from '../pythonPathLookup';
|
import { PythonPathLookup } from '../pythonPathLookup';
|
||||||
|
import { linuxPlatform, macPlatform } from '../../common/constants';
|
||||||
|
import * as os from 'os';
|
||||||
|
|
||||||
const localize = nls.loadMessageBundle();
|
const localize = nls.loadMessageBundle();
|
||||||
|
|
||||||
@@ -56,6 +58,10 @@ export class ConfigurePythonWizard {
|
|||||||
pythonLocation: JupyterServerInstallation.getPythonPathSetting(),
|
pythonLocation: JupyterServerInstallation.getPythonPathSetting(),
|
||||||
useExistingPython: JupyterServerInstallation.getExistingPythonSetting()
|
useExistingPython: JupyterServerInstallation.getExistingPythonSetting()
|
||||||
};
|
};
|
||||||
|
// Default to using existing Python on Mac and Linux, since they have python installed by default
|
||||||
|
if (os.platform() === macPlatform || os.platform() === linuxPlatform) {
|
||||||
|
this.model.useExistingPython = true;
|
||||||
|
}
|
||||||
|
|
||||||
let pages: Map<number, BasePage> = new Map<number, BasePage>();
|
let pages: Map<number, BasePage> = new Map<number, BasePage>();
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user