<86>Feb 1 08:57:00 userdel[92026]: delete user 'rooter' <86>Feb 1 08:57:00 userdel[92026]: removed group 'rooter' owned by 'rooter' <86>Feb 1 08:57:00 userdel[92026]: removed shadow group 'rooter' owned by 'rooter' <86>Feb 1 08:57:00 groupadd[92074]: group added to /etc/group: name=rooter, GID=651 <86>Feb 1 08:57:00 groupadd[92074]: group added to /etc/gshadow: name=rooter <86>Feb 1 08:57:00 groupadd[92074]: new group: name=rooter, GID=651 <86>Feb 1 08:57:00 useradd[92163]: new user: name=rooter, UID=651, GID=651, home=/root, shell=/bin/bash <86>Feb 1 08:57:01 userdel[92380]: delete user 'builder' <86>Feb 1 08:57:01 userdel[92380]: removed group 'builder' owned by 'builder' <86>Feb 1 08:57:01 userdel[92380]: removed shadow group 'builder' owned by 'builder' <86>Feb 1 08:57:01 groupadd[92472]: group added to /etc/group: name=builder, GID=652 <86>Feb 1 08:57:01 groupadd[92472]: group added to /etc/gshadow: name=builder <86>Feb 1 08:57:01 groupadd[92472]: new group: name=builder, GID=652 <86>Feb 1 08:57:01 useradd[92517]: new user: name=builder, UID=652, GID=652, home=/usr/src, shell=/bin/bash <13>Feb 1 08:57:03 rpmi: libgdbm-1.8.3-alt10 1454943334 installed <13>Feb 1 08:57:03 rpmi: libexpat-2.2.4-alt1 1503305345 installed <13>Feb 1 08:57:03 rpmi: libtasn1-4.13-alt2 1521133850 installed <13>Feb 1 08:57:03 rpmi: libp11-kit-0.23.9-alt5 1525798298 installed <13>Feb 1 08:57:03 rpmi: alternatives-0.5.0-alt1 sisyphus.219012.300 1546745004 installed <13>Feb 1 08:57:03 rpmi: ca-certificates-2018.11.12-alt1 sisyphus.216395.300 1542114035 installed <13>Feb 1 08:57:03 rpmi: ca-trust-0.1.1-alt2 1515595785 installed <13>Feb 1 08:57:04 rpmi: p11-kit-trust-0.23.9-alt5 1525798298 installed <13>Feb 1 08:57:04 rpmi: libcrypto1.1-1.1.0j-alt1 sisyphus.216647.100 1542743878 installed <13>Feb 1 08:57:04 rpmi: libssl1.1-1.1.0j-alt1 sisyphus.216647.100 1542743878 installed <13>Feb 1 08:57:04 rpmi: python3-3.6.8-alt1 sisyphus+220164.200.3.1 1548842636 installed <13>Feb 1 08:57:04 rpmi: python3-base-3.6.8-alt1 sisyphus+220164.200.3.1 1548842636 installed <13>Feb 1 08:57:04 rpmi: libpython3-3.6.8-alt1 sisyphus+220164.200.3.1 1548842636 installed <13>Feb 1 08:57:04 rpmi: tests-for-installed-python3-pkgs-0.1.13.1-alt2 1535450458 installed <13>Feb 1 08:57:04 rpmi: rpm-build-python3-0.1.13.1-alt2 1535450458 installed <13>Feb 1 08:57:04 rpmi: rpm-macros-sphinx-1:1.6.5-alt3 sisyphus.213215.100 1537280252 installed <13>Feb 1 08:57:08 rpmi: python3-module-pkg_resources-1:40.6.3-alt1 sisyphus+219164.200.2.1 1548188195 installed <13>Feb 1 08:57:08 rpmi: libopenblas-0.2.20-alt1 1527005646 installed <13>Feb 1 08:57:08 rpmi: libquadmath0-8.2.1-alt3 sisyphus.219333.200 1547468342 installed <13>Feb 1 08:57:08 rpmi: python3-module-six-1.12.0-alt1 sisyphus+219665.100.2.1 1548148570 installed <13>Feb 1 08:57:08 rpmi: libnumpy-py3-1:1.15.4-alt1 sisyphus.218638.200 1545948948 installed <13>Feb 1 08:57:08 rpmi: python-module-sphinxcontrib-2.1.1-alt2.1.2 1526455698 installed <13>Feb 1 08:57:08 rpmi: libnumpy-1:1.15.4-alt1 sisyphus.218638.200 1545948948 installed <13>Feb 1 08:57:08 rpmi: python3-module-more-itertools-5.0.0-alt1 sisyphus.218699.100 1545980609 installed <13>Feb 1 08:57:08 rpmi: libquadmath8-devel-8.2.1-alt3 sisyphus.219333.200 1547468342 installed <13>Feb 1 08:57:09 rpmi: libgfortran5-8.2.1-alt3 sisyphus.219333.200 1547468342 installed <13>Feb 1 08:57:09 rpmi: libgfortran4-7.3.1-alt7 sisyphus.214000.100 1542667145 installed <13>Feb 1 08:57:09 rpmi: python3-module-nose-1:1.3.7-alt4.git20160316 sisyphus.213223.100 1537286725 installed <13>Feb 1 08:57:09 rpmi: python3-module-py-1.7.0-alt1 sisyphus.214414.220 1539670883 installed <13>Feb 1 08:57:09 rpmi: python3-module-pluggy-0.8.1-alt1 sisyphus.219350.100 1547468434 installed <13>Feb 1 08:57:09 rpmi: python3-module-attrs-18.2.0-alt1 sisyphus.214354.100 1539088435 installed <13>Feb 1 08:57:09 rpmi: python3-module-atomicwrites-1.2.1-alt1 sisyphus.214347.100 1539076636 installed <13>Feb 1 08:57:09 rpmi: python3-module-pytest-3.10.1-alt3 sisyphus+219849.1200.10.1 1548275625 installed <13>Feb 1 08:57:09 rpmi: python-module-imagesize-0.7.1-alt1 1461387704 installed <13>Feb 1 08:57:09 rpmi: python-sphinx-objects.inv-1:2.3.8.20190131-alt1 sisyphus+220346.100.1.1 1548977313 installed <13>Feb 1 08:57:09 rpmi: libxapian-1.4.5-alt3 sisyphus.215025.100 1539610704 installed <13>Feb 1 08:57:09 rpmi: python-module-google-0.4.2-alt2.1 1517733343 installed <13>Feb 1 08:57:09 rpmi: libsqlite3-3.26.0-alt1 sisyphus.219274.100 1547430858 installed <13>Feb 1 08:57:09 rpmi: python-module-enum34-1.1.6-alt3 1527251693 installed <13>Feb 1 08:57:09 rpmi: libxblas-1.0.248-alt1.1 1496143682 installed <13>Feb 1 08:57:09 rpmi: liblapack-1:3.8.0-alt1 1527158339 installed <13>Feb 1 08:57:09 rpmi: python3-module-numpy-testing-1:1.15.4-alt1 sisyphus.218638.200 1545948948 installed <13>Feb 1 08:57:09 rpmi: python3-module-numpy-1:1.15.4-alt1 sisyphus.218638.200 1545948948 installed <13>Feb 1 08:57:09 rpmi: libgpg-error-1.31-alt1.S1 1529015802 installed <13>Feb 1 08:57:09 rpmi: libgcrypt20-1.8.3-alt4 sisyphus.218050.200 1545223289 installed <13>Feb 1 08:57:09 rpmi: libxslt-1.1.32-alt2 1517429984 installed <13>Feb 1 08:57:09 rpmi: gcc-fortran-common-1.4.23-alt1 sisyphus.218115.200 1545282875 installed <13>Feb 1 08:57:09 rpmi: libgfortran8-devel-8.2.1-alt3 sisyphus.219333.200 1547468342 installed <13>Feb 1 08:57:10 rpmi: gcc8-fortran-8.2.1-alt3 sisyphus.219333.200 1547468342 installed <13>Feb 1 08:57:10 rpmi: libtinfo-devel-6.1.20180407-alt2 sisyphus.215627.200 1540831974 installed <13>Feb 1 08:57:10 rpmi: libncurses-devel-6.1.20180407-alt2 sisyphus.215627.200 1540831974 installed <13>Feb 1 08:57:10 rpmi: python3-dev-3.6.8-alt1 sisyphus+220164.200.3.1 1548842636 installed <13>Feb 1 08:57:10 rpmi: python-modules-curses-2.7.15-alt1 sisyphus.217364.100 1544022423 installed <13>Feb 1 08:57:10 rpmi: libverto-0.3.0-alt1_5 1525957714 installed <13>Feb 1 08:57:10 rpmi: libkeyutils-1.6-alt2 sisyphus.217337.100 1544003161 installed <13>Feb 1 08:57:10 rpmi: libcom_err-1.44.5-alt1 sisyphus.218838.100 1546206118 installed <86>Feb 1 08:57:10 groupadd[5665]: group added to /etc/group: name=_keytab, GID=499 <86>Feb 1 08:57:10 groupadd[5665]: group added to /etc/gshadow: name=_keytab <86>Feb 1 08:57:10 groupadd[5665]: new group: name=_keytab, GID=499 <13>Feb 1 08:57:11 rpmi: libkrb5-1.16.3-alt1 sisyphus.219042.100 1547045815 installed <13>Feb 1 08:57:11 rpmi: libtirpc-1.0.3-alt1 1532008017 installed <13>Feb 1 08:57:11 rpmi: libnsl2-1.1.0-alt1_1 1511548749 installed <13>Feb 1 08:57:11 rpmi: python-modules-email-2.7.15-alt1 sisyphus.217364.100 1544022423 installed <13>Feb 1 08:57:11 rpmi: python-modules-unittest-2.7.15-alt1 sisyphus.217364.100 1544022423 installed <13>Feb 1 08:57:11 rpmi: python-modules-nis-2.7.15-alt1 sisyphus.217364.100 1544022423 installed <13>Feb 1 08:57:11 rpmi: python-modules-encodings-2.7.15-alt1 sisyphus.217364.100 1544022423 installed <13>Feb 1 08:57:11 rpmi: python-modules-2.7.15-alt1 sisyphus.217364.100 1544022423 installed <13>Feb 1 08:57:11 rpmi: python-modules-compiler-2.7.15-alt1 sisyphus.217364.100 1544022423 installed <13>Feb 1 08:57:11 rpmi: python-module-six-1.12.0-alt1 sisyphus+219665.100.2.1 1548148570 installed <13>Feb 1 08:57:11 rpmi: python-module-pkg_resources-1:40.6.3-alt1 sisyphus+219164.200.2.1 1548188195 installed <13>Feb 1 08:57:11 rpmi: python-modules-ctypes-2.7.15-alt1 sisyphus.217364.100 1544022423 installed <13>Feb 1 08:57:11 rpmi: python-modules-json-2.7.15-alt1 sisyphus.217364.100 1544022423 installed <13>Feb 1 08:57:11 rpmi: python-modules-xml-2.7.15-alt1 sisyphus.217364.100 1544022423 installed <13>Feb 1 08:57:11 rpmi: python-modules-multiprocessing-2.7.15-alt1 sisyphus.217364.100 1544022423 installed <13>Feb 1 08:57:11 rpmi: python-modules-logging-2.7.15-alt1 sisyphus.217364.100 1544022423 installed <13>Feb 1 08:57:11 rpmi: python-modules-hotshot-2.7.15-alt1 sisyphus.217364.100 1544022423 installed <13>Feb 1 08:57:11 rpmi: python-module-chardet-3.0.4-alt1 1506613818 installed <13>Feb 1 08:57:11 rpmi: python-tools-2to3-2.7.15-alt1 sisyphus.217364.100 1544022423 installed <13>Feb 1 08:57:11 rpmi: python-module-whoosh-2.7.4-alt1 1527697941 installed <13>Feb 1 08:57:11 rpmi: python-module-webencodings-0.5.1-alt1.1 1517943573 installed <13>Feb 1 08:57:11 rpmi: python-module-more-itertools-5.0.0-alt1 sisyphus.218699.100 1545980609 installed <13>Feb 1 08:57:11 rpmi: python-module-py-1.7.0-alt1 sisyphus.214414.220 1539670883 installed <13>Feb 1 08:57:11 rpmi: python-module-pluggy-0.8.1-alt1 sisyphus.219350.100 1547468434 installed <13>Feb 1 08:57:11 rpmi: python-module-xapian-1.4.5-alt2.qa1 1531484078 installed <13>Feb 1 08:57:11 rpmi: python-modules-bsddb-2.7.15-alt1 sisyphus.217364.100 1544022423 installed <13>Feb 1 08:57:11 rpmi: python-2.7.15-alt1 sisyphus.217364.100 1544022423 installed <13>Feb 1 08:57:11 rpmi: python-strict-2.7.15-alt1 sisyphus.217364.100 1544022396 installed <13>Feb 1 08:57:11 rpmi: python-modules-distutils-2.7.15-alt1 sisyphus.217364.100 1544022423 installed <13>Feb 1 08:57:11 rpmi: python-module-idna-2.7-alt1 1530720902 installed <13>Feb 1 08:57:11 rpmi: python-module-attrs-18.2.0-alt1 sisyphus.214354.100 1539088435 installed <13>Feb 1 08:57:11 rpmi: python-module-cssselect-0.9.1-alt1.2 1526980827 installed <13>Feb 1 08:57:11 rpmi: python-module-html5lib-1:0.999999999-alt4.qa1 sisyphus.214868.100 1539741045 installed <13>Feb 1 08:57:11 rpmi: python-module-lxml-4.3.0-alt1 sisyphus.219015.100 1546759265 installed <13>Feb 1 08:57:12 rpmi: python-module-docutils-0.14-alt2 1535729778 installed <13>Feb 1 08:57:12 rpmi: python-module-pycparser-2.19-alt1 sisyphus.216095.100 1541345023 installed <13>Feb 1 08:57:12 rpmi: python-module-cffi-1.10.0-alt1.1 1525117736 installed <13>Feb 1 08:57:12 rpmi: python-module-asn1crypto-0.24.0-alt1 1521037480 installed <13>Feb 1 08:57:12 rpmi: python-module-ntlm-1.1.0-alt1.1.1.1 1460405346 installed <13>Feb 1 08:57:12 rpmi: python-module-pytz-1:2016.10-alt1 1484291011 installed <13>Feb 1 08:57:12 rpmi: python-module-babel-1:2.4.0-alt1.1 1517644530 installed <13>Feb 1 08:57:12 rpmi: python-module-PyStemmer-1.0.1-alt1.2.1 1321388303 installed <13>Feb 1 08:57:12 rpmi: python-module-snowballstemmer-1.2.0-alt2.1 1457859319 installed <13>Feb 1 08:57:12 rpmi: python-module-funcsigs-1.0.2-alt2 sisyphus+220258.100.1.1 1548882900 installed <13>Feb 1 08:57:12 rpmi: python-module-scandir-1.9.0-alt1 1535455370 installed <13>Feb 1 08:57:12 rpmi: python-module-pathlib2-2.3.3-alt1 sisyphus.218098.100 1545218863 installed <13>Feb 1 08:57:12 rpmi: python-module-atomicwrites-1.2.1-alt1 sisyphus.214347.100 1539076636 installed <13>Feb 1 08:57:12 rpmi: python-module-pytest-3.10.1-alt3 sisyphus+219849.1200.10.1 1548275625 installed <13>Feb 1 08:57:13 rpmi: python-module-numpy-1:1.15.4-alt1 sisyphus.218638.200 1545948948 installed <13>Feb 1 08:57:13 rpmi: python-module-numpy-testing-1:1.15.4-alt1 sisyphus.218638.200 1545948948 installed <13>Feb 1 08:57:13 rpmi: python-module-markupsafe-0.23-alt1.2.1.1 1525118834 installed <13>Feb 1 08:57:13 rpmi: python-module-jinja2-2.10-alt1 1521724576 installed <13>Feb 1 08:57:13 rpmi: python-module-simplejson-3.15.0-alt1.qa1 sisyphus.214917.100 1539845528 installed <13>Feb 1 08:57:13 rpmi: python-module-ndg-0.4.2-alt1.qa1 1531457735 installed <13>Feb 1 08:57:13 rpmi: python-module-ipaddress-1.0.18-alt1.1 1517713372 installed <13>Feb 1 08:57:13 rpmi: python-module-cryptography-2.4.2-alt1 sisyphus.216799.200 1543487260 installed <13>Feb 1 08:57:13 rpmi: python-module-OpenSSL-18.0.0-alt1 1532996168 installed <13>Feb 1 08:57:13 rpmi: python-module-ndg-httpsclient-0.4.2-alt1.qa1 1531457735 installed <13>Feb 1 08:57:13 rpmi: python-module-backports-3.5.0.1-alt1.1.1 1517645428 installed <13>Feb 1 08:57:13 rpmi: python-module-backports.ssl_match_hostname-3.5.0.1-alt1.1.1 1517645428 installed <13>Feb 1 08:57:13 rpmi: python-module-urllib3-2:1.24.1-alt2 sisyphus.218529.100 1545673498 installed <13>Feb 1 08:57:13 rpmi: python-module-requests-2.21.0-alt1 sisyphus.218511.200 1545669878 installed <13>Feb 1 08:57:13 rpmi: python-module-typing-3.6.6-alt2 sisyphus+220108.100.1.1 1548749697 installed <13>Feb 1 08:57:13 rpmi: python-modules-sqlite3-2.7.15-alt1 sisyphus.217364.100 1544022423 installed <13>Feb 1 08:57:13 rpmi: python-module-SQLAlchemy-1.2.15-alt1 sisyphus.219175.100 1547139402 installed <13>Feb 1 08:57:13 rpmi: python-module-alabaster-0.7.6-alt3 1526385201 installed <13>Feb 1 08:57:13 rpmi: python-module-Pygments-2.2.0-alt2 1526455576 installed <13>Feb 1 08:57:13 rpmi: python-module-sphinxcontrib-websupport-1.0.1-alt3.qa1 sisyphus.214922.100 1539851266 installed <13>Feb 1 08:57:13 rpmi: python-module-sphinx-1:1.6.5-alt3 sisyphus.213215.100 1537280252 installed <13>Feb 1 08:57:13 rpmi: python-module-numpydoc-1:0.7.0-alt1 1511771218 installed <13>Feb 1 08:57:13 rpmi: libnsl2-devel-1.1.0-alt1_1 1511548749 installed <13>Feb 1 08:57:13 rpmi: python-dev-2.7.15-alt1 sisyphus.217364.100 1544022423 installed <13>Feb 1 08:57:13 rpmi: python-module-setuptools-1:40.6.3-alt1 sisyphus+219164.200.2.1 1548188195 installed <13>Feb 1 08:57:13 rpmi: scons-3.0.1-alt1 1518686948 installed <13>Feb 1 08:57:13 rpmi: libnumpy-devel-1:1.15.4-alt1 sisyphus.218638.200 1545948948 installed <13>Feb 1 08:57:13 rpmi: libnumpy-py3-devel-1:1.15.4-alt1 sisyphus.218638.200 1545948948 installed <13>Feb 1 08:57:13 rpmi: python3-module-setuptools-1:40.6.3-alt1 sisyphus+219164.200.2.1 1548188195 installed <13>Feb 1 08:57:13 rpmi: gcc-fortran-8-alt1 sisyphus.214000.40 1542664775 installed Building target platforms: i586 Building for target i586 Wrote: /usr/src/in/nosrpm/python-module-DIRECT-1.0.1-alt2.1.2.1.nosrc.rpm Installing python-module-DIRECT-1.0.1-alt2.1.2.1.src.rpm Building target platforms: i586 Building for target i586 Executing(%prep): /bin/sh -e /usr/src/tmp/rpm-tmp.90372 + umask 022 + /bin/mkdir -p /usr/src/RPM/BUILD + cd /usr/src/RPM/BUILD + cd /usr/src/RPM/BUILD + rm -rf python-module-DIRECT-1.0.1 + echo 'Source #0 (python-module-DIRECT-1.0.1.tar):' Source #0 (python-module-DIRECT-1.0.1.tar): + /bin/tar -xf /usr/src/RPM/SOURCES/python-module-DIRECT-1.0.1.tar + cd python-module-DIRECT-1.0.1 + /bin/chmod -c -Rf u+rwX,go-w . + rm -rf ../python3 + cp -a . ../python3 + pushd ../python3 ~/RPM/BUILD/python3 ~/RPM/BUILD/python-module-DIRECT-1.0.1 + find ./ -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 ./test/test_direct.py RefactoringTool: Refactored ./test/SH.py RefactoringTool: Refactored ./test/C6.py RefactoringTool: No changes to ./setup.py RefactoringTool: Refactored ./doc/source/sphinxext/numpydoc.py RefactoringTool: No changes to ./doc/source/sphinxext/ipython_console_highlighting.py RefactoringTool: Refactored ./doc/source/sphinxext/inheritance_diagram.py --- ./test/test_direct.py (original) +++ ./test/test_direct.py (refactored) @@ -19,8 +19,8 @@ u ) - print 'Optimal point:', x - print 'Optimal value:', fmin - print 'Exit status:', ierror + print('Optimal point:', x) + print('Optimal value:', fmin) + print('Exit status:', ierror) --- ./test/SH.py (original) +++ ./test/SH.py (refactored) @@ -3,7 +3,7 @@ Solve the 2D Shubert function. """ -from __future__ import division + from DIRECT import solve import numpy as np from mpl_toolkits.mplot3d import axes3d @@ -32,9 +32,9 @@ u ) - print 'Optimal point:', x - print 'Optimal value:', fmin - print 'Exit status:', ierror + print('Optimal point:', x) + print('Optimal value:', fmin) + print('Exit status:', ierror) # # Plot the results. --- ./test/C6.py (original) +++ ./test/C6.py (refactored) @@ -3,7 +3,7 @@ Solve the six-hump camelback function. """ -from __future__ import division + from DIRECT import solve import numpy as np from mpl_toolkits.mplot3d import axes3d @@ -32,9 +32,9 @@ u ) - print 'Optimal point:', x - print 'Optimal value:', fmin - print 'Exit status:', ierror + print('Optimal point:', x) + print('Optimal value:', fmin) + print('Exit status:', ierror) # # Plot the results. --- ./doc/source/sphinxext/numpydoc.py (original) +++ ./doc/source/sphinxext/numpydoc.py (refactored) @@ -49,7 +49,7 @@ try: references.append(int(l[len('.. ['):l.index(']')])) except ValueError: - print "WARNING: invalid reference in %s docstring" % name + print("WARNING: invalid reference in %s docstring" % name) # Start renaming from the biggest number, otherwise we may # overwrite references. @@ -104,7 +104,7 @@ if sphinx.ext.autodoc.format_signature is our_format_signature: return - print "[numpydoc] Monkeypatching sphinx.ext.autodoc ..." + print("[numpydoc] Monkeypatching sphinx.ext.autodoc ...") _original_format_signature = sphinx.ext.autodoc.format_signature sphinx.ext.autodoc.format_signature = our_format_signature --- ./doc/source/sphinxext/inheritance_diagram.py (original) +++ ./doc/source/sphinxext/inheritance_diagram.py (refactored) @@ -119,7 +119,7 @@ return [todoc] elif inspect.ismodule(todoc): classes = [] - for cls in todoc.__dict__.values(): + for cls in list(todoc.__dict__.values()): if inspect.isclass(cls) and cls.__module__ == todoc.__name__: classes.append(cls) return classes @@ -150,7 +150,7 @@ for cls in classes: recurse(cls) - return all_classes.keys() + return list(all_classes.keys()) def class_name(self, cls, parts=0): """ @@ -192,9 +192,9 @@ } def _format_node_options(self, options): - return ','.join(["%s=%s" % x for x in options.items()]) + return ','.join(["%s=%s" % x for x in list(options.items())]) def _format_graph_options(self, options): - return ''.join(["%s=%s;\n" % x for x in options.items()]) + return ''.join(["%s=%s;\n" % x for x in list(options.items())]) def generate_dot(self, fd, name, parts=0, urls={}, graph_options={}, node_options={}, @@ -224,7 +224,7 @@ fd.write(self._format_graph_options(g_options)) for cls in self.all_classes: - if not self.show_builtins and cls in __builtins__.values(): + if not self.show_builtins and cls in list(__builtins__.values()): continue name = self.class_name(cls, parts) @@ -239,7 +239,7 @@ # Write the edges for base in cls.__bases__: - if not self.show_builtins and base in __builtins__.values(): + if not self.show_builtins anRefactoringTool: Refactored ./doc/source/sphinxext/docscrape_sphinx.py RefactoringTool: Refactored ./doc/source/sphinxext/docscrape.py RefactoringTool: Refactored ./doc/source/sphinxext/apigen.py RefactoringTool: Refactored ./doc/source/conf.py d base in list(__builtins__.values()): continue base_name = self.class_name(base, parts) @@ -380,7 +380,7 @@ def visitor(self, node): try: content = inner_func(self, node) - except DotException, e: + except DotException as e: # Insert the exception as a warning in the document warning = self.document.reporter.warning(str(e), line=node.line) warning.parent = node --- ./doc/source/sphinxext/docscrape_sphinx.py (original) +++ ./doc/source/sphinxext/docscrape_sphinx.py (refactored) @@ -73,7 +73,7 @@ return out out += ['.. index:: %s' % idx.get('default','')] - for section, references in idx.iteritems(): + for section, references in idx.items(): if section == 'default': continue elif section == 'refguide': --- ./doc/source/sphinxext/docscrape.py (original) +++ ./doc/source/sphinxext/docscrape.py (refactored) @@ -6,7 +6,7 @@ import textwrap import re import pydoc -from StringIO import StringIO +from io import StringIO from warnings import warn 4 class Reader(object): @@ -113,7 +113,7 @@ return self._parsed_data[key] def __setitem__(self,key,val): - if not self._parsed_data.has_key(key): + if key not in self._parsed_data: warn("Unknown section %s" % key) else: self._parsed_data[key] = val @@ -369,7 +369,7 @@ idx = self['index'] out = [] out += ['.. index:: %s' % idx.get('default','')] - for section, references in idx.iteritems(): + for section, references in idx.items(): if section == 'default': continue out += [' :%s: %s' % (section, ', '.join(references))] @@ -413,10 +413,10 @@ doc = inspect.getdoc(func) or '' try: NumpyDocString.__init__(self, doc) - except ValueError, e: - print '*'*78 - print "ERROR: '%s' while parsing `%s`" % (e, self._f) - print '*'*78 + except ValueError as e: + print('*'*78) + print("ERROR: '%s' while parsing `%s`" % (e, self._f)) + print('*'*78) #print "Docstring follows:" #print doclines #print '='*78 @@ -429,7 +429,7 @@ argspec = inspect.formatargspec(*argspec) argspec = argspec.replace('*','\*') signature = '%s%s' % (func_name, argspec) - except TypeError, e: + except TypeError as e: signature = '%s()' % func_name self['Signature'] = signature @@ -451,8 +451,8 @@ 'meth': 'method'} if self._role: - if not roles.has_key(self._role): - print "Warning: invalid role %s" % self._role + if self._role not in roles: + print("Warning: invalid role %s" % self._role) out += '.. %s:: %s\n \n\n' % (roles.get(self._role,''), func_name) --- ./doc/source/sphinxext/apigen.py (original) +++ ./doc/source/sphinxext/apigen.py (refactored) @@ -206,7 +206,7 @@ # get the names of all classes and functions functions, classes = self._parse_module(uri) if not len(functions) and not len(classes): - print 'WARNING: Empty -',uri # dbg + print('WARNING: Empty -',uri) # dbg return '' # Make a shorter version of the uri that omits the package name for --- ./doc/source/conf.py (original) +++ ./doc/source/conf.py (refactored) @@ -41,8 +41,8 @@ master_doc = 'index' # General information about the project. -project = u'pydirect' -copyright = u'2012, Amit Aides' +project = 'pydirect' +copyright = '2012, Amit Aides' # The version info for the project you're documenting, acts as replacement for # |version| and |release|, also used in various other places throughout the @@ -184,8 +184,8 @@ # Grouping the documRefactoringTool: Refactored ./doc/make_doc_images.py RefactoringTool: No changes to ./DIRECT/__init__.py RefactoringTool: Files that were modified: RefactoringTool: ./test/test_direct.py RefactoringTool: ./test/SH.py RefactoringTool: ./test/C6.py RefactoringTool: ./setup.py RefactoringTool: ./doc/source/sphinxext/numpydoc.py RefactoringTool: ./doc/source/sphinxext/ipython_console_highlighting.py RefactoringTool: ./doc/source/sphinxext/inheritance_diagram.py RefactoringTool: ./doc/source/sphinxext/docscrape_sphinx.py RefactoringTool: ./doc/source/sphinxext/docscrape.py RefactoringTool: ./doc/source/sphinxext/apigen.py RefactoringTool: ./doc/source/conf.py RefactoringTool: ./doc/make_doc_images.py RefactoringTool: ./DIRECT/__init__.py ent tree into LaTeX files. List of tuples # (source start file, target name, title, author, documentclass [howto/manual]). latex_documents = [ - ('index', 'pydirect.tex', u'pydirect Documentation', - u'Amit Aides', 'manual'), + ('index', 'pydirect.tex', 'pydirect Documentation', + 'Amit Aides', 'manual'), ] # The name of an image file (relative to this directory) to place at the top of @@ -198,7 +198,7 @@ # Additional stuff for the LaTeX preamble. latex_preamble = """ -\usepackage{amsmath}\usepackage{amsfonts}\usepackage{bm}\usepackage{morefloats} +\\usepackage{amsmath}\\usepackage{amsfonts}\\usepackage{bm}\\usepackage{morefloats} """ # If true, show page references after internal links. @@ -219,8 +219,8 @@ # One entry per manual page. List of tuples # (source start file, name, description, authors, manual section). man_pages = [ - ('index', 'pydirect', u'pydirect Documentation', - [u'Amit Aides'], 1) + ('index', 'pydirect', 'pydirect Documentation', + ['Amit Aides'], 1) ] # If true, show URL addresses after external links. @@ -233,8 +233,8 @@ # (source start file, target name, title, author, # dir menu entry, description, category) texinfo_documents = [ - ('index', 'pydirect', u'pydirect Documentation', - u'Amit Aides', 'pydirect', 'One line description of project.', + ('index', 'pydirect', 'pydirect Documentation', + 'Amit Aides', 'pydirect', 'One line description of project.', 'Miscellaneous'), ] --- ./doc/make_doc_images.py (original) +++ ./doc/make_doc_images.py (refactored) @@ -1,4 +1,4 @@ -from __future__ import division + from DIRECT import solve import numpy as np from mpl_toolkits.mplot3d import axes3d + install -pm644 /usr/share/python-sphinx/objects.inv doc/ + '[' -e doc/conf.py ']' + cp -u /usr/lib/python2.7/site-packages/sphinx/conf.py.template doc/conf.py + ln -s ../objects.inv doc/source/ + exit 0 Executing(%build): /bin/sh -e /usr/src/tmp/rpm-tmp.56078 + umask 022 + /bin/mkdir -p /usr/src/RPM/BUILD + cd /usr/src/RPM/BUILD + cd python-module-DIRECT-1.0.1 + CFLAGS='-pipe -frecord-gcc-switches -Wall -g -O2 -march=i586 -mtune=generic -fPIC -DPIC' + export CFLAGS + CXXFLAGS='-pipe -frecord-gcc-switches -Wall -g -O2 -march=i586 -mtune=generic -fPIC -DPIC' + export CXXFLAGS + FFLAGS='-pipe -frecord-gcc-switches -Wall -g -O2 -march=i586 -mtune=generic -fPIC -DPIC' + export FFLAGS + /usr/bin/python2.7 setup.py build --debug 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 extension "DIRECT.direct" sources creating build creating build/src.linux-i686-2.7 creating build/src.linux-i686-2.7/src f2py options: [] f2py: src/direct.pyf Reading fortran codes... Reading file 'src/direct.pyf' (format:free) Post-processing... Block: direct__user__routines Block: direct_user_interface Block: fcn Block: direct Block: direct In: src/direct.pyf:direct:unknown_interface:direct get_useparameters: no module direct__user__routines info used by direct Post-processing (stage 2)... Building modules... Constructing call-back function "cb_fcn_in_direct__user__routines" def fcn(x,iidata,ddata,cdata,[n,iisize,idsize,icsize]): return f,flag Building module "direct"... Constructing wrapper function "direct"... x,fmin,ierror = direct(fcn,eps,maxf,maxt,l,u,algmethod,logfilename,fglobal,fglper,volper,sigmaper,iidata,ddata,cdata,[n,iisize,idsize,icsize,fcn_extra_args]) Constructing COMMON block support for "directcontrol"... jones Wrote C/API module "direct" to file "build/src.linux-i686-2.7/src/directmodule.c" Fortran 77 wrappers are saved to "build/src.linux-i686-2.7/src/direct-f2pywrappers.f" adding 'build/src.linux-i686-2.7/build/src.linux-i686-2.7/src/fortranobject.c' to sources. adding 'build/src.linux-i686-2.7/build/src.linux-i686-2.7/src' to include_dirs. creating build/src.linux-i686-2.7/build creating build/src.linux-i686-2.7/build/src.linux-i686-2.7 creating build/src.linux-i686-2.7/build/src.linux-i686-2.7/src copying /usr/lib/python2.7/site-packages/numpy/f2py/src/fortranobject.c -> build/src.linux-i686-2.7/build/src.linux-i686-2.7/src copying /usr/lib/python2.7/site-packages/numpy/f2py/src/fortranobject.h -> build/src.linux-i686-2.7/build/src.linux-i686-2.7/src adding 'build/src.linux-i686-2.7/src/direct-f2pywrappers.f' to sources. build_src: building npy-pkg config files running build_py creating build/lib.linux-i686-2.7 creating build/lib.linux-i686-2.7/DIRECT copying DIRECT/__init__.py -> build/lib.linux-i686-2.7/DIRECT running build_ext customize UnixCCompiler customize UnixCCompiler using build_ext get_default_fcompiler: matching types: '['gnu95', 'intel', 'lahey', 'pg', 'absoft', 'nag', 'vast', 'compaq', 'intele', 'intelem', 'gnu', 'g95', 'pathf95', 'nagfor']' customize Gnu95FCompiler Found executable /usr/bin/gfortran customize Gnu95FCompiler customize Gnu95FCompiler using build_ext building 'DIRECT.direct' extension compiling C sources C compiler: i586-alt-linux-gcc -pthread -DNDEBUG -pipe -frecord-gcc-switches -Wall -g -O3 -march=i586 -mtune=generic -fwrapv -pipe -frecord-gcc-switches -Wall -g -O2 -march=i586 -mtune=generic -fPIC -DPIC -fPIC creating build/temp.linux-i686-2.7/build creating build/temp.linux-i686-2.7/build/src.linux-i686-2.7 creating build/temp.linux-i686-2.7/build/src.linux-i686-2.7/src creating build/temp.linux-i686-2.7/build/src.linux-i686-2.7/build creating build/temp.linux-i686-2.7/build/src.linux-i686-2.7/build/src.linux-i686-2.7 creating build/temp.linux-i686-2.7/build/src.linux-i686-2.7/build/src.linux-i686-2.7/src compile options: '-g -Ibuild/src.linux-i686-2.7/build/src.linux-i686-2.7/src -I/usr/lib/python2.7/site-packages/numpy/core/include -I/usr/include/python2.7 -c' i586-alt-linux-gcc: build/src.linux-i686-2.7/src/directmodule.c In file included from /usr/lib/python2.7/site-packages/numpy/core/include/numpy/ndarraytypes.h:1821, from /usr/lib/python2.7/site-packages/numpy/core/include/numpy/ndarrayobject.h:18, from /usr/lib/python2.7/site-packages/numpy/core/include/numpy/arrayobject.h:4, from build/src.linux-i686-2.7/build/src.linux-i686-2.7/src/fortranobject.h:13, from build/src.linux-i686-2.7/src/directmodule.c:16: /usr/lib/python2.7/site-packages/numpy/core/include/numpy/npy_1_7_deprecated_api.h:15:2: warning: #warning "Using deprecated NumPy API, disable it by " "#defining NPY_NO_DEPRECATED_API NPY_1_7_API_VERSION" [-Wcpp] #warning "Using deprecated NumPy API, disable it by " \ ^~~~~~~ build/src.linux-i686-2.7/src/directmodule.c: In function 'cb_fcn_in_direct__user__routines': build/src.linux-i686-2.7/src/directmodule.c:456:7: warning: unused variable 'flag' [-Wunused-variable] int flag=(*flag_cb_capi); ^~~~ build/src.linux-i686-2.7/src/directmodule.c:455:10: warning: unused variable 'f' [-Wunused-variable] double f=(*f_cb_capi); ^ In file included from /usr/include/python2.7/Python.h:83, from build/src.linux-i686-2.7/src/directmodule.c:14: build/src.linux-i686-2.7/src/directmodule.c: In function 'initdirect': /usr/include/python2.7/object.h:115:35: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing] #define Py_TYPE(ob) (((PyObject*)(ob))->ob_type) ~^~~~~~~~~~~~~~~~ build/src.linux-i686-2.7/src/directmodule.c:1055:3: note: in expansion of macro 'Py_TYPE' Py_TYPE(&PyFortran_Type) = &PyType_Type; ^~~~~~~ At top level: build/src.linux-i686-2.7/src/directmodule.c:162:12: warning: 'f2py_size' defined but not used [-Wunused-function] static int f2py_size(PyArrayObject* var, ...) ^~~~~~~~~ i586-alt-linux-gcc: build/src.linux-i686-2.7/build/src.linux-i686-2.7/src/fortranobject.c In file included from /usr/lib/python2.7/site-packages/numpy/core/include/numpy/ndarraytypes.h:1821, from /usr/lib/python2.7/site-packages/numpy/core/include/numpy/ndarrayobject.h:18, from /usr/lib/python2.7/site-packages/numpy/core/include/numpy/arrayobject.h:4, from build/src.linux-i686-2.7/build/src.linux-i686-2.7/src/fortranobject.h:13, from build/src.linux-i686-2.7/build/src.linux-i686-2.7/src/fortranobject.c:2: /usr/lib/python2.7/site-packages/numpy/core/include/numpy/npy_1_7_deprecated_api.h:15:2: warning: #warning "Using deprecated NumPy API, disable it by " "#defining NPY_NO_DEPRECATED_API NPY_1_7_API_VERSION" [-Wcpp] #warning "Using deprecated NumPy API, disable it by " \ ^~~~~~~ compiling Fortran sources Fortran f77 compiler: /usr/bin/gfortran -Wall -g -ffixed-form -fno-second-underscore -pipe -frecord-gcc-switches -Wall -g -O2 -march=i586 -mtune=generic -fPIC -DPIC -O3 -funroll-loops Fortran f90 compiler: /usr/bin/gfortran -Wall -g -fno-second-underscore -pipe -frecord-gcc-switches -Wall -g -O2 -march=i586 -mtune=generic -fPIC -DPIC -O3 -funroll-loops Fortran fix compiler: /usr/bin/gfortran -Wall -g -ffixed-form -fno-second-underscore -Wall -g -fno-second-underscore -pipe -frecord-gcc-switches -Wall -g -O2 -march=i586 -mtune=generic -fPIC -DPIC -O3 -funroll-loops creating build/temp.linux-i686-2.7/src compile options: '-g -Ibuild/src.linux-i686-2.7/build/src.linux-i686-2.7/src -I/usr/lib/python2.7/site-packages/numpy/core/include -I/usr/include/python2.7 -c' gfortran:f77: src/DIRect.f src/DIRect.f:511:26: actdeep = f(help,1) 1 Warning: Possible change of value in conversion from REAL(8) to INTEGER(4) at (1) [-Wconversion] gfortran:f77: src/DIRserial.f src/DIRserial.f:11:36: SUBROUTINE DIRSamplef(c,ArrayI,delta,sample,new,length, 1 Warning: Unused dummy argument 'arrayi' at (1) [-Wunused-dummy-argument] src/DIRserial.f:11:42: SUBROUTINE DIRSamplef(c,ArrayI,delta,sample,new,length, 1 Warning: Unused dummy argument 'delta' at (1) [-Wunused-dummy-argument] src/DIRserial.f:12:22: + dwrit,logfile,f,free,maxI,point,fcn,x,l,fmin, 1 Warning: Unused dummy argument 'dwrit' at (1) [-Wunused-dummy-argument] src/DIRserial.f:12:37: + dwrit,logfile,f,free,maxI,point,fcn,x,l,fmin, 1 Warning: Unused dummy argument 'free' at (1) [-Wunused-dummy-argument] src/DIRserial.f:11:60: SUBROUTINE DIRSamplef(c,ArrayI,delta,sample,new,length, 1 Warning: Unused dummy argument 'length' at (1) [-Wunused-dummy-argument] src/DIRserial.f:12:30: + dwrit,logfile,f,free,maxI,point,fcn,x,l,fmin, 1 Warning: Unused dummy argument 'logfile' at (1) [-Wunused-dummy-argument] src/DIRserial.f:13:43: + minpos,u,n,maxfunc,maxdeep,oops,fmax, 1 Warning: Unused dummy argument 'maxdeep' at (1) [-Wunused-dummy-argument] src/DIRserial.f:13:48: + minpos,u,n,maxfunc,maxdeep,oops,fmax, 1 Warning: Unused dummy argument 'oops' at (1) [-Wunused-dummy-argument] src/DIRserial.f:11:49: SUBROUTINE DIRSamplef(c,ArrayI,delta,sample,new,length, 1 Warning: Unused dummy argument 'sample' at (1) [-Wunused-dummy-argument] src/DIRserial.f:128:45: + iidata, iisize, ddata, idsize, cdata, icsize) 1 Warning: Unused dummy argument 'cdata' at (1) [-Wunused-dummy-argument] src/DIRserial.f:128:30: + iidata, iisize, ddata, idsize, cdata, icsize) 1 Warning: Unused dummy argument 'ddata' at (1) [-Wunused-dummy-argument] src/DIRserial.f:128:15: + iidata, iisize, ddata, idsize, cdata, icsize) 1 Warning: Unused dummy argument 'iidata' at (1) [-Wunused-dummy-argument] src/DIRserial.f:127:34: SUBROUTINE DIRInitSpecific(x,n, 1 Warning: Unused dummy argument 'x' at (1) [-Wunused-dummy-argument] gfortran:f77: src/DIRsubrout.f f951: Warning: Nonconforming tab character in column 5 of line 170 [-Wtabs] f951: Warning: Nonconforming tab character in column 5 of line 200 [-Wtabs] f951: Warning: Nonconforming tab character in column 3 of line 610 [-Wtabs] src/DIRsubrout.f:98:18: 30 CONTINUE 1 Warning: Nonconforming tab character at (1) [-Wtabs] src/DIRsubrout.f:791:7: + ArrayI,sample,List2,w,maxI,f,maxfunc,maxdeep,n) 1 Warning: Nonconforming tab character at (1) [-Wtabs] src/DIRsubrout.f:975:49: CALL DIRInsert(pos,pos3,point,f,maxfunc) 1 Warning: Nonconforming tab character at (1) [-Wtabs] src/DIRsubrout.f:397:4: 1000 format(20f18.8) 1 Warning: Label 1000 at (1) defined but not used [-Wunused-label] src/DIRsubrout.f:1385:5: 10005 FORMAT("WARNING : The maximum number of iterations (",I5, 1 Warning: Label 10005 at (1) defined but not used [-Wunused-label] src/DIRsubrout.f:791:54: + ArrayI,sample,List2,w,maxI,f,maxfunc,maxdeep,n) 1 Warning: Unused dummy argument 'maxdeep' at (1) [-Wunused-dummy-argument] src/DIRsubrout.f:838:32: + dwrit,logfile,f,free,maxI,point,fcn,x,l,fmin,minpos, 1 Warning: Unused dummy argument 'f' at (1) [-Wunused-dummy-argument] src/DIRsubrout.f:838:52: + dwrit,logfile,f,free,maxI,point,fcn,x,l,fmin,minpos, 1 Warning: Unused dummy argument 'fcn' at (1) [-Wunused-dummy-argument] src/DIRsubrout.f:838:61: + dwrit,logfile,f,free,maxI,point,fcn,x,l,fmin,minpos, 1 Warning: Unused dummy argument 'fmin' at (1) [-Wunused-dummy-argument] src/DIRsubrout.f:838:56: + dwrit,logfile,f,free,maxI,point,fcn,x,l,fmin,minpos, 1 Warning: Unused dummy argument 'l' at (1) [-Wunused-dummy-argument] src/DIRsubrout.f:840:32: + maxfunc,maxdeep,oops) 1 Warning: Unused dummy argument 'maxdeep' at (1) [-Wunused-dummy-argument] src/DIRsubrout.f:838:68: + dwrit,logfile,f,free,maxI,point,fcn,x,l,fmin,minpos, 1 Warning: Unused dummy argument 'minpos' at (1) [-Wunused-dummy-argument] src/DIRsubrout.f:839:18: + u,n, 1 Warning: Unused dummy argument 'u' at (1) [-Wunused-dummy-argument] src/DIRsubrout.f:838:54: + dwrit,logfile,f,free,maxI,point,fcn,x,l,fmin,minpos, 1 Warning: Unused dummy argument 'x' at (1) [-Wunused-dummy-argument] src/DIRsubrout.f:306:43: SUBROUTINE DIRreplaceInf(free,freeold,f,c,thirds,length,anchor, 1 Warning: Unused dummy argument 'freeold' at (1) [-Wunused-dummy-argument] src/DIRsubrout.f:951:68: SUBROUTINE DIRInsert3(pos1,pos2,pos3,deep,anchor,point,free, 1 Warning: Unused dummy argument 'free' at (1) [-Wunused-dummy-argument] src/DIRsubrout.f:1221:64: SUBROUTINE DIRWriteHistBox(point,f,thirds,c,anchor,actdeep,file, 1 Warning: Unused dummy argument 'actdeep' at (1) [-Wunused-dummy-argument] src/DIRsubrout.f:1221:56: SUBROUTINE DIRWriteHistBox(point,f,thirds,c,anchor,actdeep,file, 1 Warning: Unused dummy argument 'anchor' at (1) [-Wunused-dummy-argument] src/DIRsubrout.f:1221:69: SUBROUTINE DIRWriteHistBox(point,f,thirds,c,anchor,actdeep,file, 1 Warning: Unused dummy argument 'file' at (1) [-Wunused-dummy-argument] src/DIRsubrout.f:1222:30: + l,u,file2,maxfunc,maxdeep,n,maxor,length) 1 Warning: Unused dummy argument 'file2' at (1) [-Wunused-dummy-argument] src/DIRsubrout.f:1221:38: SUBROUTINE DIRWriteHistBox(point,f,thirds,c,anchor,actdeep,file, 1 Warning: Unused dummy argument 'point' at (1) [-Wunused-dummy-argument] src/DIRsubrout.f:1256:57: + iidata, iisize, ddata, idsize, cdata, icsize) 1 Warning: Unused dummy argument 'cdata' at (1) [-Wunused-dummy-argument] src/DIRsubrout.f:1256:42: + iidata, iisize, ddata, idsize, cdata, icsize) 1 Warning: Unused dummy argument 'ddata' at (1) [-Wunused-dummy-argument] src/DIRsubrout.f:1256:27: + iidata, iisize, ddata, idsize, cdata, icsize) 1 Warning: Unused dummy argument 'iidata' at (1) [-Wunused-dummy-argument] src/DIRsubrout.f:1253:48: + algmethod, maxfunc, maxdeep, 1 Warning: Unused dummy argument 'maxdeep' at (1) [-Wunused-dummy-argument] src/DIRsubrout.f:1252:44: SUBROUTINE DIRheader(logfile,version,x,n,eps,maxf,maxT,l,u, 1 Warning: Unused dummy argument 'x' at (1) [-Wunused-dummy-argument] src/DIRsubrout.f:1414:45: + fglobal, numfunc, Ierror) 1 Warning: Unused dummy argument 'ierror' at (1) [-Wunused-dummy-argument] src/DIRsubrout.f:155:0: S(maxpos,2) = novaluedeep Warning: 'novaluedeep' may be used uninitialized in this function [-Wmaybe-uninitialized] gfortran:f77: build/src.linux-i686-2.7/src/direct-f2pywrappers.f /usr/bin/gfortran -Wall -g -Wall -g -shared -g build/temp.linux-i686-2.7/build/src.linux-i686-2.7/src/directmodule.o build/temp.linux-i686-2.7/build/src.linux-i686-2.7/build/src.linux-i686-2.7/src/fortranobject.o build/temp.linux-i686-2.7/src/DIRect.o build/temp.linux-i686-2.7/src/DIRserial.o build/temp.linux-i686-2.7/src/DIRsubrout.o build/temp.linux-i686-2.7/build/src.linux-i686-2.7/src/direct-f2pywrappers.o -L/usr/lib/gcc/i586-alt-linux/8 -L/usr/lib/gcc/i586-alt-linux/8 -L/usr/lib -lpython2.7 -lgfortran -o build/lib.linux-i686-2.7/DIRECT/direct.so + pushd ../python3 ~/RPM/BUILD/python3 ~/RPM/BUILD/python-module-DIRECT-1.0.1 + CFLAGS='-pipe -frecord-gcc-switches -Wall -g -O2 -march=i586 -mtune=generic -fPIC -DPIC' + export CFLAGS + CXXFLAGS='-pipe -frecord-gcc-switches -Wall -g -O2 -march=i586 -mtune=generic -fPIC -DPIC' + export CXXFLAGS + FFLAGS='-pipe -frecord-gcc-switches -Wall -g -O2 -march=i586 -mtune=generic -fPIC -DPIC' + export FFLAGS + /usr/bin/python3 setup.py build --debug 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 extension "DIRECT.direct" sources creating build creating build/src.linux-i686-3.6 creating build/src.linux-i686-3.6/src f2py options: [] f2py: src/direct.pyf Reading fortran codes... Reading file 'src/direct.pyf' (format:free) Post-processing... Block: direct__user__routines Block: direct_user_interface Block: fcn Block: direct Block: direct In: src/direct.pyf:direct:unknown_interface:direct get_useparameters: no module direct__user__routines info used by direct Post-processing (stage 2)... Building modules... Constructing call-back function "cb_fcn_in_direct__user__routines" def fcn(x,iidata,ddata,cdata,[n,iisize,idsize,icsize]): return f,flag Building module "direct"... Constructing wrapper function "direct"... x,fmin,ierror = direct(fcn,eps,maxf,maxt,l,u,algmethod,logfilename,fglobal,fglper,volper,sigmaper,iidata,ddata,cdata,[n,iisize,idsize,icsize,fcn_extra_args]) Constructing COMMON block support for "directcontrol"... jones Wrote C/API module "direct" to file "build/src.linux-i686-3.6/src/directmodule.c" Fortran 77 wrappers are saved to "build/src.linux-i686-3.6/src/direct-f2pywrappers.f" adding 'build/src.linux-i686-3.6/build/src.linux-i686-3.6/src/fortranobject.c' to sources. adding 'build/src.linux-i686-3.6/build/src.linux-i686-3.6/src' to include_dirs. creating build/src.linux-i686-3.6/build creating build/src.linux-i686-3.6/build/src.linux-i686-3.6 creating build/src.linux-i686-3.6/build/src.linux-i686-3.6/src copying /usr/lib/python3/site-packages/numpy/f2py/src/fortranobject.c -> build/src.linux-i686-3.6/build/src.linux-i686-3.6/src copying /usr/lib/python3/site-packages/numpy/f2py/src/fortranobject.h -> build/src.linux-i686-3.6/build/src.linux-i686-3.6/src adding 'build/src.linux-i686-3.6/src/direct-f2pywrappers.f' to sources. build_src: building npy-pkg config files running build_py creating build/lib.linux-i686-3.6 creating build/lib.linux-i686-3.6/DIRECT copying DIRECT/__init__.py -> build/lib.linux-i686-3.6/DIRECT running build_ext customize UnixCCompiler customize UnixCCompiler using build_ext get_default_fcompiler: matching types: '['gnu95', 'intel', 'lahey', 'pg', 'absoft', 'nag', 'vast', 'compaq', 'intele', 'intelem', 'gnu', 'g95', 'pathf95', 'nagfor']' customize Gnu95FCompiler Found executable /usr/bin/gfortran customize Gnu95FCompiler customize Gnu95FCompiler using build_ext building 'DIRECT.direct' extension compiling C sources C compiler: i586-alt-linux-gcc -pthread -DDYNAMIC_ANNOTATIONS_ENABLED=1 -DNDEBUG -g -fwrapv -O3 -Wall -pipe -frecord-gcc-switches -Wall -g -O2 -march=i586 -mtune=generic -fPIC -DPIC -fPIC creating build/temp.linux-i686-3.6/build creating build/temp.linux-i686-3.6/build/src.linux-i686-3.6 creating build/temp.linux-i686-3.6/build/src.linux-i686-3.6/src creating build/temp.linux-i686-3.6/build/src.linux-i686-3.6/build creating build/temp.linux-i686-3.6/build/src.linux-i686-3.6/build/src.linux-i686-3.6 creating build/temp.linux-i686-3.6/build/src.linux-i686-3.6/build/src.linux-i686-3.6/src compile options: '-g -Ibuild/src.linux-i686-3.6/build/src.linux-i686-3.6/src -I/usr/lib/python3/site-packages/numpy/core/include -I/usr/include/python3.6m -c' i586-alt-linux-gcc: build/src.linux-i686-3.6/src/directmodule.c i586-alt-linux-gcc: build/src.linux-i686-3.6/build/src.linux-i686-3.6/src/fortranobject.c In file included from /usr/include/numpy/ndarraytypes.h:1821, from /usr/include/numpy/ndarrayobject.h:18, from /usr/include/numpy/arrayobject.h:4, from build/src.linux-i686-3.6/build/src.linux-i686-3.6/src/fortranobject.h:13, from build/src.linux-i686-3.6/build/src.linux-i686-3.6/src/fortranobject.c:2: /usr/include/numpy/npy_1_7_deprecated_api.h:15:2: warning: #warning "Using deprecated NumPy API, disable it by " "#defining NPY_NO_DEPRECATED_API NPY_1_7_API_VERSION" [-Wcpp] #warning "Using deprecated NumPy API, disable it by " \ ^~~~~~~ In file included from /usr/include/numpy/ndarraytypes.h:1821, from /usr/include/numpy/ndarrayobject.h:18, from /usr/include/numpy/arrayobject.h:4, from build/src.linux-i686-3.6/build/src.linux-i686-3.6/src/fortranobject.h:13, from build/src.linux-i686-3.6/src/directmodule.c:16: /usr/include/numpy/npy_1_7_deprecated_api.h:15:2: warning: #warning "Using deprecated NumPy API, disable it by " "#defining NPY_NO_DEPRECATED_API NPY_1_7_API_VERSION" [-Wcpp] #warning "Using deprecated NumPy API, disable it by " \ ^~~~~~~ build/src.linux-i686-3.6/src/directmodule.c: In function ‘cb_fcn_in_direct__user__routines’: build/src.linux-i686-3.6/src/directmodule.c:456:7: warning: unused variable ‘flag’ [-Wunused-variable] int flag=(*flag_cb_capi); ^~~~ build/src.linux-i686-3.6/src/directmodule.c:455:10: warning: unused variable ‘f’ [-Wunused-variable] double f=(*f_cb_capi); ^ At top level: build/src.linux-i686-3.6/src/directmodule.c:162:12: warning: ‘f2py_size’ defined but not used [-Wunused-function] static int f2py_size(PyArrayObject* var, ...) ^~~~~~~~~ compiling Fortran sources Fortran f77 compiler: /usr/bin/gfortran -Wall -g -ffixed-form -fno-second-underscore -pipe -frecord-gcc-switches -Wall -g -O2 -march=i586 -mtune=generic -fPIC -DPIC -O3 -funroll-loops Fortran f90 compiler: /usr/bin/gfortran -Wall -g -fno-second-underscore -pipe -frecord-gcc-switches -Wall -g -O2 -march=i586 -mtune=generic -fPIC -DPIC -O3 -funroll-loops Fortran fix compiler: /usr/bin/gfortran -Wall -g -ffixed-form -fno-second-underscore -Wall -g -fno-second-underscore -pipe -frecord-gcc-switches -Wall -g -O2 -march=i586 -mtune=generic -fPIC -DPIC -O3 -funroll-loops creating build/temp.linux-i686-3.6/src compile options: '-g -Ibuild/src.linux-i686-3.6/build/src.linux-i686-3.6/src -I/usr/lib/python3/site-packages/numpy/core/include -I/usr/include/python3.6m -c' gfortran:f77: src/DIRect.f gfortran:f77: src/DIRsubrout.f gfortran:f77: build/src.linux-i686-3.6/src/direct-f2pywrappers.f gfortran:f77: src/DIRserial.f src/DIRserial.f:11:36: SUBROUTINE DIRSamplef(c,ArrayI,delta,sample,new,length, 1 Warning: Unused dummy argument ‘arrayi’ at (1) [-Wunused-dummy-argument] src/DIRserial.f:11:42: SUBROUTINE DIRSamplef(c,ArrayI,delta,sample,new,length, 1 Warning: Unused dummy argument ‘delta’ at (1) [-Wunused-dummy-argument] src/DIRserial.f:12:22: + dwrit,logfile,f,free,maxI,point,fcn,x,l,fmin, 1 Warning: Unused dummy argument ‘dwrit’ at (1) [-Wunused-dummy-argument] src/DIRserial.f:12:37: + dwrit,logfile,f,free,maxI,point,fcn,x,l,fmin, 1 Warning: Unused dummy argument ‘free’ at (1) [-Wunused-dummy-argument] src/DIRserial.f:11:60: SUBROUTINE DIRSamplef(c,ArrayI,delta,sample,new,length, 1 Warning: Unused dummy argument ‘length’ at (1) [-Wunused-dummy-argument] src/DIRserial.f:12:30: + dwrit,logfile,f,free,maxI,point,fcn,x,l,fmin, 1 Warning: Unused dummy argument ‘logfile’ at (1) [-Wunused-dummy-argument] src/DIRserial.f:13:43: + minpos,u,n,maxfunc,maxdeep,oops,fmax, 1 Warning: Unused dummy argument ‘maxdeep’ at (1) [-Wunused-dummy-argument] src/DIRserial.f:13:48: + minpos,u,n,maxfunc,maxdeep,oops,fmax, 1 Warning: Unused dummy argument ‘oops’ at (1) [-Wunused-dummy-argument] src/DIRserial.f:11:49: SUBROUTINE DIRSamplef(c,ArrayI,delta,sample,new,length, 1 Warning: Unused dummy argument ‘sample’ at (1) [-Wunused-dummy-argument] src/DIRserial.f:128:45: + iidata, iisize, ddata, idsize, cdata, icsize) 1 Warning: Unused dummy argument ‘cdata’ at (1) [-Wunused-dummy-argument] src/DIRserial.f:128:30: + iidata, iisize, ddata, idsize, cdata, icsize) 1 Warning: Unused dummy argument ‘ddata’ at (1) [-Wunused-dummy-argument] src/DIRserial.f:128:15: + iidata, iisize, ddata, idsize, cdata, icsize) 1 Warning: Unused dummy argument ‘iidata’ at (1) [-Wunused-dummy-argument] src/DIRserial.f:127:34: SUBROUTINE DIRInitSpecific(x,n, 1 Warning: Unused dummy argument ‘x’ at (1) [-Wunused-dummy-argument] src/DIRect.f:511:26: actdeep = f(help,1) 1 Warning: Possible change of value in conversion from REAL(8) to INTEGER(4) at (1) [-Wconversion] f951: Warning: Nonconforming tab character in column 5 of line 170 [-Wtabs] f951: Warning: Nonconforming tab character in column 5 of line 200 [-Wtabs] f951: Warning: Nonconforming tab character in column 3 of line 610 [-Wtabs] src/DIRsubrout.f:98:18: 30 CONTINUE 1 Warning: Nonconforming tab character at (1) [-Wtabs] src/DIRsubrout.f:791:7: + ArrayI,sample,List2,w,maxI,f,maxfunc,maxdeep,n) 1 Warning: Nonconforming tab character at (1) [-Wtabs] src/DIRsubrout.f:975:49: CALL DIRInsert(pos,pos3,point,f,maxfunc) 1 Warning: Nonconforming tab character at (1) [-Wtabs] src/DIRsubrout.f:397:4: 1000 format(20f18.8) 1 Warning: Label 1000 at (1) defined but not used [-Wunused-label] src/DIRsubrout.f:1385:5: 10005 FORMAT("WARNING : The maximum number of iterations (",I5, 1 Warning: Label 10005 at (1) defined but not used [-Wunused-label] src/DIRsubrout.f:791:54: + ArrayI,sample,List2,w,maxI,f,maxfunc,maxdeep,n) 1 Warning: Unused dummy argument ‘maxdeep’ at (1) [-Wunused-dummy-argument] src/DIRsubrout.f:838:32: + dwrit,logfile,f,free,maxI,point,fcn,x,l,fmin,minpos, 1 Warning: Unused dummy argument ‘f’ at (1) [-Wunused-dummy-argument] src/DIRsubrout.f:838:52: + dwrit,logfile,f,free,maxI,point,fcn,x,l,fmin,minpos, 1 Warning: Unused dummy argument ‘fcn’ at (1) [-Wunused-dummy-argument] src/DIRsubrout.f:838:61: + dwrit,logfile,f,free,maxI,point,fcn,x,l,fmin,minpos, 1 Warning: Unused dummy argument ‘fmin’ at (1) [-Wunused-dummy-argument] src/DIRsubrout.f:838:56: + dwrit,logfile,f,free,maxI,point,fcn,x,l,fmin,minpos, 1 Warning: Unused dummy argument ‘l’ at (1) [-Wunused-dummy-argument] src/DIRsubrout.f:840:32: + maxfunc,maxdeep,oops) 1 Warning: Unused dummy argument ‘maxdeep’ at (1) [-Wunused-dummy-argument] src/DIRsubrout.f:838:68: + dwrit,logfile,f,free,maxI,point,fcn,x,l,fmin,minpos, 1 Warning: Unused dummy argument ‘minpos’ at (1) [-Wunused-dummy-argument] src/DIRsubrout.f:839:18: + u,n, 1 Warning: Unused dummy argument ‘u’ at (1) [-Wunused-dummy-argument] src/DIRsubrout.f:838:54: + dwrit,logfile,f,free,maxI,point,fcn,x,l,fmin,minpos, 1 Warning: Unused dummy argument ‘x’ at (1) [-Wunused-dummy-argument] src/DIRsubrout.f:306:43: SUBROUTINE DIRreplaceInf(free,freeold,f,c,thirds,length,anchor, 1 Warning: Unused dummy argument ‘freeold’ at (1) [-Wunused-dummy-argument] src/DIRsubrout.f:951:68: SUBROUTINE DIRInsert3(pos1,pos2,pos3,deep,anchor,point,free, 1 Warning: Unused dummy argument ‘free’ at (1) [-Wunused-dummy-argument] src/DIRsubrout.f:1221:64: SUBROUTINE DIRWriteHistBox(point,f,thirds,c,anchor,actdeep,file, 1 Warning: Unused dummy argument ‘actdeep’ at (1) [-Wunused-dummy-argument] src/DIRsubrout.f:1221:56: SUBROUTINE DIRWriteHistBox(point,f,thirds,c,anchor,actdeep,file, 1 Warning: Unused dummy argument ‘anchor’ at (1) [-Wunused-dummy-argument] src/DIRsubrout.f:1221:69: SUBROUTINE DIRWriteHistBox(point,f,thirds,c,anchor,actdeep,file, 1 Warning: Unused dummy argument ‘file’ at (1) [-Wunused-dummy-argument] src/DIRsubrout.f:1222:30: + l,u,file2,maxfunc,maxdeep,n,maxor,length) 1 Warning: Unused dummy argument ‘file2’ at (1) [-Wunused-dummy-argument] src/DIRsubrout.f:1221:38: SUBROUTINE DIRWriteHistBox(point,f,thirds,c,anchor,actdeep,file, 1 Warning: Unused dummy argument ‘point’ at (1) [-Wunused-dummy-argument] src/DIRsubrout.f:1256:57: + iidata, iisize, ddata, idsize, cdata, icsize) 1 Warning: Unused dummy argument ‘cdata’ at (1) [-Wunused-dummy-argument] src/DIRsubrout.f:1256:42: + iidata, iisize, ddata, idsize, cdata, icsize) 1 Warning: Unused dummy argument ‘ddata’ at (1) [-Wunused-dummy-argument] src/DIRsubrout.f:1256:27: + iidata, iisize, ddata, idsize, cdata, icsize) 1 Warning: Unused dummy argument ‘iidata’ at (1) [-Wunused-dummy-argument] src/DIRsubrout.f:1253:48: + algmethod, maxfunc, maxdeep, 1 Warning: Unused dummy argument ‘maxdeep’ at (1) [-Wunused-dummy-argument] src/DIRsubrout.f:1252:44: SUBROUTINE DIRheader(logfile,version,x,n,eps,maxf,maxT,l,u, 1 Warning: Unused dummy argument ‘x’ at (1) [-Wunused-dummy-argument] src/DIRsubrout.f:1414:45: + fglobal, numfunc, Ierror) 1 Warning: Unused dummy argument ‘ierror’ at (1) [-Wunused-dummy-argument] src/DIRsubrout.f:155:0: S(maxpos,2) = novaluedeep Warning: ‘novaluedeep’ may be used uninitialized in this function [-Wmaybe-uninitialized] /usr/bin/gfortran -Wall -g -Wall -g -shared -g build/temp.linux-i686-3.6/build/src.linux-i686-3.6/src/directmodule.o build/temp.linux-i686-3.6/build/src.linux-i686-3.6/build/src.linux-i686-3.6/src/fortranobject.o build/temp.linux-i686-3.6/src/DIRect.o build/temp.linux-i686-3.6/src/DIRserial.o build/temp.linux-i686-3.6/src/DIRsubrout.o build/temp.linux-i686-3.6/build/src.linux-i686-3.6/src/direct-f2pywrappers.o -L/usr/lib/gcc/i586-alt-linux/8 -L/usr/lib/gcc/i586-alt-linux/8 -L/usr/lib -lpython3.6m -lgfortran -o build/lib.linux-i686-3.6/DIRECT/direct.cpython-36m.so + popd ~/RPM/BUILD/python-module-DIRECT-1.0.1 + make -C doc pickle make: Entering directory '/usr/src/RPM/BUILD/python-module-DIRECT-1.0.1/doc' sphinx-build -b pickle -d build/doctrees source build/pickle Running Sphinx v1.6.5 making output directory... Generating grammar tables from /usr/lib/python2.7/site-packages/sphinx/pycode/Grammar-py2.txt WARNING: sphinx.ext.pngmath has been deprecated. Please use sphinx.ext.imgmath instead. loading pickled environment... not yet created building [mo]: targets for 0 po files that are out of date building [pickle]: targets for 4 source files that are out of date updating environment: 4 added, 0 changed, 0 removed reading sources... [ 25%] index /usr/lib/python2.7/site-packages/sphinx/environment/__init__.py:686: RemovedInSphinx17Warning: html_use_smartypants option is deprecated. Smart quotes are on by default; if you want to disable or customize them, use the smart_quotes option in docutils.conf. RemovedInSphinx17Warning) reading sources... [ 50%] install reading sources... [ 75%] reference reading sources... [100%] tutorial /usr/src/RPM/BUILD/python-module-DIRECT-1.0.1/doc/source/index.rst:12: WARNING: autodoc: failed to import module u'DIRECT.__init__'; the following exception was raised: Traceback (most recent call last): File "/usr/lib/python2.7/site-packages/sphinx/ext/autodoc.py", line 658, in import_object __import__(self.modname) ImportError: No module named DIRECT.__init__ /usr/src/RPM/BUILD/python-module-DIRECT-1.0.1/doc/source/reference.rst:10: WARNING: autodoc: failed to import function u'solve' from module u'DIRECT'; the following exception was raised: Traceback (most recent call last): File "/usr/lib/python2.7/site-packages/sphinx/ext/autodoc.py", line 658, in import_object __import__(self.modname) ImportError: No module named DIRECT looking for now-outdated files... none found pickling environment... done checking consistency... done preparing documents... done writing output... [ 25%] index writing output... [ 50%] install writing output... [ 75%] reference writing output... [100%] tutorial WARNING: LaTeX command 'latex' cannot be run (needed for math display), check the pngmath_latex setting generating indices... genindex writing additional pages... search opensearch copying images... [100%] ../images/six_hump.png copying static files... WARNING: html_static_path entry u'/usr/src/RPM/BUILD/python-module-DIRECT-1.0.1/doc/source/_static' does not exist done copying extra files... done dumping search index in English (code: en) ... done dumping object inventory... done build succeeded, 5 warnings. Build finished; now you can process the pickle files. make: Leaving directory '/usr/src/RPM/BUILD/python-module-DIRECT-1.0.1/doc' + make -C doc html make: Entering directory '/usr/src/RPM/BUILD/python-module-DIRECT-1.0.1/doc' sphinx-build -b html -d build/doctrees source build/html Running Sphinx v1.6.5 making output directory... Generating grammar tables from /usr/lib/python2.7/site-packages/sphinx/pycode/Grammar-py2.txt WARNING: sphinx.ext.pngmath has been deprecated. Please use sphinx.ext.imgmath instead. loading pickled environment... done building [mo]: targets for 0 po files that are out of date building [html]: targets for 4 source files that are out of date updating environment: 0 added, 2 changed, 0 removed reading sources... [ 50%] index reading sources... [100%] reference /usr/src/RPM/BUILD/python-module-DIRECT-1.0.1/doc/source/index.rst:12: WARNING: autodoc: failed to import module u'DIRECT.__init__'; the following exception was raised: Traceback (most recent call last): File "/usr/lib/python2.7/site-packages/sphinx/ext/autodoc.py", line 658, in import_object __import__(self.modname) ImportError: No module named DIRECT.__init__ /usr/src/RPM/BUILD/python-module-DIRECT-1.0.1/doc/source/reference.rst:10: WARNING: autodoc: failed to import function u'solve' from module u'DIRECT'; the following exception was raised: Traceback (most recent call last): File "/usr/lib/python2.7/site-packages/sphinx/ext/autodoc.py", line 658, in import_object __import__(self.modname) ImportError: No module named DIRECT looking for now-outdated files... none found pickling environment... done checking consistency... done preparing documents... done writing output... [ 25%] index writing output... [ 50%] install writing output... [ 75%] reference writing output... [100%] tutorial WARNING: LaTeX command 'latex' cannot be run (needed for math display), check the pngmath_latex setting generating indices... genindex writing additional pages... search opensearch copying images... [100%] ../images/six_hump.png copying static files... WARNING: html_static_path entry u'/usr/src/RPM/BUILD/python-module-DIRECT-1.0.1/doc/source/_static' does not exist done copying extra files... done dumping search index in English (code: en) ... done dumping object inventory... done build succeeded, 5 warnings. Build finished. The HTML pages are in build/html. make: Leaving directory '/usr/src/RPM/BUILD/python-module-DIRECT-1.0.1/doc' + exit 0 Executing(%install): /bin/sh -e /usr/src/tmp/rpm-tmp.28547 + umask 022 + /bin/mkdir -p /usr/src/RPM/BUILD + cd /usr/src/RPM/BUILD + /bin/chmod -Rf u+rwX -- /usr/src/tmp/python-module-DIRECT-buildroot + : + /bin/rm -rf -- /usr/src/tmp/python-module-DIRECT-buildroot + cd python-module-DIRECT-1.0.1 + CFLAGS='-pipe -frecord-gcc-switches -Wall -g -O2 -march=i586 -mtune=generic -fPIC -DPIC' + export CFLAGS + CXXFLAGS='-pipe -frecord-gcc-switches -Wall -g -O2 -march=i586 -mtune=generic -fPIC -DPIC' + export CXXFLAGS + FFLAGS='-pipe -frecord-gcc-switches -Wall -g -O2 -march=i586 -mtune=generic -fPIC -DPIC' + export FFLAGS + /usr/bin/python2.7 setup.py install --skip-build --root=/usr/src/tmp/python-module-DIRECT-buildroot --force running install running install_lib creating /usr/src/tmp/python-module-DIRECT-buildroot creating /usr/src/tmp/python-module-DIRECT-buildroot/usr creating /usr/src/tmp/python-module-DIRECT-buildroot/usr/lib creating /usr/src/tmp/python-module-DIRECT-buildroot/usr/lib/python2.7 creating /usr/src/tmp/python-module-DIRECT-buildroot/usr/lib/python2.7/site-packages creating /usr/src/tmp/python-module-DIRECT-buildroot/usr/lib/python2.7/site-packages/DIRECT copying build/lib.linux-i686-2.7/DIRECT/direct.so -> /usr/src/tmp/python-module-DIRECT-buildroot/usr/lib/python2.7/site-packages/DIRECT copying build/lib.linux-i686-2.7/DIRECT/__init__.py -> /usr/src/tmp/python-module-DIRECT-buildroot/usr/lib/python2.7/site-packages/DIRECT byte-compiling /usr/src/tmp/python-module-DIRECT-buildroot/usr/lib/python2.7/site-packages/DIRECT/__init__.py to __init__.pyc running install_egg_info running egg_info running build_src build_src building extension "DIRECT.direct" sources f2py options: [] adding 'build/src.linux-i686-2.7/build/src.linux-i686-2.7/src/fortranobject.c' to sources. adding 'build/src.linux-i686-2.7/build/src.linux-i686-2.7/src' to include_dirs. adding 'build/src.linux-i686-2.7/src/direct-f2pywrappers.f' to sources. build_src: building npy-pkg config files writing DIRECT.egg-info/PKG-INFO writing top-level names to DIRECT.egg-info/top_level.txt writing dependency_links to DIRECT.egg-info/dependency_links.txt reading manifest file 'DIRECT.egg-info/SOURCES.txt' reading manifest template 'MANIFEST.in' writing manifest file 'DIRECT.egg-info/SOURCES.txt' Copying DIRECT.egg-info to /usr/src/tmp/python-module-DIRECT-buildroot/usr/lib/python2.7/site-packages/DIRECT-1.0.1-py2.7.egg-info running install_scripts running install_clib customize UnixCCompiler + pushd ../python3 ~/RPM/BUILD/python3 ~/RPM/BUILD/python-module-DIRECT-1.0.1 + CFLAGS='-pipe -frecord-gcc-switches -Wall -g -O2 -march=i586 -mtune=generic -fPIC -DPIC' + export CFLAGS + CXXFLAGS='-pipe -frecord-gcc-switches -Wall -g -O2 -march=i586 -mtune=generic -fPIC -DPIC' + export CXXFLAGS + FFLAGS='-pipe -frecord-gcc-switches -Wall -g -O2 -march=i586 -mtune=generic -fPIC -DPIC' + export FFLAGS + /usr/bin/python3 setup.py install --skip-build --root=/usr/src/tmp/python-module-DIRECT-buildroot --force running install running install_lib creating /usr/src/tmp/python-module-DIRECT-buildroot/usr/lib/python3 creating /usr/src/tmp/python-module-DIRECT-buildroot/usr/lib/python3/site-packages creating /usr/src/tmp/python-module-DIRECT-buildroot/usr/lib/python3/site-packages/DIRECT copying build/lib.linux-i686-3.6/DIRECT/direct.cpython-36m.so -> /usr/src/tmp/python-module-DIRECT-buildroot/usr/lib/python3/site-packages/DIRECT copying build/lib.linux-i686-3.6/DIRECT/__init__.py -> /usr/src/tmp/python-module-DIRECT-buildroot/usr/lib/python3/site-packages/DIRECT byte-compiling /usr/src/tmp/python-module-DIRECT-buildroot/usr/lib/python3/site-packages/DIRECT/__init__.py to __init__.cpython-36.pyc running install_egg_info running egg_info running build_src build_src building extension "DIRECT.direct" sources f2py options: [] adding 'build/src.linux-i686-3.6/build/src.linux-i686-3.6/src/fortranobject.c' to sources. adding 'build/src.linux-i686-3.6/build/src.linux-i686-3.6/src' to include_dirs. adding 'build/src.linux-i686-3.6/src/direct-f2pywrappers.f' to sources. build_src: building npy-pkg config files writing DIRECT.egg-info/PKG-INFO writing dependency_links to DIRECT.egg-info/dependency_links.txt writing top-level names to DIRECT.egg-info/top_level.txt reading manifest file 'DIRECT.egg-info/SOURCES.txt' reading manifest template 'MANIFEST.in' writing manifest file 'DIRECT.egg-info/SOURCES.txt' Copying DIRECT.egg-info to /usr/src/tmp/python-module-DIRECT-buildroot/usr/lib/python3/site-packages/DIRECT-1.0.1-py3.6.egg-info running install_scripts running install_clib customize UnixCCompiler + popd ~/RPM/BUILD/python-module-DIRECT-1.0.1 + cp -fR doc/build/pickle /usr/src/tmp/python-module-DIRECT-buildroot/usr/lib/python2.7/site-packages/DIRECT/ + /usr/lib/rpm/brp-alt Cleaning files in /usr/src/tmp/python-module-DIRECT-buildroot (auto) mode of './usr/lib/python3/site-packages/DIRECT/direct.cpython-36m.so' changed from 0755 (rwxr-xr-x) to 0644 (rw-r--r--) mode of './usr/lib/python2.7/site-packages/DIRECT/direct.so' changed from 0755 (rwxr-xr-x) to 0644 (rw-r--r--) Verifying and fixing files in /usr/src/tmp/python-module-DIRECT-buildroot (binconfig,pkgconfig,libtool,desktop) Checking contents of files in /usr/src/tmp/python-module-DIRECT-buildroot/ (default) Compressing files in /usr/src/tmp/python-module-DIRECT-buildroot (auto) Adjusting library links in /usr/src/tmp/python-module-DIRECT-buildroot ./usr/lib: Verifying ELF objects in /usr/src/tmp/python-module-DIRECT-buildroot (arch=normal,fhs=normal,lfs=relaxed,lint=relaxed,rpath=normal,stack=normal,textrel=normal,unresolved=normal) Bytecompiling python modules in /usr/src/tmp/python-module-DIRECT-buildroot using /usr/bin/python2.7 unlink /usr/src/tmp/python-module-DIRECT-buildroot/usr/lib/python2.7/site-packages/DIRECT/__init__.pyc compile /usr/src/tmp/python-module-DIRECT-buildroot/usr/lib/python2.7/site-packages/DIRECT/__init__.py Bytecompiling python modules with optimization in /usr/src/tmp/python-module-DIRECT-buildroot using /usr/bin/python2.7 -O compile /usr/src/tmp/python-module-DIRECT-buildroot/usr/lib/python2.7/site-packages/DIRECT/__init__.py Bytecompiling python3 modules in /usr/src/tmp/python-module-DIRECT-buildroot using /usr/bin/python3 unlink /usr/src/tmp/python-module-DIRECT-buildroot/usr/lib/python3/site-packages/DIRECT/__pycache__/__init__.cpython-36.pyc compile /usr/src/tmp/python-module-DIRECT-buildroot/usr/lib/python3/site-packages/DIRECT/__init__.py Bytecompiling python3 modules with optimization in /usr/src/tmp/python-module-DIRECT-buildroot using /usr/bin/python3 -O compile /usr/src/tmp/python-module-DIRECT-buildroot/usr/lib/python3/site-packages/DIRECT/__init__.py Bytecompiling python3 modules with optimization-2 in /usr/src/tmp/python-module-DIRECT-buildroot using /usr/bin/python3 -OO compile /usr/src/tmp/python-module-DIRECT-buildroot/usr/lib/python3/site-packages/DIRECT/__init__.py Hardlinking identical .pyc and .opt-?.pyc files './usr/lib/python3/site-packages/DIRECT/__pycache__/__init__.cpython-36.opt-1.pyc' => './usr/lib/python3/site-packages/DIRECT/__pycache__/__init__.cpython-36.pyc' Hardlinking identical .pyc and .pyo files './usr/lib/python2.7/site-packages/DIRECT/__init__.pyo' => './usr/lib/python2.7/site-packages/DIRECT/__init__.pyc' Processing files: python-module-DIRECT-1.0.1-alt2.1.2.1 Executing(%doc): /bin/sh -e /usr/src/tmp/rpm-tmp.8265 + umask 022 + /bin/mkdir -p /usr/src/RPM/BUILD + cd /usr/src/RPM/BUILD + cd python-module-DIRECT-1.0.1 + DOCDIR=/usr/src/tmp/python-module-DIRECT-buildroot/usr/share/doc/python-module-DIRECT-1.0.1 + export DOCDIR + rm -rf /usr/src/tmp/python-module-DIRECT-buildroot/usr/share/doc/python-module-DIRECT-1.0.1 + /bin/mkdir -p /usr/src/tmp/python-module-DIRECT-buildroot/usr/share/doc/python-module-DIRECT-1.0.1 + cp -prL AUTHORS /usr/src/tmp/python-module-DIRECT-buildroot/usr/share/doc/python-module-DIRECT-1.0.1 + chmod -R go-w /usr/src/tmp/python-module-DIRECT-buildroot/usr/share/doc/python-module-DIRECT-1.0.1 + chmod -R a+rX /usr/src/tmp/python-module-DIRECT-buildroot/usr/share/doc/python-module-DIRECT-1.0.1 + exit 0 Finding Provides (using /usr/lib/rpm/find-provides) Executing: /bin/sh -e /usr/src/tmp/rpm-tmp.A1W5IV find-provides: running scripts (alternatives,debuginfo,lib,pam,perl,pkgconfig,python,python3,shell) Finding Requires (using /usr/lib/rpm/find-requires) Executing: /bin/sh -e /usr/src/tmp/rpm-tmp.Q6oTBT find-requires: running scripts (cpp,debuginfo,files,lib,pam,perl,pkgconfig,pkgconfiglib,python,python3,rpmlib,shebang,shell,static,symlinks) /usr/lib/rpm/python.req.py: /usr/src/tmp/python-module-DIRECT-buildroot/usr/lib/python2.7/site-packages/DIRECT/__init__.py: line=36 possible relative import from ., UNIMPLEMENTED Provides: python2.7-module-DIRECT = 1.0.1-alt2.1.2.1, python2.7(DIRECT), python2.7(DIRECT.direct) Requires: python = 2.7, /usr/lib/python2.7/site-packages, libc.so.6(GLIBC_2.0), libc.so.6(GLIBC_2.1.3), libc.so.6(GLIBC_2.11), libc.so.6(GLIBC_2.3.4), libc.so.6(GLIBC_2.4), libgfortran.so.5 >= set:ok0gi6O6HkJvHdCyCOFQTFMQpOXo0, libgfortran.so.5(GFORTRAN_8), libpython2.7.so.1.0 >= set:oilglYPRuzG8ghJBy5LljqZlKlfQa9hM9KhgJXiFeNKMnjslph4J7ayXZzaS2R9XTWlmQDbtQQrKvevUyzhsITByA92Bzon0mWjes9xg0SfhHUxG4rWVmKgSZgSWwVu61Zibmb875ufTyLhLSK58fiDZ0kXbzL391v1, python2.7(numpy), rtld(GNU_HASH) Requires(rpmlib): rpmlib(SetVersions) Finding debuginfo files (using /usr/lib/rpm/find-debuginfo-files) Executing: /bin/sh -e /usr/src/tmp/rpm-tmp.MqZM0N Creating python-module-DIRECT-debuginfo package Processing files: python-module-DIRECT-pickles-1.0.1-alt2.1.2.1 Finding Provides (using /usr/lib/rpm/find-provides) Executing: /bin/sh -e /usr/src/tmp/rpm-tmp.eovlqK find-provides: running scripts (alternatives,debuginfo,lib,pam,perl,pkgconfig,python,python3,shell) Finding Requires (using /usr/lib/rpm/find-requires) Executing: /bin/sh -e /usr/src/tmp/rpm-tmp.K408cq find-requires: running scripts (cpp,debuginfo,files,lib,pam,perl,pkgconfig,pkgconfiglib,python,python3,rpmlib,shebang,shell,static,symlinks) Requires: /usr/lib/python2.7/site-packages Finding debuginfo files (using /usr/lib/rpm/find-debuginfo-files) Executing: /bin/sh -e /usr/src/tmp/rpm-tmp.Y4iZsK Processing files: python-module-DIRECT-docs-1.0.1-alt2.1.2.1 Executing(%doc): /bin/sh -e /usr/src/tmp/rpm-tmp.56299 + umask 022 + /bin/mkdir -p /usr/src/RPM/BUILD + cd /usr/src/RPM/BUILD + cd python-module-DIRECT-1.0.1 + DOCDIR=/usr/src/tmp/python-module-DIRECT-buildroot/usr/share/doc/python-module-DIRECT-docs-1.0.1 + export DOCDIR + rm -rf /usr/src/tmp/python-module-DIRECT-buildroot/usr/share/doc/python-module-DIRECT-docs-1.0.1 + /bin/mkdir -p /usr/src/tmp/python-module-DIRECT-buildroot/usr/share/doc/python-module-DIRECT-docs-1.0.1 + cp -prL doc/build/html/_images doc/build/html/_sources doc/build/html/_static doc/build/html/genindex.html doc/build/html/index.html doc/build/html/install.html doc/build/html/objects.inv doc/build/html/reference.html doc/build/html/search.html doc/build/html/searchindex.js doc/build/html/tutorial.html /usr/src/tmp/python-module-DIRECT-buildroot/usr/share/doc/python-module-DIRECT-docs-1.0.1 + chmod -R go-w /usr/src/tmp/python-module-DIRECT-buildroot/usr/share/doc/python-module-DIRECT-docs-1.0.1 + chmod -R a+rX /usr/src/tmp/python-module-DIRECT-buildroot/usr/share/doc/python-module-DIRECT-docs-1.0.1 + exit 0 Finding Provides (using /usr/lib/rpm/find-provides) Executing: /bin/sh -e /usr/src/tmp/rpm-tmp.kyxx7t find-provides: running scripts (alternatives,debuginfo,lib,pam,perl,pkgconfig,python,python3,shell) Finding Requires (using /usr/lib/rpm/find-requires) Executing: /bin/sh -e /usr/src/tmp/rpm-tmp.ey715M find-requires: running scripts (cpp,debuginfo,files,lib,pam,perl,pkgconfig,pkgconfiglib,python,python3,rpmlib,shebang,shell,static,symlinks) Processing files: python3-module-DIRECT-1.0.1-alt2.1.2.1 Executing(%doc): /bin/sh -e /usr/src/tmp/rpm-tmp.95821 + umask 022 + /bin/mkdir -p /usr/src/RPM/BUILD + cd /usr/src/RPM/BUILD + cd python-module-DIRECT-1.0.1 + DOCDIR=/usr/src/tmp/python-module-DIRECT-buildroot/usr/share/doc/python3-module-DIRECT-1.0.1 + export DOCDIR + rm -rf /usr/src/tmp/python-module-DIRECT-buildroot/usr/share/doc/python3-module-DIRECT-1.0.1 + /bin/mkdir -p /usr/src/tmp/python-module-DIRECT-buildroot/usr/share/doc/python3-module-DIRECT-1.0.1 + cp -prL AUTHORS /usr/src/tmp/python-module-DIRECT-buildroot/usr/share/doc/python3-module-DIRECT-1.0.1 + chmod -R go-w /usr/src/tmp/python-module-DIRECT-buildroot/usr/share/doc/python3-module-DIRECT-1.0.1 + chmod -R a+rX /usr/src/tmp/python-module-DIRECT-buildroot/usr/share/doc/python3-module-DIRECT-1.0.1 + exit 0 Finding Provides (using /usr/lib/rpm/find-provides) Executing: /bin/sh -e /usr/src/tmp/rpm-tmp.KSDi8y find-provides: running scripts (alternatives,debuginfo,lib,pam,perl,pkgconfig,python,python3,shell) Finding Requires (using /usr/lib/rpm/find-requires) Executing: /bin/sh -e /usr/src/tmp/rpm-tmp.mv1fl1 find-requires: running scripts (cpp,debuginfo,files,lib,pam,perl,pkgconfig,pkgconfiglib,python,python3,rpmlib,shebang,shell,static,symlinks) /usr/lib/rpm/python3.req.py: /usr/src/tmp/python-module-DIRECT-buildroot/usr/lib/python3/site-packages/DIRECT/__init__.py: line=36 possible relative import from ., UNIMPLEMENTED Provides: python3(DIRECT), python3(DIRECT.direct) Requires: /usr/lib/python3/site-packages, libc.so.6(GLIBC_2.0), libc.so.6(GLIBC_2.1.3), libc.so.6(GLIBC_2.11), libc.so.6(GLIBC_2.3.4), libc.so.6(GLIBC_2.4), libgfortran.so.5 >= set:ok0gi6O6HkJvHdCyCOFQTFMQpOXo0, libgfortran.so.5(GFORTRAN_8), libpython3.6m.so.1.0 >= set:oi5wsXdGy0b6T65dcQbjZCRACvVmZ0JiOCju72B1dj7XXvUv7kMxS2TqybuZre325hZGlpCBKNWrZciASZrmehAR057zUoLb5FL8X2MivOxb942MZpEiVUM0WI2VOkDVPS7IR1ouZDNq1DgI0tZwiVEAsNMSn6v7OZtW3g0, python3(numpy) < 0, python3.6-ABI, rtld(GNU_HASH) Requires(rpmlib): rpmlib(SetVersions) Finding debuginfo files (using /usr/lib/rpm/find-debuginfo-files) Executing: /bin/sh -e /usr/src/tmp/rpm-tmp.q97HE9 Creating python3-module-DIRECT-debuginfo package Processing files: python-module-DIRECT-debuginfo-1.0.1-alt2.1.2.1 Finding Provides (using /usr/lib/rpm/find-provides) Executing: /bin/sh -e /usr/src/tmp/rpm-tmp.tyNF35 find-provides: running scripts (debuginfo) Finding Requires (using /usr/lib/rpm/find-requires) Executing: /bin/sh -e /usr/src/tmp/rpm-tmp.wkYeuE find-requires: running scripts (debuginfo) Requires: python-module-DIRECT = 1.0.1-alt2.1.2.1, debug(libc.so.6), debug(libgfortran.so.5), debug(libpython2.7.so.1.0) Processing files: python3-module-DIRECT-debuginfo-1.0.1-alt2.1.2.1 Finding Provides (using /usr/lib/rpm/find-provides) Executing: /bin/sh -e /usr/src/tmp/rpm-tmp.ReYO7L find-provides: running scripts (debuginfo) Finding Requires (using /usr/lib/rpm/find-requires) Executing: /bin/sh -e /usr/src/tmp/rpm-tmp.T2Ir7R find-requires: running scripts (debuginfo) Requires: python3-module-DIRECT = 1.0.1-alt2.1.2.1, debug(libc.so.6), debug(libgfortran.so.5), debug(libpython3.6m.so.1.0) Wrote: /usr/src/RPM/RPMS/i586/python-module-DIRECT-1.0.1-alt2.1.2.1.i586.rpm Wrote: /usr/src/RPM/RPMS/i586/python-module-DIRECT-pickles-1.0.1-alt2.1.2.1.i586.rpm Wrote: /usr/src/RPM/RPMS/noarch/python-module-DIRECT-docs-1.0.1-alt2.1.2.1.noarch.rpm Wrote: /usr/src/RPM/RPMS/i586/python3-module-DIRECT-1.0.1-alt2.1.2.1.i586.rpm Wrote: /usr/src/RPM/RPMS/i586/python-module-DIRECT-debuginfo-1.0.1-alt2.1.2.1.i586.rpm Wrote: /usr/src/RPM/RPMS/i586/python3-module-DIRECT-debuginfo-1.0.1-alt2.1.2.1.i586.rpm 30.94user 2.16system 0:56.89elapsed 58%CPU (0avgtext+0avgdata 38972maxresident)k 0inputs+0outputs (0major+741548minor)pagefaults 0swaps 47.94user 6.40system 1:30.73elapsed 59%CPU (0avgtext+0avgdata 121744maxresident)k 2160inputs+0outputs (0major+1454562minor)pagefaults 0swaps --- python-module-DIRECT-1.0.1-alt2.1.2.1.i586.rpm.repo 2018-05-01 23:43:16.000000000 +0000 +++ python-module-DIRECT-1.0.1-alt2.1.2.1.i586.rpm.hasher 2019-02-01 08:58:24.925835895 +0000 @@ -20,5 +20,5 @@ Requires: libc.so.6(GLIBC_2.4) -Requires: libgfortran.so.4 >= set:ok0gi6O6HkJvHdCyCOFQTFMQpOXo0 +Requires: libgfortran.so.5 >= set:ok0gi6O6HkJvHdCyCOFQTFMQpOXo0 Requires: rpmlib(SetVersions) -Requires: libgfortran.so.4(GFORTRAN_7) +Requires: libgfortran.so.5(GFORTRAN_8) Requires: libpython2.7.so.1.0 >= set:oilglYPRuzG8ghJBy5LljqZlKlfQa9hM9KhgJXiFeNKMnjslph4J7ayXZzaS2R9XTWlmQDbtQQrKvevUyzhsITByA92Bzon0mWjes9xg0SfhHUxG4rWVmKgSZgSWwVu61Zibmb875ufTyLhLSK58fiDZ0kXbzL391v1 --- python-module-DIRECT-debuginfo-1.0.1-alt2.1.2.1.i586.rpm.repo 2018-05-01 23:43:16.000000000 +0000 +++ python-module-DIRECT-debuginfo-1.0.1-alt2.1.2.1.i586.rpm.hasher 2019-02-01 08:58:24.944835915 +0000 @@ -21,3 +21,3 @@ Requires: debug(libc.so.6) -Requires: debug(libgfortran.so.4) +Requires: debug(libgfortran.so.5) Requires: debug(libpython2.7.so.1.0) --- python3-module-DIRECT-1.0.1-alt2.1.2.1.i586.rpm.repo 2018-05-01 23:43:16.000000000 +0000 +++ python3-module-DIRECT-1.0.1-alt2.1.2.1.i586.rpm.hasher 2019-02-01 08:58:24.994835968 +0000 @@ -21,5 +21,5 @@ Requires: libc.so.6(GLIBC_2.4) -Requires: libgfortran.so.4 >= set:ok0gi6O6HkJvHdCyCOFQTFMQpOXo0 +Requires: libgfortran.so.5 >= set:ok0gi6O6HkJvHdCyCOFQTFMQpOXo0 Requires: rpmlib(SetVersions) -Requires: libgfortran.so.4(GFORTRAN_7) +Requires: libgfortran.so.5(GFORTRAN_8) Requires: libpython3.6m.so.1.0 >= set:oi5wsXdGy0b6T65dcQbjZCRACvVmZ0JiOCju72B1dj7XXvUv7kMxS2TqybuZre325hZGlpCBKNWrZciASZrmehAR057zUoLb5FL8X2MivOxb942MZpEiVUM0WI2VOkDVPS7IR1ouZDNq1DgI0tZwiVEAsNMSn6v7OZtW3g0 @@ -31,4 +31,2 @@ Provides: python3(DIRECT.direct) -Provides: python3.3(DIRECT) -Provides: python3.3(DIRECT.direct) Provides: python3-module-DIRECT = 1.0.1-alt2.1.2.1 --- python3-module-DIRECT-debuginfo-1.0.1-alt2.1.2.1.i586.rpm.repo 2018-05-01 23:43:16.000000000 +0000 +++ python3-module-DIRECT-debuginfo-1.0.1-alt2.1.2.1.i586.rpm.hasher 2019-02-01 08:58:25.009835985 +0000 @@ -21,3 +21,3 @@ Requires: debug(libc.so.6) -Requires: debug(libgfortran.so.4) +Requires: debug(libgfortran.so.5) Requires: debug(libpython3.6m.so.1.0)