Gentoo Archives: gentoo-dev

From: Sergei Trofimovich <slyfox@g.o>
To: gentoo-dev@l.g.o
Subject: Re: [gentoo-dev] Python 3.10.0rc1
Date: Wed, 04 Aug 2021 19:27:53
Message-Id: 20210804202745.56a6d473@zn3
In Reply to: [gentoo-dev] Python 3.10.0rc1 by "Michał Górny"
1 On Tue, 03 Aug 2021 11:15:13 +0200
2 Michał Górny <mgorny@g.o> wrote:
3
4 > Hi, everyone.
5 >
6 > Just a quick note: I've pushed Python 3.10.0rc1 today. It has many last
7 > minute changes that can break packages that were ported to previous
8 > 3.10.0 betas before.
9 >
10 > For practical reasons, we're going to support only >=3.10.0_rc1 going
11 > forward. If your package fails with >=3.10.0_rc1, feel free to apply
12 > fixes without caring for backwards compatibility with betas. If you see
13 > failures with 3.10.0_beta4, please try upgrading to _rc1 first.
14 >
15 > Notably, the newest releases of dev-python/django and dev-python/sphinx
16 > that I've pushed today were updated for _rc1 and will have failures with
17 > _beta4.
18
19 Should we drop PYTHON_COMPAT=python3_10 for known to break package versions?
20 For example latest stable dev-python/sphinx-4.0.3 did not like today's ~arch
21 python:
22
23 Traceback (most recent call last):
24 File "/usr/lib/python-exec/python3.10/sphinx-build", line 33, in <module>
25 sys.exit(load_entry_point('Sphinx==4.0.3', 'console_scripts', 'sphinx-build')())
26 File "/usr/lib/python-exec/python3.10/sphinx-build", line 25, in importlib_load_entry_point
27 return next(matches).load()
28 File "/usr/lib/python3.10/importlib/metadata/__init__.py", line 162, in load
29 module = import_module(match.group('module'))
30 File "/usr/lib/python3.10/importlib/__init__.py", line 126, in import_module
31 return _bootstrap._gcd_import(name[level:], package, level)
32 File "<frozen importlib._bootstrap>", line 1050, in _gcd_import
33 File "<frozen importlib._bootstrap>", line 1027, in _find_and_load
34 File "<frozen importlib._bootstrap>", line 1006, in _find_and_load_unlocked
35 File "<frozen importlib._bootstrap>", line 688, in _load_unlocked
36 File "<frozen importlib._bootstrap_external>", line 883, in exec_module
37 File "<frozen importlib._bootstrap>", line 241, in _call_with_frames_removed
38 File "/usr/lib/python3.10/site-packages/sphinx/cmd/build.py", line 25, in <module>
39 from sphinx.application import Sphinx
40 File "/usr/lib/python3.10/site-packages/sphinx/application.py", line 31, in <module>
41 from sphinx.config import Config
42 File "/usr/lib/python3.10/site-packages/sphinx/config.py", line 21, in <module>
43 from sphinx.util import logging
44 File "/usr/lib/python3.10/site-packages/sphinx/util/__init__.py", line 41, in <module>
45 from sphinx.util.typing import PathMatcher
46 File "/usr/lib/python3.10/site-packages/sphinx/util/typing.py", line 37, in <module>
47 from types import Union as types_Union
48 ImportError: cannot import name 'Union' from 'types' (/usr/lib/python3.10/types.py)
49
50 --
51
52 Sergei

Replies

Subject Author
Re: [gentoo-dev] Python 3.10.0rc1 "Michał Górny" <mgorny@g.o>