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

Update Python to 3.11+ on Windows #76525

Open
stevapple opened this issue Sep 17, 2024 · 1 comment
Open

Update Python to 3.11+ on Windows #76525

stevapple opened this issue Sep 17, 2024 · 1 comment
Labels
feature A feature request or implementation triage needed This issue needs more specific labels

Comments

@stevapple
Copy link
Contributor

stevapple commented Sep 17, 2024

Motivation

Up until Swift 6.0 the toolchain is still relying on Python 3.9, which is released 4 years ago and long outdated. Especially with the introduction of a native ARM64 toolchain, it becomes more of a problem that:

  • Python 3.9 was initially picked up because Visual Studio 2022 includes it as a workload. This is no longer true since Visual Studio on ARM64 didn't provide such workload, and on x64 it was already marked as EOL.
  • Python.org didn't officially add Windows on ARM support until Python 3.11, which means 3.10 and earlier minors are not officially compatible. This would make it hard for users to install a matching Python if we don't use 3.11 or newer.
  • The pythonarm64 NuGet package, though still providing a 3.9 toolset, marked it as deprecated and suggested to upgrade to 3.11 or newer. To keep up with upstream changes, especially security fixes, an upgrade should be ideal.

Proposed solution

Upgrade Python to 3.11 in build.ps1. If possible, switch to use Python.org's released installers as they're easier (and mandatory) to retrieve for regular users.

Alternatives considered

No response

Additional information

No response

@stevapple stevapple added feature A feature request or implementation triage needed This issue needs more specific labels labels Sep 17, 2024
@NikolayJuly
Copy link

I would like to add +1 to it. Currently it requires 3.9, and there is no way to find 3.9 for arm64 windows. It prevents me from launching lldb(it require python39.dll). I did some dirty hacks to make it works, but I would prefer to avoid it.
I assume debugging might still works if I will do it via cmake + vs, but for now I'm sitting on vccode + spm.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature A feature request or implementation triage needed This issue needs more specific labels
Projects
None yet
Development

No branches or pull requests

2 participants