From 0dca4d95d4e526cd8d316fdc24405bddc8dcc04620de9f6008bed10a04ac0d64 Mon Sep 17 00:00:00 2001 From: Matej Cepl Date: Sun, 11 Sep 2022 08:43:05 +0000 Subject: [PATCH] Accepting request 991870 from home:coolo:branches:devel:languages:python:Factory - Extend distutils-reproducible-compile.patch with a workaround for non reproducible pyc files issue 93317 OBS-URL: https://build.opensuse.org/request/show/991870 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:Factory/python310?expand=0&rev=57 --- distutils-reproducible-compile.patch | 27 +++++++++++++++++++++------ python310.changes | 6 ++++++ 2 files changed, 27 insertions(+), 6 deletions(-) diff --git a/distutils-reproducible-compile.patch b/distutils-reproducible-compile.patch index fd98baa..02f6b90 100644 --- a/distutils-reproducible-compile.patch +++ b/distutils-reproducible-compile.patch @@ -1,9 +1,24 @@ ---- - Lib/distutils/util.py | 2 +- - 1 file changed, 1 insertion(+), 1 deletion(-) - ---- a/Lib/distutils/util.py -+++ b/Lib/distutils/util.py +Index: Python-3.10.5/Lib/compileall.py +=================================================================== +--- Python-3.10.5.orig/Lib/compileall.py ++++ Python-3.10.5/Lib/compileall.py +@@ -96,6 +96,12 @@ def compile_dir(dir, maxlevels=None, ddi + maxlevels = sys.getrecursionlimit() + files = _walk_dir(dir, quiet=quiet, maxlevels=maxlevels) + success = True ++ # work around https://github.com/python/cpython/issues/93317 ++ sys.intern('{') ++ sys.intern('{{') ++ sys.intern('}') ++ sys.intern('}}') ++ + if workers != 1 and ProcessPoolExecutor is not None: + # If workers == 0, let ProcessPoolExecutor choose + workers = workers or None +Index: Python-3.10.5/Lib/distutils/util.py +=================================================================== +--- Python-3.10.5.orig/Lib/distutils/util.py ++++ Python-3.10.5/Lib/distutils/util.py @@ -436,7 +436,7 @@ byte_compile(files, optimize=%r, force=% else: from py_compile import compile diff --git a/python310.changes b/python310.changes index 17901eb..5976509 100644 --- a/python310.changes +++ b/python310.changes @@ -257,6 +257,12 @@ Tue Aug 2 17:13:37 UTC 2022 - Matej Cepl - no-skipif-doctests.patch - skip-test_pyobject_freed_is_freed.patch +------------------------------------------------------------------- +Sun Jul 31 09:41:30 UTC 2022 - Stephan Kulow + +- Extend distutils-reproducible-compile.patch with a workaround + for non reproducible pyc files issue 93317 + ------------------------------------------------------------------- Thu Jul 21 14:19:52 UTC 2022 - Matej Cepl