Skip to content

Commit

Permalink
Use Python 3.9 as base version
Browse files Browse the repository at this point in the history
  • Loading branch information
hugovk committed Oct 23, 2024
1 parent c7f7906 commit bee605c
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 12 deletions.
4 changes: 0 additions & 4 deletions builders/macos-python-builder.psm1
Original file line number Diff line number Diff line change
Expand Up @@ -50,10 +50,6 @@ class macOSPythonBuilder : NixPythonBuilder {
### will never be used itself by a Github Actions runner but using a universal2 Python is the only way to build
### universal2 C extensions and wheels. This is supported by Python >= 3.10 and was backported to Python >=
### 3.9.1 and >= 3.8.10.
### Disabled, discussion: https://github.com/actions/python-versions/pull/114
# if ($this.Version -ge "3.8.10" -and $this.Version -ne "3.8.13" -and $this.Version -ne "3.9.0" ) {
# $configureString += " --enable-universalsdk --with-universal-archs=universal2"
# }

### OS X 10.11, Apple no longer provides header files for the deprecated system version of OpenSSL.
### Solution is to install these libraries from a third-party package manager,
Expand Down
4 changes: 2 additions & 2 deletions builders/ubuntu-python-builder.psm1
Original file line number Diff line number Diff line change
Expand Up @@ -53,8 +53,8 @@ class UbuntuPythonBuilder : NixPythonBuilder {
Prepare system environment by installing dependencies and required packages.
#>

if ($this.Version -lt "3.5.3") {
Write-Host "Python versions lower than 3.5.3 are not supported"
if ($this.Version -lt "3.9.0") {
Write-Host "Python versions lower than 3.9.0 are not supported"
exit 1
}

Expand Down
7 changes: 1 addition & 6 deletions tests/sources/python-modules.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
import importlib
import sys

# The Python standard library as of Python 3.8
# The Python standard library as of Python 3.9
standard_library = [
'abc',
'aifc',
Expand Down Expand Up @@ -51,7 +51,6 @@
'dis',
'distutils',
'doctest',
'dummy_threading',
'email',
'encodings',
'ensurepip',
Expand Down Expand Up @@ -198,10 +197,6 @@

# Add new modules
# See https://docs.python.org/3/whatsnew/index.html
# 'dummy_threading' module has been removed from Python 3.9
if sys.version_info > (3, 8):
standard_library.remove('dummy_threading')

# 'symbol' and 'formatter' modules have been removed from Python 3.10
if sys.version_info >= (3, 10):
standard_library.remove('symbol')
Expand Down

0 comments on commit bee605c

Please sign in to comment.