mirror of
https://github.com/ckaczor/azuredatastudio.git
synced 2026-02-16 10:58:30 -05:00
Update Python to 3.8.8 (#15278)
* update python fwlinks and remove bundle ver * start fixing path for users with python 36 * prompt user for python version upgrade * update python path after removing 3.6 * prompt users to upgrade and show pkg warning * make prompt async * remove python bundle ver from ML extension * shutdown python 3.6 before deleting * check useExistingPython before update prompt * add dont ask again option * remove 3.6 after installing 3.8 fix merge conflict * give option to remove python36 * list user installed pip packages in warning * create notebook to install pip packages * update getPythonExePath method and add comments * clean up code * add comments * pr comments * add comment * remove option to keep python36 * shutdown active servers before removing python36 * fix error removing old python w/ path change * update to 3.8.10 * restart sessions for mac/linux
This commit is contained in:
@@ -140,7 +140,7 @@ export function getOSPlatformId(): string {
|
||||
* @param second Second version string to compare.
|
||||
* @returns 1 if the first version is greater, -1 if it's less, and 0 otherwise.
|
||||
*/
|
||||
export function comparePackageVersions(first: string, second: string): number {
|
||||
export function compareVersions(first: string, second: string): number {
|
||||
let firstVersion = first.split('.');
|
||||
let secondVersion = second.split('.');
|
||||
|
||||
@@ -179,7 +179,7 @@ export function comparePackageVersions(first: string, second: string): number {
|
||||
|
||||
export function sortPackageVersions(versions: string[], ascending: boolean = true): string[] {
|
||||
return versions.sort((first, second) => {
|
||||
let compareResult = comparePackageVersions(first, second);
|
||||
let compareResult = compareVersions(first, second);
|
||||
if (ascending) {
|
||||
return compareResult;
|
||||
} else {
|
||||
@@ -230,7 +230,7 @@ export function isPackageSupported(pythonVersion: string, packageVersionConstrai
|
||||
versionSpecifier = constraint.slice(0, splitIndex);
|
||||
version = constraint.slice(splitIndex).trim();
|
||||
}
|
||||
let versionComparison = comparePackageVersions(pythonVersion, version);
|
||||
let versionComparison = compareVersions(pythonVersion, version);
|
||||
switch (versionSpecifier) {
|
||||
case '>=':
|
||||
supportedVersionFound = versionComparison !== -1;
|
||||
|
||||
Reference in New Issue
Block a user