Repository navigation
Conversation
savannahostrowski
left a comment
There was a problem hiding this comment.
Looks good to me! We could include the SSL CI matrix in the follow-up script too.
|
cc also @zware as you've done a lot of the recent updates (thank you!). |
picnixz
left a comment
There was a problem hiding this comment.
LGTM with just a simple suggestion but you are free to ignore.
freakboy3742
left a comment
There was a problem hiding this comment.
iOS and Android changes make sense to me (as does the general goal)
sethmlarson
left a comment
There was a problem hiding this comment.
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" |
There was a problem hiding this comment.
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?
zware
left a comment
There was a problem hiding this comment.
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.
|
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. |
|
FWIW, I share @zware's sentiments here. |
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:
|
|
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. |
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.pystill needs updating by hand, andTools/ssl/multissltests.pynot changed. These can updated by a script in a followup.