]> sourceware.org Git - glibc.git/commitdiff
Remove pre-Python-3.4 compatibility from build-many-glibcs.py.
authorJoseph Myers <joseph@codesourcery.com>
Fri, 26 Oct 2018 15:47:23 +0000 (15:47 +0000)
committerJoseph Myers <joseph@codesourcery.com>
Fri, 26 Oct 2018 15:47:23 +0000 (15:47 +0000)
Since we have consensus on requiring Python 3.4 or later to build
glibc, it follows that compatibility with older Python versions is
also no longer relevant to auxiliary Python scripts for use in glibc
development.  This patch removes such compatibility code from
build-many-glibcs.py (compatibility code needed for 3.4, which lacks
the newer subprocess interface, is kept).  Because
build-many-glibcs.py is not itself called from the glibc build system,
this patch is independent of the configure checks for having a
new-enough Python version, which are only relevant to uses of Python
from the main build and test process.

Tested with build-many-glibcs.py building glibc for aarch64-linux-gnu
(with Python 3.4 to make sure that still works).

* scripts/build-many-glibcs.py: Remove compatibility for missing
os.cpu_count and re.fullmatch.

ChangeLog
scripts/build-many-glibcs.py

index 8f2ccefa0234b1546be0c31dd8230f1e34e50bef..736d85f2214fc266af90d326d4113d3d3c152929 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2018-10-26  Joseph Myers  <joseph@codesourcery.com>
+
+       * scripts/build-many-glibcs.py: Remove compatibility for missing
+       os.cpu_count and re.fullmatch.
+
 2018-10-26  Szabolcs Nagy  <szabolcs.nagy@arm.com>
 
        [BZ #23822]
index 3f288e0e0b665e48da10a58ce7696ecdc9f56838..1bf8ee1d2bf2ff8ce6ffb7b571e36aed413c88e3 100755 (executable)
@@ -49,17 +49,6 @@ import sys
 import time
 import urllib.request
 
-try:
-    os.cpu_count
-except:
-    import multiprocessing
-    os.cpu_count = lambda: multiprocessing.cpu_count()
-
-try:
-    re.fullmatch
-except:
-    re.fullmatch = lambda p,s,f=0: re.match(p+"\\Z",s,f)
-
 try:
     subprocess.run
 except:
This page took 0.065983 seconds and 5 git commands to generate.