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

CPython: Fix MSVC/all shared #25890

Open
wants to merge 11 commits into
base: master
Choose a base branch
from

Conversation

Ahajha
Copy link
Contributor

@Ahajha Ahajha commented Nov 9, 2024

Depends on #25889 - This allowed mpdecimal to build in shared mode on Windows with the default config (in 2.5.1+, which is used by CPython 3.10+), so now MSVC/all shared is no longer an invalid config in those versions. However, this now means that errors that weren't checked for before have popped up, so this PR fixes those.

See python/cpython@542f327 - my guess is that this is the commit that allowed openssl>=3, but I'm not certain (technically openssl 3 was already supported before this commit, so maybe it's elsewhere). If desired, we could probably add it (or the real support commit) as a patch, but for now I think it's fine to just restrict the versions. This only affects versions <3.12.

The libffi patches are not necessary in 3.11+, now that this is validated in CI I've removed them. See here for the relevant upstream change.

I also added a fix for Windows occasionally trying to fetch another Python version from NuGet in CCI, see #25536 (comment) for context.

Future TODO: Also want to remove the shared option where it just breaks.

@Ahajha Ahajha force-pushed the ahajha/cpython-fix-msvc-all-shared branch from e957039 to 879125c Compare November 28, 2024 17:43
@Ahajha Ahajha mentioned this pull request Nov 29, 2024
@Ahajha Ahajha marked this pull request as ready for review December 6, 2024 05:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant