Lokasi ngalangkungan proxy:   [ UP ]  
[Ngawartoskeun bug]   [Panyetelan cookie]                
Skip to content

gh-162158: Read the OpenSSL version from a single shared file - #162159

Open
hugovk wants to merge 3 commits into
python:mainfrom
hugovk:3.16-dedupe-openssl-version
Open

hugovk wants to merge 3 commits into
python:mainfrom
hugovk:3.16-dedupe-openssl-version

Conversation

@hugovk

@hugovk hugovk commented Nov 17, 2026 •

Copy link
Copy Markdown
Member

First step for #162158.

Put the version in Tools/ssl/openssl-version.txt, and have all the other files read from here.

The SHA-256 in Mac/BuildScript/build-installer.py still needs updating by hand, and Tools/ssl/multissltests.py not changed. These can updated by a script in a followup.

@hugovk
hugovk requested review from a team, gpshead and picnixz as code owners November 17, 2026 16:54
@bedevere-app bedevere-app Bot added the type-feature A feature request or enhancement label Nov 17, 2026
@hugovk hugovk added OS-windows OS-mac topic-SSL dependencies Pull requests that update a dependency file OS-ios OS-android infra CI, GitHub Actions, buildbots, Dependabot, etc. needs backport to 3.14 bugs and security fixes needs backport to 3.15 bugs and security fixes labels Nov 17, 2026

@savannahostrowski savannahostrowski left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Looks good to me! We could include the SSL CI matrix in the follow-up script too.

@hugovk

hugovk commented Nov 17, 2026

Copy link
Copy Markdown
Member Author

cc also @zware as you've done a lot of the recent updates (thank you!).

@picnixz picnixz left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

LGTM with just a simple suggestion but you are free to ignore.

Comment thread Mac/BuildScript/build-installer.py Resolved

@freakboy3742 freakboy3742 left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

iOS and Android changes make sense to me (as does the general goal)

@sethmlarson sethmlarson left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

I reviewed only generate_sbom.py and had one small comment:

return externals
# The batch file reads the OpenSSL version from the file shared with
# CI and the other platforms, so expand that reference the same way.
openssl_version_path = CPYTHON_ROOT_DIR / "Tools/ssl/openssl-version.txt"

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

I would like a more robust system here so that we don't mistakenly update get_externals.bat with new variables without assigning them meaning here. Could we check that externals doesn't contain % before returning?

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.

Yes, how does 56f86f0 look?

@zware zware left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

TBH, I'm not excited about this. It feels to me like a band-aid solution to a dependency update problem that's bigger than just OpenSSL (though I'll grant that OpenSSL is definitely the biggest and most annoying part of the problem). I'd much rather see a more comprehensive cross-platform dependency handling scheme, or until that's available just documentation of the existing hoops to be jumped through.

I'd be especially wary of backporting this, but not backporting means we still have to jump through the hoops, just a branch behind.

I don't intend to block this, but wanted to share that feeling.

@hugovk

hugovk commented Nov 18, 2026

Copy link
Copy Markdown
Member Author

I agree overhauling how the dependencies are handled is needed, but that's a big chunk of design and work, and https://discuss.python.org/t/pre-pep-redesigning-cpython-source-binary-dependencies/101824 seems to have stalled.

The idea of this PR is to make the current process less manual work for OpenSSL, but you've been taking care of it recently and if you think this won't help in the short/medium term, then I'm happy to close it.

I don't really know all the steps needed, so agree documentation would be good. We don't need polished docs right away, jotting down some notes the next time would be a great start.

@ned-deily

Copy link
Copy Markdown
Member

FWIW, I share @zware's sentiments here.

@zware

zware commented Nov 19, 2026

Copy link
Copy Markdown
Member

I don't really know all the steps needed, so agree documentation would be good. We don't need polished docs right away, jotting down some notes the next time would be a great start.

You have pretty much everything in this PR; the only things I'm sure aren't fully covered by "update the version in these files" are the sha256sum in the macOS installer builder and how to get the binaries into place for Android, iOS, and Windows. Just to get something written somewhere for those:

  • Android needs a tag pushed to beeware/cpython-android-source-deps following the format of existing tags
  • iOS needs a tag pushed to beeware/cpython-apple-source-deps following the format of existing tags, then the created release needs to be published
  • Windows needs clean sources imported and tagged in python/cpython-source-deps, a build triggered on Azure using default settings (requires approval from someone on the release team), then artifacts downloaded from Azure and imported/tagged in python/cpython-bin-deps

@freakboy3742

Copy link
Copy Markdown
Contributor

FWIW: I'm somewhat motivated to work on this - I'd like to get the iOS/Android dependencies out of the BeeWare repo and into a CPython repo; and if we can clean up dependencies for other platforms while we're at it, all the better.

I'll follow up on the DPO thread.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

awaiting merge dependencies Pull requests that update a dependency file infra CI, GitHub Actions, buildbots, Dependabot, etc. needs backport to 3.14 bugs and security fixes needs backport to 3.15 bugs and security fixes OS-android OS-ios OS-mac OS-windows skip news topic-SSL type-feature A feature request or enhancement

Projects

None yet

Development

Successfully merging this pull request may close these issues.

7 participants