<86>Apr 21 00:47:17 userdel[66467]: delete user 'rooter' <86>Apr 21 00:47:17 groupadd[66623]: group added to /etc/group: name=rooter, GID=693 <86>Apr 21 00:47:17 groupadd[66623]: group added to /etc/gshadow: name=rooter <86>Apr 21 00:47:17 groupadd[66623]: new group: name=rooter, GID=693 <86>Apr 21 00:47:17 useradd[66671]: new user: name=rooter, UID=693, GID=693, home=/root, shell=/bin/bash <86>Apr 21 00:47:17 userdel[66708]: delete user 'builder' <86>Apr 21 00:47:17 userdel[66708]: removed group 'builder' owned by 'builder' <86>Apr 21 00:47:17 userdel[66708]: removed shadow group 'builder' owned by 'builder' <86>Apr 21 00:47:17 groupadd[66734]: group added to /etc/group: name=builder, GID=694 <86>Apr 21 00:47:17 groupadd[66734]: group added to /etc/gshadow: name=builder <86>Apr 21 00:47:17 groupadd[66734]: new group: name=builder, GID=694 <86>Apr 21 00:47:17 useradd[66754]: new user: name=builder, UID=694, GID=694, home=/usr/src, shell=/bin/bash <13>Apr 21 00:47:21 rpmi: libopenblas-0.2.14-alt1.git20150324 1433158855 installed <13>Apr 21 00:47:21 rpmi: libnumpy-py3-1:1.12.1-alt0.M80P.1 1496160663 installed <13>Apr 21 00:47:21 rpmi: libexpat-2.2.4-alt0.M80P.1 1503871120 installed <13>Apr 21 00:47:21 rpmi: libgdbm-1.8.3-alt10 1454943313 installed <13>Apr 21 00:47:21 rpmi: libopenblas-devel-0.2.14-alt1.git20150324 1433158855 installed <13>Apr 21 00:47:21 rpmi: libnumpy-1:1.12.1-alt0.M80P.1 1496160663 installed <13>Apr 21 00:47:21 rpmi: libxblas-1.0.248-alt1 1322010716 installed <13>Apr 21 00:47:21 rpmi: libquadmath0-5.3.1-alt3.M80P.1 p8+225520.100.3.1 1553688800 installed <13>Apr 21 00:47:21 rpmi: libgfortran3-5.3.1-alt3.M80P.1 p8+225520.100.3.1 1553688800 installed <13>Apr 21 00:47:21 rpmi: liblapack-1:3.5.0-alt1 1401382194 installed <13>Apr 21 00:47:21 rpmi: libgpg-error-1.31-alt1.M80P.1 1529024730 installed <13>Apr 21 00:47:21 rpmi: libgcrypt20-1.8.3-alt4 p8+219793.200.6.1 1551112986 installed <13>Apr 21 00:47:21 rpmi: libxslt-1.1.28-alt4 1448210404 installed <13>Apr 21 00:47:21 rpmi: gcc-c++-common-1.4.20-alt1 1432315196 installed <13>Apr 21 00:47:22 rpmi: libstdc++5-devel-5.3.1-alt3.M80P.1 p8+225520.100.3.1 1553688800 installed <13>Apr 21 00:47:22 rpmi: libtinfo-devel-5.9-alt8 1456756459 installed <13>Apr 21 00:47:22 rpmi: libncurses-devel-5.9-alt8 1456756459 installed <13>Apr 21 00:47:22 rpmi: python-modules-curses-2.7.11-alt6.M80P.1 1527682470 installed <13>Apr 21 00:47:22 rpmi: libverto-0.2.6-alt1_6 1455633234 installed <13>Apr 21 00:47:22 rpmi: libkeyutils-1.5.10-alt0.M80P.2 p8+216694.100.6.1 1547827915 installed <13>Apr 21 00:47:22 rpmi: libcom_err-1.42.13-alt2 1449075846 installed <13>Apr 21 00:47:22 rpmi: ca-certificates-2016.02.25-alt1 1462368370 installed <13>Apr 21 00:47:22 rpmi: libcrypto10-1.0.2n-alt0.M80P.1 1512766129 installed <13>Apr 21 00:47:23 rpmi: gcc5-c++-5.3.1-alt3.M80P.1 p8+225520.100.3.1 1553688800 installed <13>Apr 21 00:47:23 rpmi: liblapack-devel-1:3.5.0-alt1 1401382194 installed <13>Apr 21 00:47:23 rpmi: libssl10-1.0.2n-alt0.M80P.1 1512766129 installed <86>Apr 21 00:47:23 groupadd[90163]: group added to /etc/group: name=_keytab, GID=499 <86>Apr 21 00:47:23 groupadd[90163]: group added to /etc/gshadow: name=_keytab <86>Apr 21 00:47:23 groupadd[90163]: new group: name=_keytab, GID=499 <13>Apr 21 00:47:23 rpmi: libkrb5-1.14.6-alt1.M80P.1 1525355673 installed <13>Apr 21 00:47:24 rpmi: python3-base-3.5.4-alt2.M80P.1 1527753911 installed <13>Apr 21 00:47:24 rpmi: python-modules-compiler-2.7.11-alt6.M80P.1 1527682470 installed <13>Apr 21 00:47:24 rpmi: libpython3-3.5.4-alt2.M80P.1 1527753911 installed <13>Apr 21 00:47:24 rpmi: python3-module-py-1.4.34-alt0.M80P.1 1503506764 installed <13>Apr 21 00:47:25 rpmi: python3-3.5.4-alt2.M80P.1 1527753911 installed <13>Apr 21 00:47:25 rpmi: python-modules-email-2.7.11-alt6.M80P.1 1527682470 installed <13>Apr 21 00:47:25 rpmi: python3-dev-3.5.4-alt2.M80P.1 1527753911 installed <13>Apr 21 00:47:25 rpmi: rpm-build-python3-0.1.10.10-alt1.M80P.1 1530521451 installed <13>Apr 21 00:47:25 rpmi: python-modules-unittest-2.7.11-alt6.M80P.1 1527682470 installed <13>Apr 21 00:47:25 rpmi: python3-module-numpy-1:1.12.1-alt0.M80P.1 1496160663 installed <13>Apr 21 00:47:26 rpmi: python3-module-pytest-3.2.1-alt0.M80P.1 1503499784 installed <13>Apr 21 00:47:26 rpmi: python3-module-setuptools-1:18.5-alt0.M80P.1 1497527461 installed <13>Apr 21 00:47:26 rpmi: python3-module-numpy-testing-1:1.12.1-alt0.M80P.1 1496160663 installed <13>Apr 21 00:47:26 rpmi: libnumpy-py3-devel-1:1.12.1-alt0.M80P.1 1496160663 installed <13>Apr 21 00:47:26 rpmi: python-modules-2.7.11-alt6.M80P.1 1527682470 installed <13>Apr 21 00:47:26 rpmi: python-modules-xml-2.7.11-alt6.M80P.1 1527682470 installed <13>Apr 21 00:47:26 rpmi: python-modules-ctypes-2.7.11-alt6.M80P.1 1527682470 installed <13>Apr 21 00:47:26 rpmi: python-modules-encodings-2.7.11-alt6.M80P.1 1527682470 installed <13>Apr 21 00:47:26 rpmi: python-modules-json-2.7.11-alt6.M80P.1 1527682470 installed <13>Apr 21 00:47:26 rpmi: python-module-webencodings-0.5.1-alt0.M80P.1 1507185481 installed <13>Apr 21 00:47:26 rpmi: python-modules-multiprocessing-2.7.11-alt6.M80P.1 1527682470 installed <13>Apr 21 00:47:26 rpmi: python-modules-logging-2.7.11-alt6.M80P.1 1527682470 installed <13>Apr 21 00:47:26 rpmi: python-tools-2to3-2.7.11-alt6.M80P.1 1527682470 installed <13>Apr 21 00:47:26 rpmi: python-modules-hotshot-2.7.11-alt6.M80P.1 1527682470 installed <13>Apr 21 00:47:26 rpmi: python-modules-bsddb-2.7.11-alt6.M80P.1 1527682470 installed <13>Apr 21 00:47:26 rpmi: python-2.7.11-alt6.M80P.1 1527682470 installed <13>Apr 21 00:47:26 rpmi: python-strict-2.7.11-alt6.M80P.1 1527682534 installed <13>Apr 21 00:47:26 rpmi: python-dev-2.7.11-alt6.M80P.1 1527682470 installed <13>Apr 21 00:47:26 rpmi: python-module-six-1.10.0-alt7 1496087616 installed <13>Apr 21 00:47:26 rpmi: python-module-py-1.4.34-alt0.M80P.1 1503506764 installed <13>Apr 21 00:47:26 rpmi: python-module-pytest-3.2.1-alt0.M80P.1 1503499784 installed <13>Apr 21 00:47:26 rpmi: python-module-setuptools-1:18.5-alt0.M80P.1 1497527461 installed <13>Apr 21 00:47:26 rpmi: python-module-numpy-testing-1:1.12.1-alt0.M80P.1 1496160663 installed <13>Apr 21 00:47:27 rpmi: python-module-numpy-1:1.12.1-alt0.M80P.1 1496160663 installed <13>Apr 21 00:47:27 rpmi: python-module-html5lib-1:0.999999999-alt1.M80P.2 1507185603 installed <13>Apr 21 00:47:27 rpmi: python-module-lxml-4.0.0-alt0.M80P.1 1507163741 installed <13>Apr 21 00:47:27 rpmi: python-module-cssselect-0.9.1-alt1.1 1457858257 installed Installing python-module-numexpr-2.4.4-alt1.dev0.git20150815.1.1.src.rpm Building target platforms: x86_64 Building for target x86_64 Executing(%prep): /bin/sh -e /usr/src/tmp/rpm-tmp.60742 + umask 022 + /bin/mkdir -p /usr/src/RPM/BUILD + cd /usr/src/RPM/BUILD + cd /usr/src/RPM/BUILD + rm -rf python-module-numexpr-2.4.4 + echo 'Source #0 (numexpr-2.4.4.tar.gz):' Source #0 (numexpr-2.4.4.tar.gz): + /bin/gzip -dc /usr/src/RPM/SOURCES/numexpr-2.4.4.tar.gz + /bin/tar -xf - + cd python-module-numexpr-2.4.4 + /bin/chmod -c -Rf u+rwX,go-w . + install -p -m644 /usr/src/RPM/SOURCES/site.cfg ./ + sed -i 's|@LIBDIR@|/usr/lib64|' site.cfg + cp -fR . ../python3 + find ../python3 -type f -name '*.py' -exec 2to3 -w -n '{}' + RefactoringTool: Skipping optional fixer: buffer RefactoringTool: Skipping optional fixer: idioms RefactoringTool: Skipping optional fixer: set_literal RefactoringTool: Skipping optional fixer: ws_comma RefactoringTool: Refactored ../python3/setup.py RefactoringTool: No changes to ../python3/numexpr/version.py RefactoringTool: Refactored ../python3/numexpr/utils.py RefactoringTool: Refactored ../python3/numexpr/tests/test_numexpr.py RefactoringTool: No changes to ../python3/numexpr/tests/__init__.py RefactoringTool: Refactored ../python3/numexpr/necompiler.py --- ../python3/setup.py (original) +++ ../python3/setup.py (refactored) @@ -104,7 +104,7 @@ def debug(instring): if DEBUG: - print(" DEBUG: " + instring) + print((" DEBUG: " + instring)) def configuration(): --- ../python3/numexpr/utils.py (original) +++ ../python3/numexpr/utils.py (refactored) @@ -49,7 +49,7 @@ if use_vml: acc_dict = {None: 0, 'low': 1, 'high': 2, 'fast': 3} acc_reverse_dict = {1: 'low', 2: 'high', 3: 'fast'} - if mode not in acc_dict.keys(): + if mode not in list(acc_dict.keys()): raise ValueError( "mode argument must be one of: None, 'high', 'low', 'fast'") retval = _set_vml_accuracy_mode(acc_dict.get(mode, 0)) @@ -108,7 +108,7 @@ else: # OSX: return int(subprocess.check_output(["sysctl", "-n", "hw.ncpu"])) # Windows: - if os.environ.has_key("NUMBER_OF_PROCESSORS"): + if "NUMBER_OF_PROCESSORS" in os.environ: ncpus = int(os.environ["NUMBER_OF_PROCESSORS"]); if ncpus > 0: return ncpus @@ -147,7 +147,7 @@ if len(self) > self.maxentries: # Remove a 10% of (arbitrary) elements from the cache entries_to_remove = self.maxentries // 10 - for k in self.keys()[:entries_to_remove]: + for k in list(self.keys())[:entries_to_remove]: super(CacheDict, self).__delitem__(k) super(CacheDict, self).__setitem__(key, value) --- ../python3/numexpr/tests/test_numexpr.py (original) +++ ../python3/numexpr/tests/test_numexpr.py (refactored) @@ -7,7 +7,7 @@ # See LICENSE.txt and LICENSES/*.txt for details about copyright and # rights to use. #################################################################### -from __future__ import absolute_import, print_function + import os import sys @@ -123,7 +123,7 @@ assert_allclose(evaluate("sum(x**2+2,axis=0)"), sum(x ** 2 + 2, axis=0)) assert_allclose(evaluate("prod(x**2+2,axis=0)"), prod(x ** 2 + 2, axis=0)) # Check longs - x = x.astype(long) + x = x.astype(int) assert_allclose(evaluate("sum(x**2+2,axis=0)"), sum(x ** 2 + 2, axis=0)) assert_allclose(evaluate("prod(x**2+2,axis=0)"), prod(x ** 2 + 2, axis=0)) # Check complex @@ -549,7 +549,7 @@ x = None for test_scalar in (0, 1, 2): - for dtype in (int, long, np.float32, double, complex): + for dtype in (int, int, np.float32, double, complex): array_size = 100 a = arange(2 * array_size, dtype=dtype)[::2] a2 = zeros([array_size, array_size], dtype=dtype) @@ -576,7 +576,7 @@ # skip complex comparisons or functions not # defined in complex domain. continue - if (dtype in (int, long) and test_scalar and + if (dtype in (int, int) and test_scalar and expr == '(a+1) ** -1'): continue @@ -746,7 +746,7 @@ msg = "expected NotImplementedError regarding '%s'" % op try: evaluate(expr, local_dict) - except NotImplementedError, nie: + except NotImplementedError as nie: if "'%s'" % op not in nie.args[0]: self.fail(msg) else: @@ -832,11 +832,11 @@ def test_numexpr_num_threads(self): with _environment('OMP_NUM_THREADS', '5'): with _environment('NUMEXPR_NUM_THREADS', '3'): - self.assertEquals(3, numexpr.detect_number_of_threads()) + self.assertEqual(3, numexpr.detect_number_of_threads()) def test_omp_num_threads(self): with _environment('OMP_NUM_THREADS', '5'): - self.assertEquals(5, numexpr.detect_number_of_threads()) + self.assertEqual(5, numexpr.detect_number_of_threads()) # Case test for threads --- ../python3/numexpr/necompiler.py (original) +++ RefactoringTool: Refactored ../python3/numexpr/expressions.py RefactoringTool: Refactored ../python3/numexpr/cpuinfo.py ../python3/numexpr/necompiler.py (refactored) @@ -19,7 +19,7 @@ double = numpy.double if sys.version_info[0] < 3: int_ = int - long_ = long + long_ = int else: int_ = numpy.int32 long_ = numpy.int64 @@ -40,7 +40,7 @@ kind_to_typecode['str'] = 's' type_to_typecode[str] = 's' -scalar_constant_kinds = kind_to_typecode.keys() +scalar_constant_kinds = list(kind_to_typecode.keys()) class ASTNode(object): @@ -297,7 +297,7 @@ const_map = {} for a in ast.allOf('constant'): const_map[(a.astKind, a.value)] = a - ordered_constants = const_map.keys() + ordered_constants = list(const_map.keys()) ordered_constants.sort() constants_order = [const_map[v] for v in ordered_constants] constants = [convertConstantToKind(a.value, a.astKind) @@ -507,7 +507,7 @@ types = dict(signature) input_order = [name for (name, type_) in signature] - if isinstance(ex, (str, unicode)): + if isinstance(ex, str): ex = stringToExpression(ex, types, context) # the AST is like the expression, but the node objects don't have @@ -729,7 +729,7 @@ like float64 to float32, are allowed. * 'unsafe' means any data conversions may be done. """ - if not isinstance(ex, (str, unicode)): + if not isinstance(ex, str): raise ValueError("must specify expression as a string") # Get the names for this expression context = getContext(kwargs, frame_depth=1) --- ../python3/numexpr/expressions.py (original) +++ ../python3/numexpr/expressions.py (refactored) @@ -23,7 +23,7 @@ default_kind = 'double' if sys.version_info[0] < 3: int_ = int - long_ = long + long_ = int else: int_ = numpy.int32 long_ = numpy.int64 @@ -33,7 +33,7 @@ kind_to_type = {'bool': bool, 'int': int_, 'long': long_, 'float': float, 'double': double, 'complex': complex, 'bytes': bytes} kind_rank = ['bool', 'int', 'long', 'float', 'double', 'complex', 'none'] -scalar_constant_types = [bool, int_, long, float, double, complex, bytes] +scalar_constant_types = [bool, int_, int, float, double, complex, bytes] # Final corrections for Python 3 (mainly for PyTables needs) if sys.version_info[0] > 2: @@ -157,7 +157,7 @@ for converter in float, complex: try: y = converter(x) - except StandardError, err: + except Exception as err: continue if y == x: return converter @@ -430,7 +430,7 @@ # The next check is commented out. See #24 for more info. - def __nonzero__(self): + def __bool__(self): raise TypeError("You can't use Python's standard boolean operators in " "NumExpr expressions. You should use their bitwise " "counterparts instead: '&' instead of 'and', " --- ../python3/numexpr/cpuinfo.py (original) +++ ../python3/numexpr/cpuinfo.py (refactored) @@ -38,7 +38,7 @@ p = subprocess.Popen(cmd, stdout=subprocess.PIPE) output, _ = p.communicate() status = p.returncode - except EnvironmentError, e: + except EnvironmentError as e: warnings.warn(str(e), UserWarning, stacklevel=stacklevel) return False, '' if os.WIFEXITED(status) and os.WEXITSTATUS(status) in successful_status: @@ -99,7 +99,7 @@ return lambda func=self._try_call, attr=attr: func(attr) else: return lambda: None - raise AttributeError, name + raise AttributeError(name) def _getNCPUs(self): return 1 @@ -128,7 +128,7 @@ info[0]['uname_m'] = output.strip() try: fo = open('/proc/cpuinfo') - except EnvironmentError, e: + except EnvironmentError as e: warnings.warn(str(e), UserWarning) else: for line in fo: @@ -605,26 +605,26 @@ info = [] try: #XXX: Bad style to use so long `try:...except:...`. Fix it! - import _winreg + import winreg RefactoringTool: Refactored ../python3/numexpr/__init__.py RefactoringTool: Refactored ../python3/bench/vml_timing2.py RefactoringTool: Refactored ../python3/bench/vml_timing.py RefactoringTool: Refactored ../python3/bench/varying-expr.py RefactoringTool: Refactored ../python3/bench/unaligned-simple.py RefactoringTool: Refactored ../python3/bench/timing.py prgx = re.compile(r"family\s+(?P\d+)\s+model\s+(?P\d+)" \ "\s+stepping\s+(?P\d+)", re.IGNORECASE) - chnd = _winreg.OpenKey(_winreg.HKEY_LOCAL_MACHINE, self.pkey) + chnd = winreg.OpenKey(winreg.HKEY_LOCAL_MACHINE, self.pkey) pnum = 0 while 1: try: - proc = _winreg.EnumKey(chnd, pnum) - except _winreg.error: + proc = winreg.EnumKey(chnd, pnum) + except winreg.error: break else: pnum += 1 info.append({"Processor": proc}) - phnd = _winreg.OpenKey(chnd, proc) + phnd = winreg.OpenKey(chnd, proc) pidx = 0 while True: try: - name, value, vtpe = _winreg.EnumValue(phnd, pidx) - except _winreg.error: + name, value, vtpe = winreg.EnumValue(phnd, pidx) + except winreg.error: break else: pidx = pidx + 1 @@ -636,8 +636,8 @@ info[-1]["Model"] = int(srch.group("MDL")) info[-1]["Stepping"] = int(srch.group("STP")) except: - print - sys.exc_value, '(ignoring)' + print() + sys.exc_info()[1], '(ignoring)' self.__class__.info = info def _not_impl(self): @@ -796,16 +796,16 @@ cpu.is_Intel() cpu.is_Alpha() - print + print() 'CPU information:', for name in dir(cpuinfo): if name[0] == '_' and name[1] != '_': r = getattr(cpu, name[1:])() if r: if r != 1: - print + print() '%s=%s' % (name[1:], r), else: - print + print() name[1:], - print + print() --- ../python3/numexpr/__init__.py (original) +++ ../python3/numexpr/__init__.py (refactored) @@ -28,7 +28,7 @@ else: use_vml = False -from cpuinfo import cpu +from .cpuinfo import cpu if cpu.is_AMD() or cpu.is_Intel(): is_cpu_amd_intel = True @@ -63,7 +63,7 @@ # The default for VML is 1 thread (see #39) set_vml_num_threads(1) -import version +from . import version dirname = os.path.dirname(__file__) --- ../python3/bench/vml_timing2.py (original) +++ ../python3/bench/vml_timing2.py (refactored) @@ -3,7 +3,7 @@ # http://software.intel.com/en-us/intel-mkl # https://github.com/pydata/numexpr/wiki/NumexprMKL -from __future__ import print_function + import datetime import sys import numpy as np --- ../python3/bench/vml_timing.py (original) +++ ../python3/bench/vml_timing.py (refactored) @@ -8,7 +8,7 @@ # rights to use. #################################################################### -from __future__ import print_function + import sys import timeit import numpy --- ../python3/bench/varying-expr.py (original) +++ ../python3/bench/varying-expr.py (refactored) @@ -12,7 +12,7 @@ # expressions that changes continously. It also serves for computing # the latency of numexpr when working with small arrays. -from __future__ import print_function + import sys from time import time import numpy as np --- ../python3/bench/unaligned-simple.py (original) +++ ../python3/bench/unaligned-simple.py (refactored) @@ -12,7 +12,7 @@ aligned vs unaligned arrays. """ -from __future__ import print_function + from timeit import Timer import numpy as np import numexpr as ne --- ../python3/bench/timing.py (original) +++ ../python3/bench/timing.py (refactored) @@ -8,7 +8,7 @@ # rights to use. #################################################################### -from __future__ import print_function + import timeit, numpy array_size = 1e6 @@ -131,7 +131,7 @@ total = 0 RefactoringTool: Refactored ../python3/bench/poly.py RefactoringTool: Refactored ../python3/bench/multidim.py RefactoringTool: No changes to ../python3/bench/issue-47.py RefactoringTool: Refactored ../python3/bench/issue-36.py RefactoringTool: Refactored ../python3/bench/boolean_timing.py RefactoringTool: Files that were modified: RefactoringTool: ../python3/setup.py RefactoringTool: ../python3/numexpr/version.py RefactoringTool: ../python3/numexpr/utils.py RefactoringTool: ../python3/numexpr/tests/test_numexpr.py RefactoringTool: ../python3/numexpr/tests/__init__.py RefactoringTool: ../python3/numexpr/necompiler.py RefactoringTool: ../python3/numexpr/expressions.py RefactoringTool: ../python3/numexpr/cpuinfo.py RefactoringTool: ../python3/numexpr/__init__.py RefactoringTool: ../python3/bench/vml_timing2.py RefactoringTool: ../python3/bench/vml_timing.py RefactoringTool: ../python3/bench/varying-expr.py RefactoringTool: ../python3/bench/unaligned-simple.py RefactoringTool: ../python3/bench/timing.py RefactoringTool: ../python3/bench/poly.py RefactoringTool: ../python3/bench/multidim.py RefactoringTool: ../python3/bench/issue-47.py RefactoringTool: ../python3/bench/issue-36.py RefactoringTool: ../python3/bench/boolean_timing.py for params in experiments: total += compare_times(*params) - print + print() average = total / len(experiments) print("Average =", round(average, 2)) return average --- ../python3/bench/poly.py (original) +++ ../python3/bench/poly.py (refactored) @@ -16,7 +16,7 @@ # Date: 2010-07-06 ####################################################################### -from __future__ import print_function + import sys from time import time import numpy as np --- ../python3/bench/multidim.py (original) +++ ../python3/bench/multidim.py (refactored) @@ -11,7 +11,7 @@ # Script to check that multidimensional arrays are speed-up properly too # Based on a script provided by Andrew Collette. -from __future__ import print_function + import numpy as np import numexpr as nx import time --- ../python3/bench/issue-36.py (original) +++ ../python3/bench/issue-36.py (refactored) @@ -1,7 +1,7 @@ # Small benchmark to get the even point where the threading code # performs better than the serial code. See issue #36 for details. -from __future__ import print_function + import numpy as np import numexpr as ne from numpy.testing import assert_array_equal --- ../python3/bench/boolean_timing.py (original) +++ ../python3/bench/boolean_timing.py (refactored) @@ -8,7 +8,7 @@ # rights to use. #################################################################### -from __future__ import print_function + import sys import timeit import numpy + sed -i 's|@PYVER@|3.5m|' ../python3/site.cfg + sed -i 's|@PYVER@|2.7|' site.cfg + exit 0 Executing(%build): /bin/sh -e /usr/src/tmp/rpm-tmp.5647 + umask 022 + /bin/mkdir -p /usr/src/RPM/BUILD + cd /usr/src/RPM/BUILD + cd python-module-numexpr-2.4.4 + CFLAGS='-pipe -Wall -g -O2 -fno-strict-aliasing' + export CFLAGS + CXXFLAGS='-pipe -Wall -g -O2 -fno-strict-aliasing' + export CXXFLAGS + FFLAGS='-pipe -Wall -g -O2 -fno-strict-aliasing' + export FFLAGS + /usr/bin/python setup.py build --debug openblas_lapack_info: customize UnixCCompiler C compiler: x86_64-alt-linux-gcc -pthread -DNDEBUG -pipe -Wall -g -O3 -pipe -Wall -g -O2 -fno-strict-aliasing -fPIC creating /usr/src/tmp/tmprdT2OI/usr creating /usr/src/tmp/tmprdT2OI/usr/src creating /usr/src/tmp/tmprdT2OI/usr/src/tmp creating /usr/src/tmp/tmprdT2OI/usr/src/tmp/tmprdT2OI compile options: '-c' x86_64-alt-linux-gcc: /usr/src/tmp/tmprdT2OI/source.c /usr/src/tmp/tmprdT2OI/source.c: In function 'main': /usr/src/tmp/tmprdT2OI/source.c:4:13: warning: implicit declaration of function 'zungqr_' [-Wimplicit-function-declaration] zungqr_(); ^ x86_64-alt-linux-gcc -pthread /usr/src/tmp/tmprdT2OI/usr/src/tmp/tmprdT2OI/source.o -llapack -lopenblas -lm -o /usr/src/tmp/tmprdT2OI/a.out FOUND: libraries = ['lapack', 'openblas', 'm', 'lapack', 'openblas', 'm'] library_dirs = ['/usr/lib64'] language = c define_macros = [('HAVE_CBLAS', '1')] Warning: Assuming default configuration (numexpr/tests/{setup_tests,setup}.py was not found)Appending numexpr.tests configuration to numexpr Ignoring attempt to set 'name' (from 'numexpr' to 'numexpr.tests') running build running config_cc unifing config_cc, config, build_clib, build_ext, build commands --compiler options running config_fc unifing config_fc, config, build_clib, build_ext, build commands --fcompiler options running build_src build_src building py_modules sources creating build creating build/src.linux-x86_64-2.7 creating build/src.linux-x86_64-2.7/numexpr building extension "numexpr.interpreter" sources build_src: building npy-pkg config files running build_py creating build/lib.linux-x86_64-2.7 creating build/lib.linux-x86_64-2.7/numexpr copying numexpr/version.py -> build/lib.linux-x86_64-2.7/numexpr copying numexpr/utils.py -> build/lib.linux-x86_64-2.7/numexpr copying numexpr/necompiler.py -> build/lib.linux-x86_64-2.7/numexpr copying numexpr/expressions.py -> build/lib.linux-x86_64-2.7/numexpr copying numexpr/cpuinfo.py -> build/lib.linux-x86_64-2.7/numexpr copying numexpr/__init__.py -> build/lib.linux-x86_64-2.7/numexpr copying build/src.linux-x86_64-2.7/numexpr/__config__.py -> build/lib.linux-x86_64-2.7/numexpr creating build/lib.linux-x86_64-2.7/numexpr/tests copying ./numexpr/tests/test_numexpr.py -> build/lib.linux-x86_64-2.7/numexpr/tests copying ./numexpr/tests/__init__.py -> build/lib.linux-x86_64-2.7/numexpr/tests running build_ext customize UnixCCompiler customize UnixCCompiler using build_ext resetting extension 'numexpr.interpreter' language from 'c' to 'c++'. customize UnixCCompiler customize UnixCCompiler using build_ext building 'numexpr.interpreter' extension compiling C++ sources C compiler: x86_64-alt-linux-g++ -pthread -DNDEBUG -pipe -Wall -g -O3 -pipe -Wall -g -O2 -fno-strict-aliasing -fPIC creating build/temp.linux-x86_64-2.7 creating build/temp.linux-x86_64-2.7/numexpr compile options: '-g -DHAVE_CBLAS=1 -I/usr/lib64/python2.7/site-packages/numpy/core/include -I/usr/include/python2.7 -c' extra options: '-funroll-all-loops' x86_64-alt-linux-g++: numexpr/numexpr_object.cpp In file included from numexpr/numexpr_object.cpp:10:0: numexpr/module.hpp:12:33: fatal error: numpy/ndarrayobject.h: No such file or directory #include ^ compilation terminated. In file included from numexpr/numexpr_object.cpp:10:0: numexpr/module.hpp:12:33: fatal error: numpy/ndarrayobject.h: No such file or directory #include ^ compilation terminated. error: Command "x86_64-alt-linux-g++ -pthread -DNDEBUG -pipe -Wall -g -O3 -pipe -Wall -g -O2 -fno-strict-aliasing -fPIC -g -DHAVE_CBLAS=1 -I/usr/lib64/python2.7/site-packages/numpy/core/include -I/usr/include/python2.7 -c numexpr/numexpr_object.cpp -o build/temp.linux-x86_64-2.7/numexpr/numexpr_object.o -funroll-all-loops" failed with exit status 1 error: Bad exit status from /usr/src/tmp/rpm-tmp.5647 (%build) RPM build errors: Bad exit status from /usr/src/tmp/rpm-tmp.5647 (%build) Command exited with non-zero status 1 4.94user 0.24system 0:05.80elapsed 89%CPU (0avgtext+0avgdata 57704maxresident)k 0inputs+0outputs (0major+69684minor)pagefaults 0swaps hsh-rebuild: rebuild of `python-module-numexpr-2.4.4-alt1.dev0.git20150815.1.1.src.rpm' failed. Command exited with non-zero status 1 14.43user 3.28system 0:19.50elapsed 90%CPU (0avgtext+0avgdata 122132maxresident)k 136inputs+0outputs (0major+335512minor)pagefaults 0swaps