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

[Packaging] Bump embedded Python to 3.8 for deb packages #20869

Merged
merged 11 commits into from
Feb 17, 2022

Conversation

jiasli
Copy link
Member

@jiasli jiasli commented Dec 30, 2021

Context

Python 3.6 has reached its End of Life on 2021-12-23 (https://www.python.org/downloads/) and there will be no security updates, which puts Azure CLI deb packages at risk.

Change

This PR bumps Python to 3.8.11 for deb packages.

Question: Should we use Python 3.9 or even Python 3.10? Windows MSI currently contains Python 3.8.9.

Related PRs

History Notes

[Packaging] Bump embedded Python to 3.8 for deb packages
[Packaging] BREAKING CHANGE: Drop support for Ubuntu 14.04 Trusty Tahr and Debian 8 Jessie

@jiasli
Copy link
Member Author

jiasli commented Dec 30, 2021

CI fails on jobs:

  • Build Deb Packages Trusty (Ubuntu 14.04)
  • Build Deb Packages Jessie (Debian 8)

https://dev.azure.com/azure-sdk/public/_build/results?buildId=1267742&view=logs&j=1c081627-a4dd-57ff-b320-9981b0ff7f6f&t=fab9ebe1-3cad-5c96-61ed-c5bfa2e064ad&l=9616

2021-12-29T08:25:58.3150877Z Could not build the ssl module!
2021-12-29T08:25:58.3151326Z Python requires an OpenSSL 1.0.2 or 1.1 compatible libssl with X509_VERIFY_PARAM_set1_host().
2021-12-29T08:25:58.3152432Z LibreSSL 2.6.4 and earlier do not provide the necessary APIs, https://github.com/libressl-portable/portable/issues/381

This is because LibreSSL on These distributions are too old. It turns out that building Python 3.7+ on old distributions like these is complex, as we need to manually build openSSL as well:

Per https://wiki.ubuntu.com/Releases, Ubuntu 14.04.6 Trusty has reached its End of Standard Support in April 2019.
Per https://wiki.debian.org/DebianReleases, Debian 8 Jessie has reached its EOL LTS on 2020-06-30.

Perhaps it is time to drop support for Ubuntu 14.04.6 Trusty and Debian 8 Jessie as well.

@jiasli jiasli self-assigned this Dec 30, 2021
@jiasli jiasli added this to the Jan 2022 (2022-02-08) milestone Dec 30, 2021
@jiasli jiasli changed the title [Packaging] Bump embedded Python to 3.8.11 for deb package [Packaging] Bump embedded Python to 3.8.11 for deb packages Feb 7, 2022
@jiasli jiasli changed the title [Packaging] Bump embedded Python to 3.8.11 for deb packages [Packaging] Bump embedded Python to 3.8 for deb packages Feb 7, 2022
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.

4 participants