Skip to content

Commit 2439c5f

Browse files
hugovkzware
andauthored
Update devguide following Python 3.10 EOL (#1916)
Co-authored-by: Zachary Ware <git@ware-mail.net>
1 parent d9adc4f commit 2439c5f

4 files changed

Lines changed: 16 additions & 38 deletions

File tree

‎.ruff.toml‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
target-version = "py310"
1+
target-version = "py311"
22
fix = true
33
output-format = "full"
44
line-length = 88

‎_tools/generate_release_cycle.py‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ def __init__(self, *, limit_to_active=False, special_py27=False) -> None:
101101

102102
def write_csv(self) -> None:
103103
"""Output CSV files."""
104-
now_str = str(dt.datetime.now(dt.timezone.utc))
104+
now_str = str(dt.datetime.now(dt.UTC))
105105

106106
versions_by_category = {"branches": {}, "end-of-life": {}}
107107
headers = None

‎developer-workflow/development-cycle.rst‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -348,7 +348,7 @@ Current administrators
348348
+--------------------+----------------------------------------------------------+-------------------+
349349
| Thomas Wouters | Python 3.12 and 3.13 Release Manager | Yhg1s |
350350
+--------------------+----------------------------------------------------------+-------------------+
351-
| Pablo Galindo | Python 3.10 and 3.11 Release Manager, | pablogsal |
351+
| Pablo Galindo | Python 3.11 Release Manager, | pablogsal |
352352
| | Maintainer of buildbot.python.org | |
353353
+--------------------+----------------------------------------------------------+-------------------+
354354
| Łukasz Langa | | ambv |

‎getting-started/setup-building.rst‎

Lines changed: 13 additions & 35 deletions
Original file line numberDiff line numberDiff line change
@@ -412,7 +412,7 @@ build you ultimately care about (that is, the build Python is not meant for use
412412
by you directly, only the build system).
413413

414414
The easiest way to get a debug build of CPython for WASI is to run the
415-
following command with Python 3.11 or newer:
415+
following command:
416416

417417
.. tab:: Python 3.15+
418418

@@ -882,48 +882,26 @@ some of CPython's modules (for example, ``zlib``).
882882

883883
$ brew bundle --file=Misc/Brewfile
884884

885-
.. tab:: Python 3.11+
885+
Then configure::
886886

887-
For Python 3.11 and newer::
888-
889-
$ GDBM_CFLAGS="-I$(brew --prefix gdbm)/include" \
890-
GDBM_LIBS="-L$(brew --prefix gdbm)/lib -lgdbm" \
891-
./configure --config-cache \
892-
--with-pydebug \
893-
--with-openssl="$(brew --prefix openssl@3)"
894-
895-
.. tab:: Python 3.10
896-
897-
For Python 3.10::
898-
899-
$ CPPFLAGS="-I$(brew --prefix gdbm)/include -I$(brew --prefix xz)/include" \
900-
LDFLAGS="-L$(brew --prefix gdbm)/lib -L$(brew --prefix xz)/lib" \
901-
./configure --config-cache \
902-
--with-pydebug \
903-
--with-openssl="$(brew --prefix openssl@3)" \
904-
--with-tcltk-libs="$(pkg-config --libs tcl tk)" \
905-
--with-tcltk-includes="$(pkg-config --cflags tcl tk)" \
906-
--with-dbmliborder=gdbm:ndbm
907-
908-
(``--with-dbmliborder`` is a workaround for a Homebrew-specific change
909-
to ``gdbm``; see `#89452 <https://github.com/python/cpython/issues/89452>`__
910-
for details.)
887+
$ GDBM_CFLAGS="-I$(brew --prefix gdbm)/include" \
888+
GDBM_LIBS="-L$(brew --prefix gdbm)/lib -lgdbm" \
889+
./configure --config-cache \
890+
--with-pydebug \
891+
--with-openssl="$(brew --prefix openssl@3)"
911892

912893
.. tab:: MacPorts
913894

914895
For **MacPorts**, install dependencies using ``port``::
915896

916897
$ sudo port install pkgconfig openssl xz gdbm tk +quartz mpdecimal zstd
917898

918-
.. tab:: Python 3.11+
919-
920-
For Python 3.11 and newer::
921-
922-
$ GDBM_CFLAGS="-I$(dirname $(dirname $(which port)))/include" \
923-
GDBM_LIBS="-L$(dirname $(dirname $(which port)))/lib -lgdbm" \
924-
./configure --config-cache \
925-
--with-pydebug
899+
Then configure::
926900

901+
$ GDBM_CFLAGS="-I$(dirname $(dirname $(which port)))/include" \
902+
GDBM_LIBS="-L$(dirname $(dirname $(which port)))/lib -lgdbm" \
903+
./configure --config-cache \
904+
--with-pydebug
927905

928906
And finally, run ``make``::
929907

@@ -996,7 +974,7 @@ make sure you also commit the changes in the generated files.
996974
Python's :file:`configure.ac` script requires a specific version of
997975
GNU Autoconf.
998976
For Python 3.12 and newer, GNU Autoconf v2.71 is required.
999-
For Python 3.11 and earlier, GNU Autoconf v2.69 is required.
977+
For Python 3.11, GNU Autoconf v2.69 is required.
1000978

1001979
The recommended and by far the easiest way to regenerate :file:`configure` is::
1002980

0 commit comments

Comments
 (0)