<86>Apr 7 11:11:03 userdel[2799204]: delete user 'rooter' <86>Apr 7 11:11:03 groupadd[2799212]: group added to /etc/group: name=rooter, GID=597 <86>Apr 7 11:11:03 groupadd[2799212]: group added to /etc/gshadow: name=rooter <86>Apr 7 11:11:03 groupadd[2799212]: new group: name=rooter, GID=597 <86>Apr 7 11:11:03 useradd[2799217]: new user: name=rooter, UID=597, GID=597, home=/root, shell=/bin/bash <86>Apr 7 11:11:03 userdel[2799226]: delete user 'builder' <86>Apr 7 11:11:03 userdel[2799226]: removed group 'builder' owned by 'builder' <86>Apr 7 11:11:03 userdel[2799226]: removed shadow group 'builder' owned by 'builder' <86>Apr 7 11:11:03 groupadd[2799232]: group added to /etc/group: name=builder, GID=598 <86>Apr 7 11:11:03 groupadd[2799232]: group added to /etc/gshadow: name=builder <86>Apr 7 11:11:03 groupadd[2799232]: new group: name=builder, GID=598 <86>Apr 7 11:11:03 useradd[2799238]: new user: name=builder, UID=598, GID=598, home=/usr/src, shell=/bin/bash <13>Apr 7 11:11:05 rpmi: libgdbm-1.8.3-alt10 1454943334 installed <13>Apr 7 11:11:05 rpmi: libexpat-2.2.4-alt1 1503305345 installed <13>Apr 7 11:11:05 rpmi: libp11-kit-0.23.15-alt1 sisyphus+226408.100.2.1 1554288204 installed <13>Apr 7 11:11:05 rpmi: libtasn1-4.16.0-alt1 sisyphus+245480.100.1.1 1580825062 installed <13>Apr 7 11:11:05 rpmi: rpm-macros-alternatives-0.5.1-alt1 sisyphus+226946.100.1.1 1554830426 installed <13>Apr 7 11:11:05 rpmi: alternatives-0.5.1-alt1 sisyphus+226946.100.1.1 1554830426 installed <13>Apr 7 11:11:05 rpmi: ca-certificates-2020.01.23-alt1 sisyphus+244791.300.2.1 1580285500 installed <13>Apr 7 11:11:05 rpmi: ca-trust-0.1.2-alt1 sisyphus+233348.100.1.1 1561653823 installed <13>Apr 7 11:11:05 rpmi: p11-kit-trust-0.23.15-alt1 sisyphus+226408.100.2.1 1554288204 installed <13>Apr 7 11:11:05 rpmi: libcrypto1.1-1.1.1d-alt1.1 sisyphus+237931.100.2.1 1569235729 installed <13>Apr 7 11:11:05 rpmi: libssl1.1-1.1.1d-alt1.1 sisyphus+237931.100.2.1 1569235729 installed <13>Apr 7 11:11:05 rpmi: python3-3.8.2-alt1 sisyphus+244999.100.3.1 1585218480 installed <13>Apr 7 11:11:06 rpmi: python3-base-3.8.2-alt1 sisyphus+244999.100.3.1 1585218480 installed <13>Apr 7 11:11:06 rpmi: libpython3-3.8.2-alt1 sisyphus+244999.100.3.1 1585218480 installed <13>Apr 7 11:11:06 rpmi: tests-for-installed-python3-pkgs-0.1.13.1-alt2 1535450458 installed <13>Apr 7 11:11:06 rpmi: rpm-build-python3-0.1.13.1-alt2 1535450458 installed <13>Apr 7 11:11:09 rpmi: python-base-2.7.17-alt3 sisyphus+240580.60.5.1 1573516905 installed <13>Apr 7 11:11:09 rpmi: libopenblas-0.2.20-alt2 sisyphus+229410.100.1.1 1557920019 installed <13>Apr 7 11:11:09 rpmi: python3-module-pkg_resources-1:41.4.0-alt1 sisyphus+238787.100.2.1 1570608044 installed <13>Apr 7 11:11:09 rpmi: libquadmath0-9.2.1-alt3 sisyphus+245055.100.1.1 1580041617 installed <13>Apr 7 11:11:09 rpmi: libgfortran5-9.2.1-alt3 sisyphus+245055.100.1.1 1580041617 installed <13>Apr 7 11:11:09 rpmi: libquadmath9-devel-9.2.1-alt3 sisyphus+245055.100.1.1 1580041617 installed <13>Apr 7 11:11:09 rpmi: python3-module-nose-1:1.3.7-alt4.git20160316 sisyphus+229068.100.1.1 1557255939 installed <13>Apr 7 11:11:09 rpmi: python-module-imagesize-1.1.0-alt1 sisyphus+229015.100.2.1 1557233756 installed <13>Apr 7 11:11:09 rpmi: python3-module-six-1.13.0-alt1 sisyphus+240546.100.2.1 1573542703 installed <13>Apr 7 11:11:09 rpmi: python3-module-pyparsing-2.4.2-alt1 sisyphus+236061.100.3.1 1565853577 installed <13>Apr 7 11:11:09 rpmi: python3-module-packaging-19.0-alt2 sisyphus+235493.3500.8.1 1565461874 installed <13>Apr 7 11:11:09 rpmi: python3-module-wcwidth-0.1.7-alt2.1 sisyphus+227536.2000.1.2 1555963469 installed <13>Apr 7 11:11:09 rpmi: python3-module-more-itertools-7.0.0-alt3 sisyphus+226536.100.1.1 1554329928 installed <13>Apr 7 11:11:09 rpmi: python3-module-iniconfig-1.0.0-alt2 sisyphus+235493.2400.6.1 1565442448 installed <13>Apr 7 11:11:09 rpmi: python3-module-zipp-0.5.0-alt1 sisyphus+229321.100.1.1 1557825329 installed <13>Apr 7 11:11:09 rpmi: python3-module-importlib_metadata-1.5.0-alt1 sisyphus+246069.300.1.1 1581604535 installed <13>Apr 7 11:11:09 rpmi: python3-module-pluggy-0.13.0-alt2 sisyphus+246682.100.1.1 1582205671 installed <13>Apr 7 11:11:09 rpmi: python3-module-attrs-19.3.0-alt1 sisyphus+240796.100.1.1 1573741715 installed <13>Apr 7 11:11:09 rpmi: python3-module-apipkg-1.5-alt1 sisyphus+227465.1100.1.2 1555756555 installed <13>Apr 7 11:11:10 rpmi: python3-module-py-1.8.0-alt5 sisyphus+242058.200.5.1 1575792989 installed <13>Apr 7 11:11:10 rpmi: python3-module-pytest-5.3.2-alt2 sisyphus+248945.100.1.1 1585598915 installed <13>Apr 7 11:11:10 rpmi: libnumpy-py3-1:1.15.4-alt5 sisyphus+247694.100.3.3 1584382488 installed <13>Apr 7 11:11:10 rpmi: python-sphinx-objects.inv-1:2.3.9.20200324-alt1 sisyphus+248564.100.1.1 1585184032 installed <13>Apr 7 11:11:10 rpmi: libxapian-1.4.15-alt1 sisyphus+248304.20.4.1 1585071490 installed <13>Apr 7 11:11:10 rpmi: python-module-google-0.4.2-alt2.1 sisyphus+228356.1500.3.1 1556633057 installed <13>Apr 7 11:11:10 rpmi: libsqlite3-3.31.0-alt1 sisyphus+244880.100.1.1 1579796940 installed <13>Apr 7 11:11:10 rpmi: python-module-enum34-1.1.6-alt3 1527251693 installed <13>Apr 7 11:11:10 rpmi: python-module-markupsafe-1.1.1-alt1 sisyphus+248369.100.1.1 1585046136 installed <13>Apr 7 11:11:10 rpmi: libnumpy-1:1.15.4-alt5 sisyphus+247694.100.3.3 1584382488 installed <13>Apr 7 11:11:10 rpmi: libxblas-1.0.248-alt1.3 sisyphus+229150.100.1.1 1557388786 installed <13>Apr 7 11:11:10 rpmi: liblapack-1:3.8.0-alt3 sisyphus+221521.100.1.1 1550134903 installed <13>Apr 7 11:11:10 rpmi: python3-module-numpy-1:1.15.4-alt5 sisyphus+247694.100.3.3 1584382488 installed <13>Apr 7 11:11:10 rpmi: libgpg-error-1.36-alt1 sisyphus+225621.300.1.1 1553521082 installed <13>Apr 7 11:11:10 rpmi: libgcrypt20-1.8.5-alt3 sisyphus+239622.100.1.1 1571746654 installed <13>Apr 7 11:11:10 rpmi: libxslt-1.1.34-alt2 sisyphus+248264.100.1.1 1584829770 installed <13>Apr 7 11:11:10 rpmi: gcc-fortran-common-1.4.24-alt3 sisyphus+243033.100.1.1 1576462403 installed <13>Apr 7 11:11:10 rpmi: libgfortran9-devel-9.2.1-alt3 sisyphus+245055.100.1.1 1580041617 installed <13>Apr 7 11:11:11 rpmi: gcc9-fortran-9.2.1-alt3 sisyphus+245055.100.1.1 1580041617 installed <13>Apr 7 11:11:11 rpmi: python-modules-curses-2.7.17-alt4 sisyphus+244873.100.2.1 1581419544 installed <13>Apr 7 11:11:11 rpmi: libtinfo-devel-6.1.20180407-alt2 sisyphus+222164.200.1.1 1550686226 installed <13>Apr 7 11:11:11 rpmi: libncurses-devel-6.1.20180407-alt2 sisyphus+222164.200.1.1 1550686226 installed <13>Apr 7 11:11:11 rpmi: python3-dev-3.8.2-alt1 sisyphus+244999.100.3.1 1585218480 installed <13>Apr 7 11:11:11 rpmi: libverto-0.3.0-alt1_7 sisyphus+225932.100.1.1 1553994919 installed <13>Apr 7 11:11:11 rpmi: libkeyutils-1.6-alt2 sisyphus+226520.100.2.1 1554512089 installed <13>Apr 7 11:11:11 rpmi: libcom_err-1.44.6-alt1 sisyphus+224154.100.1.1 1552091678 installed <86>Apr 7 11:11:11 groupadd[2806791]: group added to /etc/group: name=_keytab, GID=499 <86>Apr 7 11:11:11 groupadd[2806791]: group added to /etc/gshadow: name=_keytab <86>Apr 7 11:11:11 groupadd[2806791]: new group: name=_keytab, GID=499 <13>Apr 7 11:11:12 rpmi: libkrb5-1.17.1-alt1 sisyphus+242784.100.1.1 1576137330 installed <13>Apr 7 11:11:12 rpmi: libtirpc-1.0.3-alt1 1532008017 installed <13>Apr 7 11:11:12 rpmi: libnsl2-1.1.0-alt1_1 1511548749 installed <13>Apr 7 11:11:12 rpmi: python-modules-compiler-2.7.17-alt4 sisyphus+244873.100.2.1 1581419544 installed <13>Apr 7 11:11:12 rpmi: python-modules-email-2.7.17-alt4 sisyphus+244873.100.2.1 1581419544 installed <13>Apr 7 11:11:12 rpmi: python-modules-unittest-2.7.17-alt4 sisyphus+244873.100.2.1 1581419544 installed <13>Apr 7 11:11:12 rpmi: python-modules-encodings-2.7.17-alt4 sisyphus+244873.100.2.1 1581419544 installed <13>Apr 7 11:11:12 rpmi: python-modules-2.7.17-alt4 sisyphus+244873.100.2.1 1581419544 installed <13>Apr 7 11:11:12 rpmi: python-modules-nis-2.7.17-alt4 sisyphus+244873.100.2.1 1581419544 installed <13>Apr 7 11:11:12 rpmi: python-module-six-1.13.0-alt1 sisyphus+240546.100.2.1 1573542703 installed <13>Apr 7 11:11:12 rpmi: python-module-pkg_resources-1:41.4.0-alt1 sisyphus+238787.100.2.1 1570608044 installed <13>Apr 7 11:11:12 rpmi: python-modules-xml-2.7.17-alt4 sisyphus+244873.100.2.1 1581419544 installed <13>Apr 7 11:11:12 rpmi: python-modules-json-2.7.17-alt4 sisyphus+244873.100.2.1 1581419544 installed <13>Apr 7 11:11:12 rpmi: python-module-jinja2-2.10.3-alt1 sisyphus+241982.100.1.1 1575023523 installed <13>Apr 7 11:11:12 rpmi: python-modules-ctypes-2.7.17-alt4 sisyphus+244873.100.2.1 1581419544 installed <13>Apr 7 11:11:12 rpmi: python-modules-multiprocessing-2.7.17-alt4 sisyphus+244873.100.2.1 1581419544 installed <13>Apr 7 11:11:12 rpmi: python-modules-logging-2.7.17-alt4 sisyphus+244873.100.2.1 1581419544 installed <13>Apr 7 11:11:12 rpmi: python-modules-hotshot-2.7.17-alt4 sisyphus+244873.100.2.1 1581419544 installed <13>Apr 7 11:11:12 rpmi: python-module-chardet-3.0.4-alt1 sisyphus+227476.1700.1.2 1555756717 installed <13>Apr 7 11:11:12 rpmi: python-module-whoosh-2.7.4-alt1 1527697941 installed <13>Apr 7 11:11:12 rpmi: python-module-webencodings-0.5.1-alt2 sisyphus+245915.100.1.1 1581496070 installed <13>Apr 7 11:11:12 rpmi: python-modules-bsddb-2.7.17-alt4 sisyphus+244873.100.2.1 1581419544 installed <13>Apr 7 11:11:12 rpmi: python-2.7.17-alt4 sisyphus+244873.100.2.1 1581419544 installed <13>Apr 7 11:11:12 rpmi: python-strict-2.7.17-alt4 sisyphus+244873.100.2.1 1581419620 installed <13>Apr 7 11:11:12 rpmi: python-modules-distutils-2.7.17-alt4 sisyphus+244873.100.2.1 1581419544 installed <13>Apr 7 11:11:12 rpmi: python-module-cssselect-0.9.1-alt1.2 sisyphus+227479.1100.1.2 1555757152 installed <13>Apr 7 11:11:12 rpmi: python-module-html5lib-1:1.0.1-alt1 sisyphus+238807.100.2.1 1570465973 installed <13>Apr 7 11:11:13 rpmi: python-module-lxml-4.5.0-alt1 sisyphus+244999.400.3.1 1585220375 installed <13>Apr 7 11:11:13 rpmi: python-module-docutils-0.14-alt3 sisyphus+239215.40.2.1 1576588058 installed <13>Apr 7 11:11:13 rpmi: python-module-idna-2.9-alt1 sisyphus+248055.100.1.1 1584555852 installed <13>Apr 7 11:11:13 rpmi: python-module-pycparser-2.19-alt2 sisyphus+245734.100.1.1 1581192421 installed <13>Apr 7 11:11:13 rpmi: python-module-cffi-1.14.0-alt1 sisyphus+244999.200.3.1 1585219427 installed <13>Apr 7 11:11:13 rpmi: python-module-ntlm-1.1.0-alt1.2 sisyphus+228512.100.1.1 1556654575 installed <13>Apr 7 11:11:13 rpmi: python-module-pytz-1:2019.3-alt1 sisyphus+242012.100.2.1 1575623104 installed <13>Apr 7 11:11:14 rpmi: python-module-babel-1:2.6.0-alt1 sisyphus+228351.2400.6.2 1556652168 installed <13>Apr 7 11:11:14 rpmi: python-module-PyStemmer-1.0.1-alt1.2.1 1321388303 installed <13>Apr 7 11:11:14 rpmi: python-module-snowballstemmer-1.2.0-alt2.1 1457859319 installed <13>Apr 7 11:11:14 rpmi: python-module-numpy-1:1.15.4-alt5 sisyphus+247694.100.3.3 1584382488 installed <13>Apr 7 11:11:14 rpmi: python-module-simplejson-3.15.0-alt3.qa1 sisyphus+245000.7400.78.1 1583199104 installed <13>Apr 7 11:11:14 rpmi: python-module-ipaddress-1.0.18-alt2 sisyphus+245673.200.1.1 1581087895 installed <13>Apr 7 11:11:14 rpmi: python-module-cryptography-2.9-alt1 sisyphus+249274.100.1.1 1585916902 installed <13>Apr 7 11:11:14 rpmi: python-module-OpenSSL-19.0.0-alt1 sisyphus+238757.100.1.1 1570339901 installed <13>Apr 7 11:11:14 rpmi: python-module-ndg-0.4.2-alt1.qa1 sisyphus+227504.1300.1.2 1555853234 installed <13>Apr 7 11:11:14 rpmi: python-module-ndg-httpsclient-0.4.2-alt1.qa1 sisyphus+227504.1300.1.2 1555853234 installed <13>Apr 7 11:11:14 rpmi: python-module-backports-3.5.0.1-alt1.1.1 1517645428 installed <13>Apr 7 11:11:14 rpmi: python-module-backports.ssl_match_hostname-3.5.0.1-alt1.1.1 1517645428 installed <13>Apr 7 11:11:14 rpmi: python-module-urllib3-2:1.25.6-alt1 sisyphus+238720.100.2.1 1570349439 installed <13>Apr 7 11:11:14 rpmi: python-module-requests-2.23.0-alt1 sisyphus+248062.400.2.1 1584568195 installed <13>Apr 7 11:11:14 rpmi: python-module-typing-3.6.6-alt2 sisyphus+220108.100.1.1 1548749697 installed <13>Apr 7 11:11:14 rpmi: python-modules-sqlite3-2.7.17-alt4 sisyphus+244873.100.2.1 1581419544 installed <13>Apr 7 11:11:14 rpmi: python-module-SQLAlchemy-1.3.8-alt1 sisyphus+245000.2200.78.1 1583194741 installed <13>Apr 7 11:11:14 rpmi: python-module-xapian-1.4.15-alt1 sisyphus+248304.200.4.1 1585071699 installed <13>Apr 7 11:11:14 rpmi: python-module-alabaster-0.7.6-alt3 sisyphus+228351.700.4.1 1556637370 installed <13>Apr 7 11:11:14 rpmi: python-module-Pygments-2.4.2-alt2 sisyphus+245852.1100.2.1 1581424681 installed <13>Apr 7 11:11:14 rpmi: python-module-sphinxcontrib-websupport-1.0.1-alt5 sisyphus+238085.40.2.1 1569316750 installed <13>Apr 7 11:11:15 rpmi: python-module-sphinx-1:1.6.5-alt7 sisyphus+238085.300.2.1 1569317039 installed <13>Apr 7 11:11:15 rpmi: python-module-numpydoc-1:0.7.0-alt1 sisyphus+227506.500.1.2 1555852058 installed <13>Apr 7 11:11:15 rpmi: libnsl2-devel-1.1.0-alt1_1 1511548749 installed <13>Apr 7 11:11:15 rpmi: python-dev-2.7.17-alt4 sisyphus+244873.100.2.1 1581419544 installed <13>Apr 7 11:11:15 rpmi: libnumpy-devel-1:1.15.4-alt5 sisyphus+247694.100.3.3 1584382488 installed <13>Apr 7 11:11:15 rpmi: python-tools-2to3-2.7.17-alt4 sisyphus+244873.100.2.1 1581419544 installed <13>Apr 7 11:11:15 rpmi: libnumpy-py3-devel-1:1.15.4-alt5 sisyphus+247694.100.3.3 1584382488 installed <13>Apr 7 11:11:15 rpmi: gcc-fortran-9-alt1 sisyphus+239632.300.3.1 1571788297 installed <13>Apr 7 11:11:15 rpmi: python3-module-numpy-testing-1:1.15.4-alt5 sisyphus+247694.100.3.3 1584382488 installed Building target platforms: i586 Building for target i586 Wrote: /usr/src/in/nosrpm/python3-module-DIRECT-1.0.1-alt3.nosrc.rpm <13>Apr 7 11:11:17 rpmi: python3-module-setuptools-1:41.4.0-alt1 sisyphus+238787.100.2.1 1570608044 installed Installing python3-module-DIRECT-1.0.1-alt3.src.rpm Building target platforms: i586 Building for target i586 Executing(%prep): /bin/sh -e /usr/src/tmp/rpm-tmp.7074 + umask 022 + /bin/mkdir -p /usr/src/RPM/BUILD + cd /usr/src/RPM/BUILD + cd /usr/src/RPM/BUILD + rm -rf python3-module-DIRECT-1.0.1 + echo 'Source #0 (python3-module-DIRECT-1.0.1.tar):' Source #0 (python3-module-DIRECT-1.0.1.tar): + /bin/tar -xf /usr/src/RPM/SOURCES/python3-module-DIRECT-1.0.1.tar + cd python3-module-DIRECT-1.0.1 + /bin/chmod -c -Rf u+rwX,go-w . + 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 + exit 0 Executing(%build): /bin/sh -e /usr/src/tmp/rpm-tmp.47046 + umask 022 + /bin/mkdir -p /usr/src/RPM/BUILD + cd /usr/src/RPM/BUILD + cd python3-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.8 creating build/src.linux-i686-3.8/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.8/src/directmodule.c" Fortran 77 wrappers are saved to "build/src.linux-i686-3.8/src/direct-f2pywrappers.f" adding 'build/src.linux-i686-3.8/build/src.linux-i686-3.8/src/fortranobject.c' to sources. adding 'build/src.linux-i686-3.8/build/src.linux-i686-3.8/src' to include_dirs. creating build/src.linux-i686-3.8/build creating build/src.linux-i686-3.8/build/src.linux-i686-3.8 creating build/src.linux-i686-3.8/build/src.linux-i686-3.8/src copying /usr/lib/python3/site-packages/numpy/f2py/src/fortranobject.c -> build/src.linux-i686-3.8/build/src.linux-i686-3.8/src copying /usr/lib/python3/site-packages/numpy/f2py/src/fortranobject.h -> build/src.linux-i686-3.8/build/src.linux-i686-3.8/src adding 'build/src.linux-i686-3.8/src/direct-f2pywrappers.f' to sources. build_src: building npy-pkg config files running build_py creating build/lib.linux-i686-3.8 creating build/lib.linux-i686-3.8/DIRECT copying DIRECT/__init__.py -> build/lib.linux-i686-3.8/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 -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -pipe -frecord-gcc-switches -Wall -g -O3 -march=i586 -mtune=generic -pipe -frecord-gcc-switches -Wall -g -O2 -march=i586 -mtune=generic -fPIC -DPIC -fPIC creating build/temp.linux-i686-3.8/build creating build/temp.linux-i686-3.8/build/src.linux-i686-3.8 creating build/temp.linux-i686-3.8/build/src.linux-i686-3.8/src creating build/temp.linux-i686-3.8/build/src.linux-i686-3.8/build creating build/temp.linux-i686-3.8/build/src.linux-i686-3.8/build/src.linux-i686-3.8 creating build/temp.linux-i686-3.8/build/src.linux-i686-3.8/build/src.linux-i686-3.8/src compile options: '-g -Ibuild/src.linux-i686-3.8/build/src.linux-i686-3.8/src -I/usr/lib/python3/site-packages/numpy/core/include -I/usr/include/python3.8 -c' i586-alt-linux-gcc: build/src.linux-i686-3.8/src/directmodule.c i586-alt-linux-gcc: build/src.linux-i686-3.8/build/src.linux-i686-3.8/src/fortranobject.c In file included from /usr/lib/python3/site-packages/numpy/core/include/numpy/ndarraytypes.h:1821, from /usr/lib/python3/site-packages/numpy/core/include/numpy/ndarrayobject.h:18, from /usr/lib/python3/site-packages/numpy/core/include/numpy/arrayobject.h:4, from build/src.linux-i686-3.8/build/src.linux-i686-3.8/src/fortranobject.h:13, from build/src.linux-i686-3.8/src/directmodule.c:16: /usr/lib/python3/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] 15 | #warning "Using deprecated NumPy API, disable it by " \ | ^~~~~~~ build/src.linux-i686-3.8/src/directmodule.c: In function ‘cb_fcn_in_direct__user__routines’: build/src.linux-i686-3.8/src/directmodule.c:456:7: warning: unused variable ‘flag’ [-Wunused-variable] 456 | int flag=(*flag_cb_capi); | ^~~~ build/src.linux-i686-3.8/src/directmodule.c:455:10: warning: unused variable ‘f’ [-Wunused-variable] 455 | double f=(*f_cb_capi); | ^ At top level: build/src.linux-i686-3.8/src/directmodule.c:162:12: warning: ‘f2py_size’ defined but not used [-Wunused-function] 162 | static int f2py_size(PyArrayObject* var, ...) | ^~~~~~~~~ In file included from /usr/lib/python3/site-packages/numpy/core/include/numpy/ndarraytypes.h:1821, from /usr/lib/python3/site-packages/numpy/core/include/numpy/ndarrayobject.h:18, from /usr/lib/python3/site-packages/numpy/core/include/numpy/arrayobject.h:4, from build/src.linux-i686-3.8/build/src.linux-i686-3.8/src/fortranobject.h:13, from build/src.linux-i686-3.8/build/src.linux-i686-3.8/src/fortranobject.c:2: /usr/lib/python3/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] 15 | #warning "Using deprecated NumPy API, disable it by " \ | ^~~~~~~ build/src.linux-i686-3.8/build/src.linux-i686-3.8/src/fortranobject.c: In function ‘format_def’: build/src.linux-i686-3.8/build/src.linux-i686-3.8/src/fortranobject.c:138:18: warning: comparison of integer expressions of different signedness: ‘Py_ssize_t’ {aka ‘int’} and ‘unsigned int’ [-Wsign-compare] 138 | if (size < sizeof(notalloc)) { | ^ 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.8/src compile options: '-g -Ibuild/src.linux-i686-3.8/build/src.linux-i686-3.8/src -I/usr/lib/python3/site-packages/numpy/core/include -I/usr/include/python3.8 -c' gfortran:f77: src/DIRserial.f gfortran:f77: src/DIRsubrout.f gfortran:f77: build/src.linux-i686-3.8/src/direct-f2pywrappers.f gfortran:f77: src/DIRect.f src/DIRserial.f:11:36: 11 | SUBROUTINE DIRSamplef(c,ArrayI,delta,sample,new,length, | 1 Warning: Unused dummy argument ‘arrayi’ at (1) [-Wunused-dummy-argument] src/DIRserial.f:11:42: 11 | SUBROUTINE DIRSamplef(c,ArrayI,delta,sample,new,length, | 1 Warning: Unused dummy argument ‘delta’ at (1) [-Wunused-dummy-argument] src/DIRserial.f:12:22: 12 | + 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: 12 | + 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: 11 | SUBROUTINE DIRSamplef(c,ArrayI,delta,sample,new,length, | 1 Warning: Unused dummy argument ‘length’ at (1) [-Wunused-dummy-argument] src/DIRserial.f:12:30: 12 | + 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: 13 | + minpos,u,n,maxfunc,maxdeep,oops,fmax, | 1 Warning: Unused dummy argument ‘maxdeep’ at (1) [-Wunused-dummy-argument] src/DIRserial.f:13:48: 13 | + minpos,u,n,maxfunc,maxdeep,oops,fmax, | 1 Warning: Unused dummy argument ‘oops’ at (1) [-Wunused-dummy-argument] src/DIRserial.f:11:49: 11 | SUBROUTINE DIRSamplef(c,ArrayI,delta,sample,new,length, | 1 Warning: Unused dummy argument ‘sample’ at (1) [-Wunused-dummy-argument] src/DIRserial.f:128:45: 128 | + iidata, iisize, ddata, idsize, cdata, icsize) | 1 Warning: Unused dummy argument ‘cdata’ at (1) [-Wunused-dummy-argument] src/DIRserial.f:128:30: 128 | + iidata, iisize, ddata, idsize, cdata, icsize) | 1 Warning: Unused dummy argument ‘ddata’ at (1) [-Wunused-dummy-argument] src/DIRserial.f:128:15: 128 | + iidata, iisize, ddata, idsize, cdata, icsize) | 1 Warning: Unused dummy argument ‘iidata’ at (1) [-Wunused-dummy-argument] src/DIRserial.f:127:34: 127 | SUBROUTINE DIRInitSpecific(x,n, | 1 Warning: Unused dummy argument ‘x’ at (1) [-Wunused-dummy-argument] src/DIRect.f:511:26: 511 | 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: 98 | 30 CONTINUE | 1 Warning: Nonconforming tab character at (1) [-Wtabs] src/DIRsubrout.f:791:7: 791 | + ArrayI,sample,List2,w,maxI,f,maxfunc,maxdeep,n) | 1 Warning: Nonconforming tab character at (1) [-Wtabs] src/DIRsubrout.f:975:49: 975 | CALL DIRInsert(pos,pos3,point,f,maxfunc) | 1 Warning: Nonconforming tab character at (1) [-Wtabs] src/DIRsubrout.f:397:4: 397 | 1000 format(20f18.8) | 1 Warning: Label 1000 at (1) defined but not used [-Wunused-label] src/DIRsubrout.f:1385:5: 1385 | 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: 791 | + 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: 838 | + 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: 838 | + 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: 838 | + 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: 838 | + 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: 840 | + maxfunc,maxdeep,oops) | 1 Warning: Unused dummy argument ‘maxdeep’ at (1) [-Wunused-dummy-argument] src/DIRsubrout.f:838:68: 838 | + 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: 839 | + u,n, | 1 Warning: Unused dummy argument ‘u’ at (1) [-Wunused-dummy-argument] src/DIRsubrout.f:838:54: 838 | + 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: 306 | 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: 951 | 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: 1221 | 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: 1221 | 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: 1221 | 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: 1222 | + l,u,file2,maxfunc,maxdeep,n,maxor,length) | 1 Warning: Unused dummy argument ‘file2’ at (1) [-Wunused-dummy-argument] src/DIRsubrout.f:1221:38: 1221 | 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: 1256 | + iidata, iisize, ddata, idsize, cdata, icsize) | 1 Warning: Unused dummy argument ‘cdata’ at (1) [-Wunused-dummy-argument] src/DIRsubrout.f:1256:42: 1256 | + iidata, iisize, ddata, idsize, cdata, icsize) | 1 Warning: Unused dummy argument ‘ddata’ at (1) [-Wunused-dummy-argument] src/DIRsubrout.f:1256:27: 1256 | + iidata, iisize, ddata, idsize, cdata, icsize) | 1 Warning: Unused dummy argument ‘iidata’ at (1) [-Wunused-dummy-argument] src/DIRsubrout.f:1253:48: 1253 | + algmethod, maxfunc, maxdeep, | 1 Warning: Unused dummy argument ‘maxdeep’ at (1) [-Wunused-dummy-argument] src/DIRsubrout.f:1252:44: 1252 | 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: 1414 | + fglobal, numfunc, Ierror) | 1 Warning: Unused dummy argument ‘ierror’ at (1) [-Wunused-dummy-argument] src/DIRsubrout.f:155:0: 155 | 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.8/build/src.linux-i686-3.8/src/directmodule.o build/temp.linux-i686-3.8/build/src.linux-i686-3.8/build/src.linux-i686-3.8/src/fortranobject.o build/temp.linux-i686-3.8/src/DIRect.o build/temp.linux-i686-3.8/src/DIRserial.o build/temp.linux-i686-3.8/src/DIRsubrout.o build/temp.linux-i686-3.8/build/src.linux-i686-3.8/src/direct-f2pywrappers.o -L/usr/lib/gcc/i586-alt-linux/9 -L/usr/lib/gcc/i586-alt-linux/9 -L/usr/lib -lgfortran -o build/lib.linux-i686-3.8/DIRECT/direct.cpython-38.so + make -C doc pickle make: Entering directory '/usr/src/RPM/BUILD/python3-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/python3-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/python3-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/python3-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/python3-module-DIRECT-1.0.1/doc' + make -C doc html make: Entering directory '/usr/src/RPM/BUILD/python3-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/python3-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/python3-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/python3-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/python3-module-DIRECT-1.0.1/doc' + exit 0 Executing(%install): /bin/sh -e /usr/src/tmp/rpm-tmp.61212 + umask 022 + /bin/mkdir -p /usr/src/RPM/BUILD + cd /usr/src/RPM/BUILD + /bin/chmod -Rf u+rwX -- /usr/src/tmp/python3-module-DIRECT-buildroot + : + /bin/rm -rf -- /usr/src/tmp/python3-module-DIRECT-buildroot + cd python3-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/python3-module-DIRECT-buildroot --force running install running install_lib creating /usr/src/tmp/python3-module-DIRECT-buildroot creating /usr/src/tmp/python3-module-DIRECT-buildroot/usr creating /usr/src/tmp/python3-module-DIRECT-buildroot/usr/lib creating /usr/src/tmp/python3-module-DIRECT-buildroot/usr/lib/python3 creating /usr/src/tmp/python3-module-DIRECT-buildroot/usr/lib/python3/site-packages creating /usr/src/tmp/python3-module-DIRECT-buildroot/usr/lib/python3/site-packages/DIRECT copying build/lib.linux-i686-3.8/DIRECT/direct.cpython-38.so -> /usr/src/tmp/python3-module-DIRECT-buildroot/usr/lib/python3/site-packages/DIRECT copying build/lib.linux-i686-3.8/DIRECT/__init__.py -> /usr/src/tmp/python3-module-DIRECT-buildroot/usr/lib/python3/site-packages/DIRECT byte-compiling /usr/src/tmp/python3-module-DIRECT-buildroot/usr/lib/python3/site-packages/DIRECT/__init__.py to __init__.cpython-38.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.8/build/src.linux-i686-3.8/src/fortranobject.c' to sources. adding 'build/src.linux-i686-3.8/build/src.linux-i686-3.8/src' to include_dirs. adding 'build/src.linux-i686-3.8/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/python3-module-DIRECT-buildroot/usr/lib/python3/site-packages/DIRECT-1.0.1-py3.8.egg-info running install_scripts running install_clib customize UnixCCompiler + cp -fR doc/build/pickle /usr/src/tmp/python3-module-DIRECT-buildroot/usr/lib/python3/site-packages/DIRECT/ + /usr/lib/rpm/brp-alt Cleaning files in /usr/src/tmp/python3-module-DIRECT-buildroot (auto) mode of './usr/lib/python3/site-packages/DIRECT/direct.cpython-38.so' changed from 0755 (rwxr-xr-x) to 0644 (rw-r--r--) Verifying and fixing files in /usr/src/tmp/python3-module-DIRECT-buildroot (binconfig,pkgconfig,libtool,desktop) Checking contents of files in /usr/src/tmp/python3-module-DIRECT-buildroot/ (default) Compressing files in /usr/src/tmp/python3-module-DIRECT-buildroot (auto) Adjusting library links in /usr/src/tmp/python3-module-DIRECT-buildroot ./usr/lib: Verifying ELF objects in /usr/src/tmp/python3-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/python3-module-DIRECT-buildroot using /usr/bin/python2.7 Bytecompiling python modules with optimization in /usr/src/tmp/python3-module-DIRECT-buildroot using /usr/bin/python2.7 -O Bytecompiling python3 modules in /usr/src/tmp/python3-module-DIRECT-buildroot using /usr/bin/python3 unlink /usr/src/tmp/python3-module-DIRECT-buildroot/usr/lib/python3/site-packages/DIRECT/__pycache__/__init__.cpython-38.pyc compile /usr/src/tmp/python3-module-DIRECT-buildroot/usr/lib/python3/site-packages/DIRECT/__init__.py Bytecompiling python3 modules with optimization in /usr/src/tmp/python3-module-DIRECT-buildroot using /usr/bin/python3 -O compile /usr/src/tmp/python3-module-DIRECT-buildroot/usr/lib/python3/site-packages/DIRECT/__init__.py Bytecompiling python3 modules with optimization-2 in /usr/src/tmp/python3-module-DIRECT-buildroot using /usr/bin/python3 -OO compile /usr/src/tmp/python3-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-38.opt-1.pyc' => './usr/lib/python3/site-packages/DIRECT/__pycache__/__init__.cpython-38.pyc' Hardlinking identical .pyc and .pyo files Processing files: python3-module-DIRECT-1.0.1-alt3 Executing(%doc): /bin/sh -e /usr/src/tmp/rpm-tmp.43755 + umask 022 + /bin/mkdir -p /usr/src/RPM/BUILD + cd /usr/src/RPM/BUILD + cd python3-module-DIRECT-1.0.1 + DOCDIR=/usr/src/tmp/python3-module-DIRECT-buildroot/usr/share/doc/python3-module-DIRECT-1.0.1 + export DOCDIR + rm -rf /usr/src/tmp/python3-module-DIRECT-buildroot/usr/share/doc/python3-module-DIRECT-1.0.1 + /bin/mkdir -p /usr/src/tmp/python3-module-DIRECT-buildroot/usr/share/doc/python3-module-DIRECT-1.0.1 + cp -prL AUTHORS /usr/src/tmp/python3-module-DIRECT-buildroot/usr/share/doc/python3-module-DIRECT-1.0.1 + chmod -R go-w /usr/src/tmp/python3-module-DIRECT-buildroot/usr/share/doc/python3-module-DIRECT-1.0.1 + chmod -R a+rX /usr/src/tmp/python3-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.Dvp1pb 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.S6l4Va find-requires: running scripts (cpp,debuginfo,files,lib,pam,perl,pkgconfig,pkgconfiglib,python,python3,rpmlib,shebang,shell,static,symlinks,systemd-services) /usr/lib/rpm/python3.req.py: /usr/src/tmp/python3-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), python3(numpy) < 0, python3.8-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.cKaCYa Creating python3-module-DIRECT-debuginfo package Processing files: python3-module-DIRECT-pickles-1.0.1-alt3 Finding Provides (using /usr/lib/rpm/find-provides) Executing: /bin/sh -e /usr/src/tmp/rpm-tmp.RV0CMd 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.wxdqTa find-requires: running scripts (cpp,debuginfo,files,lib,pam,perl,pkgconfig,pkgconfiglib,python,python3,rpmlib,shebang,shell,static,symlinks,systemd-services) Requires: /usr/lib/python3/site-packages Finding debuginfo files (using /usr/lib/rpm/find-debuginfo-files) Executing: /bin/sh -e /usr/src/tmp/rpm-tmp.QtrXKb Processing files: python3-module-DIRECT-docs-1.0.1-alt3 Executing(%doc): /bin/sh -e /usr/src/tmp/rpm-tmp.88433 + umask 022 + /bin/mkdir -p /usr/src/RPM/BUILD + cd /usr/src/RPM/BUILD + cd python3-module-DIRECT-1.0.1 + DOCDIR=/usr/src/tmp/python3-module-DIRECT-buildroot/usr/share/doc/python3-module-DIRECT-docs-1.0.1 + export DOCDIR + rm -rf /usr/src/tmp/python3-module-DIRECT-buildroot/usr/share/doc/python3-module-DIRECT-docs-1.0.1 + /bin/mkdir -p /usr/src/tmp/python3-module-DIRECT-buildroot/usr/share/doc/python3-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/python3-module-DIRECT-buildroot/usr/share/doc/python3-module-DIRECT-docs-1.0.1 + chmod -R go-w /usr/src/tmp/python3-module-DIRECT-buildroot/usr/share/doc/python3-module-DIRECT-docs-1.0.1 + chmod -R a+rX /usr/src/tmp/python3-module-DIRECT-buildroot/usr/share/doc/python3-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.Lnx4lc 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.SytQpe find-requires: running scripts (cpp,debuginfo,files,lib,pam,perl,pkgconfig,pkgconfiglib,python,python3,rpmlib,shebang,shell,static,symlinks,systemd-services) Processing files: python3-module-DIRECT-debuginfo-1.0.1-alt3 Finding Provides (using /usr/lib/rpm/find-provides) Executing: /bin/sh -e /usr/src/tmp/rpm-tmp.zjVMAd find-provides: running scripts (debuginfo) Finding Requires (using /usr/lib/rpm/find-requires) Executing: /bin/sh -e /usr/src/tmp/rpm-tmp.zgRLpd find-requires: running scripts (debuginfo) Requires: python3-module-DIRECT = 1.0.1-alt3, debug(libc.so.6), debug(libgfortran.so.5) Adding to python3-module-DIRECT-debuginfo a strict dependency on python3-module-DIRECT Wrote: /usr/src/RPM/RPMS/i586/python3-module-DIRECT-1.0.1-alt3.i586.rpm Wrote: /usr/src/RPM/RPMS/i586/python3-module-DIRECT-pickles-1.0.1-alt3.i586.rpm Wrote: /usr/src/RPM/RPMS/noarch/python3-module-DIRECT-docs-1.0.1-alt3.noarch.rpm Wrote: /usr/src/RPM/RPMS/i586/python3-module-DIRECT-debuginfo-1.0.1-alt3.i586.rpm 22.62user 2.39system 0:32.86elapsed 76%CPU (0avgtext+0avgdata 39752maxresident)k 0inputs+0outputs (0major+439318minor)pagefaults 0swaps 34.46user 8.24system 0:52.07elapsed 82%CPU (0avgtext+0avgdata 108740maxresident)k 83000inputs+0outputs (0major+1036513minor)pagefaults 0swaps