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