Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Draft] Add python 3.12 support #7779

Draft
wants to merge 3 commits into
base: main
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions Python/Product/Common/Parsing/PythonLanguageVersion.cs
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@ public enum PythonLanguageVersion {
V39 = 0x0309,
V310 = 0x030a,
V311 = 0x030b,
V312 = 0x030c,
}

public static class PythonLanguageVersionExtensions {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -332,7 +332,9 @@ sealed class ConfigurationEnvironmentView : INotifyPropertyChanged {
"3.7",
"3.8",
"3.9",
"3.10"
"3.10",
"3.11",
"3.12"
};

private readonly EnvironmentView _view;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,8 @@
<MenuItem Style="{StaticResource PackageItem}" Header="Python 3.8" CommandParameter="python=3.8"/>
<MenuItem Style="{StaticResource PackageItem}" Header="Python 3.9" CommandParameter="python=3.9"/>
<MenuItem Style="{StaticResource PackageItem}" Header="Python 3.10" CommandParameter="python=3.10"/>
<MenuItem Style="{StaticResource PackageItem}" Header="Python 3.11" CommandParameter="python=3.11"/>
<MenuItem Style="{StaticResource PackageItem}" Header="Python 3.12" CommandParameter="python=3.12"/>
</MenuItem>
<MenuItem Style="{StaticResource PackageFolder}" Header="{x:Static common:Strings.CondaPackageDataScienceCoreLibs}">
<MenuItem Style="{StaticResource PackageItem}" Header="NumPy" CommandParameter="numpy"/>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,9 @@ ProjectView selectedProject
"3.7",
"3.8",
"3.9",
"3.10"
"3.10",
"3.11",
"3.12"
};

public static readonly DependencyProperty InterpretersProperty =
Expand Down
4 changes: 4 additions & 0 deletions Python/Tests/Utilities.Python.Analysis/PythonPaths.cs
Original file line number Diff line number Diff line change
Expand Up @@ -46,13 +46,17 @@ public class PythonPaths {
public static readonly PythonVersion Python38 = GetCPythonVersion(PythonLanguageVersion.V38, InterpreterArchitecture.x86);
public static readonly PythonVersion Python39 = GetCPythonVersion(PythonLanguageVersion.V39, InterpreterArchitecture.x86);
public static readonly PythonVersion Python310 = GetCPythonVersion(PythonLanguageVersion.V310, InterpreterArchitecture.x86);
public static readonly PythonVersion Python311 = GetCPythonVersion(PythonLanguageVersion.V311, InterpreterArchitecture.x86);
public static readonly PythonVersion Python312 = GetCPythonVersion(PythonLanguageVersion.V312, InterpreterArchitecture.x86);
public static readonly PythonVersion Python27_x64 = GetCPythonVersion(PythonLanguageVersion.V27, InterpreterArchitecture.x64);
public static readonly PythonVersion Python35_x64 = GetCPythonVersion(PythonLanguageVersion.V35, InterpreterArchitecture.x64);
public static readonly PythonVersion Python36_x64 = GetCPythonVersion(PythonLanguageVersion.V36, InterpreterArchitecture.x64);
public static readonly PythonVersion Python37_x64 = GetCPythonVersion(PythonLanguageVersion.V37, InterpreterArchitecture.x64);
public static readonly PythonVersion Python38_x64 = GetCPythonVersion(PythonLanguageVersion.V38, InterpreterArchitecture.x64);
public static readonly PythonVersion Python39_x64 = GetCPythonVersion(PythonLanguageVersion.V39, InterpreterArchitecture.x64);
public static readonly PythonVersion Python310_x64 = GetCPythonVersion(PythonLanguageVersion.V310, InterpreterArchitecture.x64);
public static readonly PythonVersion Python311_x64 = GetCPythonVersion(PythonLanguageVersion.V311, InterpreterArchitecture.x64);
public static readonly PythonVersion Python312_x64 = GetCPythonVersion(PythonLanguageVersion.V312, InterpreterArchitecture.x64);
public static readonly PythonVersion Anaconda27 = GetAnacondaVersion(PythonLanguageVersion.V27, InterpreterArchitecture.x86);
public static readonly PythonVersion Anaconda27_x64 = GetAnacondaVersion(PythonLanguageVersion.V27, InterpreterArchitecture.x64);
public static readonly PythonVersion Anaconda36 = GetAnacondaVersion(PythonLanguageVersion.V36, InterpreterArchitecture.x86);
Expand Down