Skip to content

Remove shared- prefix from Windows profiles#241

Closed
charliermarsh wants to merge 4 commits into
astral-sh:mainfrom
charliermarsh:charlie/shared
Closed

Remove shared- prefix from Windows profiles#241
charliermarsh wants to merge 4 commits into
astral-sh:mainfrom
charliermarsh:charlie/shared

Conversation

@charliermarsh

@charliermarsh charliermarsh commented Mar 30, 2024

Copy link
Copy Markdown
Member

Summary

In #234, we removed the Windows static builds from python-build-standalone. As such, the shared- prefix (in, e.g., shared-pgo) is no longer necessary, since there's no need to differentiate the shared builds from the static builds.

This PR removes the shared- prefix, but continues to publish under both profiles to allow for a transition period for consumers of the shared- builds.

Closes #237.

Test Plan

Downloaded one of the release artifacts locally:

~/Downloads on  main [!+?] via 🐍 v3.12.0
❯ cd cpython-3.8-vcvars64.bat-pgo
~/Downloads/cpython-3.8-vcvars64.bat-pgo on  main [!+?]
❯ ls
cpython-3.8.18-x86_64-pc-windows-msvc-pgo-20240330T1749.tar.zst
cpython-3.8.18-x86_64-pc-windows-msvc-shared-pgo-20240330T1749.tar.zst
~/Downloads/cpython-3.8-vcvars64.bat-pgo on  main [!+?]
❯ shasum cpython-3.8.18-x86_64-pc-windows-msvc-*
718227dbe11dcdf74283952a6b01a769cd5e2919  cpython-3.8.18-x86_64-pc-windows-msvc-pgo-20240330T1749.tar.zst
718227dbe11dcdf74283952a6b01a769cd5e2919  cpython-3.8.18-x86_64-pc-windows-msvc-shared-pgo-20240330T1749.tar.zst

Comment thread .github/workflows/windows.yml
Comment thread cpython-windows/build.py
# uplink.c tries to find the OPENSSL_Applink function exported from the current
# executable. However, it is exported from _ssl[_d].pyd in shared builds. So
# update its sounce to look for it from there.
if "shared" in profile:

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

(Always true. Should've been removed in the preceding PR.)

@indygreg

Copy link
Copy Markdown
Collaborator

I manually cancelled actions for Linux and macOS due to xz download bustage. Rebase on main to get working CI.

@charliermarsh charliermarsh marked this pull request as draft March 30, 2024 18:23
@charliermarsh charliermarsh marked this pull request as ready for review March 30, 2024 21:42
@charliermarsh charliermarsh marked this pull request as draft March 30, 2024 21:42
@charliermarsh charliermarsh marked this pull request as ready for review March 30, 2024 23:07
@charliermarsh charliermarsh requested a review from indygreg March 31, 2024 14:06

@indygreg indygreg left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This looks like it should work! Thanks for following up!

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.

Remove -shared from Windows release artifacts

2 participants