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
This commit is contained in:
parent
8e56b3482c
commit
0dca4d95d4
@ -1,9 +1,24 @@
|
|||||||
---
|
Index: Python-3.10.5/Lib/compileall.py
|
||||||
Lib/distutils/util.py | 2 +-
|
===================================================================
|
||||||
1 file changed, 1 insertion(+), 1 deletion(-)
|
--- Python-3.10.5.orig/Lib/compileall.py
|
||||||
|
+++ Python-3.10.5/Lib/compileall.py
|
||||||
--- a/Lib/distutils/util.py
|
@@ -96,6 +96,12 @@ def compile_dir(dir, maxlevels=None, ddi
|
||||||
+++ b/Lib/distutils/util.py
|
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=%
|
@@ -436,7 +436,7 @@ byte_compile(files, optimize=%r, force=%
|
||||||
else:
|
else:
|
||||||
from py_compile import compile
|
from py_compile import compile
|
||||||
|
@ -257,6 +257,12 @@ Tue Aug 2 17:13:37 UTC 2022 - Matej Cepl <mcepl@suse.com>
|
|||||||
- no-skipif-doctests.patch
|
- no-skipif-doctests.patch
|
||||||
- skip-test_pyobject_freed_is_freed.patch
|
- skip-test_pyobject_freed_is_freed.patch
|
||||||
|
|
||||||
|
-------------------------------------------------------------------
|
||||||
|
Sun Jul 31 09:41:30 UTC 2022 - Stephan Kulow <coolo@suse.com>
|
||||||
|
|
||||||
|
- 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 <mcepl@suse.com>
|
Thu Jul 21 14:19:52 UTC 2022 - Matej Cepl <mcepl@suse.com>
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user