Gentoo Archives: gentoo-dev

From: Arthur Zamarin <arthurzam@g.o>
To: gentoo-dev@l.g.o
Cc: python@g.o, Arthur Zamarin <arthurzam@g.o>, Sam James <sam@g.o>
Subject: [gentoo-dev] [PATCH] 2021-09-03-setuptools_scm-6_3_0-temporary-breakage: add item
Date: Fri, 03 Sep 2021 21:43:32
Message-Id: 20210903213855.925812-1-arthurzam@gentoo.org
1 Bug: https://bugs.gentoo.org/811504
2 Signed-off-by: Sam James <sam@g.o>
3 Signed-off-by: Arthur Zamarin <arthurzam@g.o>
4 ---
5 ...ptools_scm-6_3_0-temporary-breakage.en.txt | 49 +++++++++++++++++++
6 1 file changed, 49 insertions(+)
7 create mode 100644 2021-09-03-setuptools_scm-6_3_0-temporary-breakage/2021-09-03-setuptools_scm-6_3_0-temporary-breakage.en.txt
8
9 diff --git a/2021-09-03-setuptools_scm-6_3_0-temporary-breakage/2021-09-03-setuptools_scm-6_3_0-temporary-breakage.en.txt b/2021-09-03-setuptools_scm-6_3_0-temporary-breakage/2021-09-03-setuptools_scm-6_3_0-temporary-breakage.en.txt
10 new file mode 100644
11 index 0000000..0463acd
12 --- /dev/null
13 +++ b/2021-09-03-setuptools_scm-6_3_0-temporary-breakage/2021-09-03-setuptools_scm-6_3_0-temporary-breakage.en.txt
14 @@ -0,0 +1,49 @@
15 +Title: setuptools_scm-6.3.0 temporary runtime breakage
16 +Author: Arthur Zamarin <arthurzam@g.o>
17 +Author: Sam James <sam@g.o>
18 +Posted: 2021-09-03
19 +Revision: 1
20 +News-Item-Format: 2.0
21 +Display-If-Installed: =dev-python/setuptools_scm-6.3.0
22 +
23 +Users who upgraded to =dev-python/setuptools_scm-6.3.0 between 2021-09-03
24 +15:42 UTC and 2021-09-03 19:03 UTC may be affected by a bug [0]. If you have not
25 +upgraded to this version or have >=dev-python/setuptools_scm-6.3.0-r1 installed,
26 +you are not affected.
27 +
28 +A missing dependency in the setuptools_scm ebuild meant there was a timeframe in
29 +which anyone who installed dev-python/setuptools_scm and dev-python/packaging in
30 +the wrong order won't be able to build any Python package using setuptools
31 +unless a workaround is applied.
32 +
33 +Specifically, this affects users with =dev-python/setuptools_scm-6.3.0 installed
34 +and where dev-python/packaging is not installed (applies separately for each/any
35 +Python target). The bad tree state was between gentoo.git commits
36 +8882e54abf78d3af69faed5844e3ad441482f23e and
37 +0c76b447cd1be9cf611f649970851750304d9ca6.
38 +
39 +Affected users will see errors similar to the following when installing Python
40 +packages:
41 +```
42 +pkg_resources.DistributionNotFound: The 'packaging>=20.0' distribution was not
43 +found and is required by the application
44 +```
45 +
46 +To fix this manually, you need to fully remove all dev-python/setuptools_scm
47 +files by running the following commands:
48 +
49 +# Necessary to obtain a fixed version of setuptools_scm
50 +$ emerge --sync
51 +
52 +# --unmerge is NOT advised normally, but is required to avoid setuptools picking
53 +# up the runtime-broken setuptools_scm version when re-installing setuptools_scm
54 +$ emerge --unmerge =dev-python/setuptools_scm-6.3.0
55 +
56 +$ emerge --oneshot dev-python/setuptools dev-python/pyparsing dev-python/packaging
57 +$ emerge --oneshot ">=dev-python/setuptools_scm-6.3.0-r1"
58 +
59 +Note that the version specifiers above are not strictly necessary if you have an
60 +up-to-date copy of the tree but provide a safety net.
61 +
62 +[0] https://bugs.gentoo.org/811504
63 +
64 --
65 2.33.0