installer: upgrade to python 3.9 #3918
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Python 3.8.11, the latest patch release on the 3.8 branch, has entered the security release cycle at the end of June, which means there won't be any bugfixes anymore and no pre-built Windows binaries will be available. This means that even though there will still be security patches, pynsist won't be able to build the installer with releases on this Python branch anymore as it requires the pre-built embeddable Python builds. This is why the Streamlink installer for Windows needs to switch to the Python 3.9 branch, so we don't have to ship outdated and potentially insecure Python builds which can't be upgraded.
https://www.python.org/downloads/release/python-3811/
Remember that Python 3.9 is explicitly incompatible with Windows 7:
https://www.python.org/downloads/release/python-390/
We had already downgraded the installer from py39 to py38 in November last year as a compromise to make it compatible again with W7 after bumping it from py36 to py39, but the time has now come to finally drop W7. Users of W7 and below will from now on need to install Streamlink via pip in a dedicated python environment.
The docs mention W10 as the minimum requirement because W8 and W8.1 have already reached their EOL in 2018 and the marketshare is negligible compared to W7.