<86>Apr 14 00:48:21 userdel[126538]: delete user 'rooter' <86>Apr 14 00:48:21 userdel[126538]: removed group 'rooter' owned by 'rooter' <86>Apr 14 00:48:21 groupadd[126553]: group added to /etc/group: name=rooter, GID=615 <86>Apr 14 00:48:21 groupadd[126553]: group added to /etc/gshadow: name=rooter <86>Apr 14 00:48:21 groupadd[126553]: new group: name=rooter, GID=615 <86>Apr 14 00:48:21 useradd[126563]: new user: name=rooter, UID=615, GID=615, home=/root, shell=/bin/bash <86>Apr 14 00:48:21 userdel[126584]: delete user 'builder' <86>Apr 14 00:48:21 userdel[126584]: removed group 'builder' owned by 'builder' <86>Apr 14 00:48:21 groupadd[126854]: group added to /etc/group: name=builder, GID=616 <86>Apr 14 00:48:21 groupadd[126854]: group added to /etc/gshadow: name=builder <86>Apr 14 00:48:21 groupadd[126854]: new group: name=builder, GID=616 <86>Apr 14 00:48:21 useradd[126977]: new user: name=builder, UID=616, GID=616, home=/usr/src, shell=/bin/bash <13>Apr 14 00:48:24 rpmi: libopenblas-0.2.14-alt1.git20150324 1433158855 installed <13>Apr 14 00:48:24 rpmi: libnumpy-py3-1:1.12.1-alt0.M80P.1 1496160663 installed <13>Apr 14 00:48:24 rpmi: libquadmath0-5.3.1-alt3.M80P.1 p8+225520.100.3.1 1553688800 installed <13>Apr 14 00:48:24 rpmi: libgfortran3-5.3.1-alt3.M80P.1 p8+225520.100.3.1 1553688800 installed <13>Apr 14 00:48:24 rpmi: libexpat-2.2.4-alt0.M80P.1 1503871120 installed <13>Apr 14 00:48:24 rpmi: libgdbm-1.8.3-alt10 1454943313 installed <13>Apr 14 00:48:24 rpmi: libquadmath5-devel-5.3.1-alt3.M80P.1 p8+225520.100.3.1 1553688800 installed <13>Apr 14 00:48:24 rpmi: python-module-google-0.4.0-alt2.1 1457968526 installed <13>Apr 14 00:48:24 rpmi: python-module-sphinx_rtd_theme-0.1.8-alt1.git20150730.1 1457859644 installed <13>Apr 14 00:48:24 rpmi: python-sphinx-objects.inv-2.3.6.20160413-alt1 1460595508 installed <13>Apr 14 00:48:24 rpmi: libxapian-1.2.23-alt1 1459318465 installed <13>Apr 14 00:48:24 rpmi: python-module-xapian-1.2.23-alt1.M80P.1 1503464748 installed <13>Apr 14 00:48:24 rpmi: libsqlite3-3.15.2-alt1 1480432212 installed <13>Apr 14 00:48:24 rpmi: libnumpy-1:1.12.1-alt0.M80P.1 1496160663 installed <13>Apr 14 00:48:24 rpmi: libxblas-1.0.248-alt1 1322010716 installed <13>Apr 14 00:48:24 rpmi: liblapack-1:3.5.0-alt1 1401382194 installed <13>Apr 14 00:48:24 rpmi: libgpg-error-1.31-alt1.M80P.1 1529024730 installed <13>Apr 14 00:48:25 rpmi: libgcrypt20-1.8.3-alt4 p8+219793.200.6.1 1551112986 installed <13>Apr 14 00:48:25 rpmi: libxslt-1.1.28-alt4 1448210404 installed <13>Apr 14 00:48:25 rpmi: gcc-fortran-common-1.4.20-alt1 1432315196 installed <13>Apr 14 00:48:25 rpmi: libgfortran5-devel-5.3.1-alt3.M80P.1 p8+225520.100.3.1 1553688800 installed <13>Apr 14 00:48:25 rpmi: libtinfo-devel-5.9-alt8 1456756459 installed <13>Apr 14 00:48:25 rpmi: libncurses-devel-5.9-alt8 1456756459 installed <13>Apr 14 00:48:25 rpmi: python-modules-curses-2.7.11-alt6.M80P.1 1527682470 installed <13>Apr 14 00:48:25 rpmi: libverto-0.2.6-alt1_6 1455633234 installed <13>Apr 14 00:48:25 rpmi: libkeyutils-1.5.10-alt0.M80P.2 p8+216694.100.6.1 1547827915 installed <13>Apr 14 00:48:25 rpmi: libcom_err-1.42.13-alt2 1449075846 installed <13>Apr 14 00:48:25 rpmi: ca-certificates-2016.02.25-alt1 1462368370 installed <13>Apr 14 00:48:25 rpmi: libcrypto10-1.0.2n-alt0.M80P.1 1512766129 installed <13>Apr 14 00:48:25 rpmi: gcc5-fortran-5.3.1-alt3.M80P.1 p8+225520.100.3.1 1553688800 installed <13>Apr 14 00:48:25 rpmi: rpm-macros-sphinx-1:1.4-alt8.a0.git20150813 1460726255 installed <13>Apr 14 00:48:25 rpmi: libssl10-1.0.2n-alt0.M80P.1 1512766129 installed <86>Apr 14 00:48:25 groupadd[7244]: group added to /etc/group: name=_keytab, GID=499 <86>Apr 14 00:48:25 groupadd[7244]: group added to /etc/gshadow: name=_keytab <86>Apr 14 00:48:25 groupadd[7244]: new group: name=_keytab, GID=499 <13>Apr 14 00:48:25 rpmi: libkrb5-1.14.6-alt1.M80P.1 1525355673 installed <13>Apr 14 00:48:25 rpmi: python-modules-compiler-2.7.11-alt6.M80P.1 1527682470 installed <13>Apr 14 00:48:26 rpmi: python3-base-3.5.4-alt2.M80P.1 1527753911 installed <13>Apr 14 00:48:26 rpmi: libpython3-3.5.4-alt2.M80P.1 1527753911 installed <13>Apr 14 00:48:26 rpmi: python3-module-py-1.4.34-alt0.M80P.1 1503506764 installed <13>Apr 14 00:48:26 rpmi: python-modules-email-2.7.11-alt6.M80P.1 1527682470 installed <13>Apr 14 00:48:26 rpmi: python3-3.5.4-alt2.M80P.1 1527753911 installed <13>Apr 14 00:48:26 rpmi: python3-dev-3.5.4-alt2.M80P.1 1527753911 installed <13>Apr 14 00:48:26 rpmi: rpm-build-python3-0.1.10.10-alt1.M80P.1 1530521451 installed <13>Apr 14 00:48:26 rpmi: python-modules-unittest-2.7.11-alt6.M80P.1 1527682470 installed <13>Apr 14 00:48:27 rpmi: python3-module-numpy-1:1.12.1-alt0.M80P.1 1496160663 installed <13>Apr 14 00:48:27 rpmi: python3-module-pytest-3.2.1-alt0.M80P.1 1503499784 installed <13>Apr 14 00:48:27 rpmi: python3-module-setuptools-1:18.5-alt0.M80P.1 1497527461 installed <13>Apr 14 00:48:27 rpmi: python3-module-numpy-testing-1:1.12.1-alt0.M80P.1 1496160663 installed <13>Apr 14 00:48:27 rpmi: libnumpy-py3-devel-1:1.12.1-alt0.M80P.1 1496160663 installed <13>Apr 14 00:48:27 rpmi: python-modules-2.7.11-alt6.M80P.1 1527682470 installed <13>Apr 14 00:48:27 rpmi: python-modules-xml-2.7.11-alt6.M80P.1 1527682470 installed <13>Apr 14 00:48:27 rpmi: python-modules-encodings-2.7.11-alt6.M80P.1 1527682470 installed <13>Apr 14 00:48:27 rpmi: python-modules-ctypes-2.7.11-alt6.M80P.1 1527682470 installed <13>Apr 14 00:48:27 rpmi: python-modules-json-2.7.11-alt6.M80P.1 1527682470 installed <13>Apr 14 00:48:27 rpmi: python-modules-multiprocessing-2.7.11-alt6.M80P.1 1527682470 installed <13>Apr 14 00:48:27 rpmi: python-modules-logging-2.7.11-alt6.M80P.1 1527682470 installed <13>Apr 14 00:48:27 rpmi: python-module-six-1.10.0-alt7 1496087616 installed <13>Apr 14 00:48:27 rpmi: python-tools-2to3-2.7.11-alt6.M80P.1 1527682470 installed <13>Apr 14 00:48:27 rpmi: python-module-whoosh-2.7.0-alt1.hg20150805.1.1 1457859779 installed <13>Apr 14 00:48:27 rpmi: python-module-webencodings-0.5.1-alt0.M80P.1 1507185481 installed <13>Apr 14 00:48:27 rpmi: python-modules-hotshot-2.7.11-alt6.M80P.1 1527682470 installed <13>Apr 14 00:48:27 rpmi: python-modules-bsddb-2.7.11-alt6.M80P.1 1527682470 installed <13>Apr 14 00:48:27 rpmi: python-2.7.11-alt6.M80P.1 1527682470 installed <13>Apr 14 00:48:27 rpmi: python-strict-2.7.11-alt6.M80P.1 1527682534 installed <13>Apr 14 00:48:27 rpmi: python-dev-2.7.11-alt6.M80P.1 1527682470 installed <13>Apr 14 00:48:27 rpmi: python-module-PyStemmer-1.0.1-alt1.2.1 1321387369 installed <13>Apr 14 00:48:27 rpmi: python-module-snowballstemmer-1.2.0-alt2.1 1457859319 installed <13>Apr 14 00:48:27 rpmi: python-module-pytz-1:2015.4-alt1.1.1 1460413776 installed <13>Apr 14 00:48:27 rpmi: python-module-py-1.4.34-alt0.M80P.1 1503506764 installed <13>Apr 14 00:48:27 rpmi: python-module-simplejson-3.15.0-alt1.M80P.1 1528995430 installed <13>Apr 14 00:48:27 rpmi: python-module-markupsafe-0.23-alt1.2.1 1459593526 installed <13>Apr 14 00:48:27 rpmi: python-modules-sqlite3-2.7.11-alt6.M80P.1 1527682470 installed <13>Apr 14 00:48:27 rpmi: python-module-SQLAlchemy-1.2.15-alt1 p8+223214.600.2.1 1551354313 installed <13>Apr 14 00:48:27 rpmi: python-module-setuptools-1:18.5-alt0.M80P.1 1497527461 installed <13>Apr 14 00:48:27 rpmi: python-module-jinja2-2.9-alt1.dev.git20150726.1.1.1 1460400640 installed <13>Apr 14 00:48:28 rpmi: python-module-babel-1:2.3.4-alt0.M80P.1 1480881327 installed <13>Apr 14 00:48:28 rpmi: python-module-numpy-testing-1:1.12.1-alt0.M80P.1 1496160663 installed <13>Apr 14 00:48:28 rpmi: python-module-numpy-1:1.12.1-alt0.M80P.1 1496160663 installed <13>Apr 14 00:48:28 rpmi: python-module-jinja2-tests-2.9-alt1.dev.git20150726.1.1.1 1460400640 installed <13>Apr 14 00:48:28 rpmi: python-module-pytest-3.2.1-alt0.M80P.1 1503499784 installed <13>Apr 14 00:48:28 rpmi: python-module-cssselect-0.9.1-alt1.1 1457858257 installed <13>Apr 14 00:48:28 rpmi: python-module-lxml-4.0.0-alt0.M80P.1 1507163741 installed <13>Apr 14 00:48:28 rpmi: python-module-docutils-0.13-alt4.git20150716.1.1 1460400317 installed <13>Apr 14 00:48:28 rpmi: python-module-html5lib-1:0.999999999-alt1.M80P.2 1507185603 installed <13>Apr 14 00:48:28 rpmi: python-module-Pygments-2.2.0-alt1.M80P.2 p8.214223.100 1538848792 installed <13>Apr 14 00:48:28 rpmi: python-module-alabaster-0.7.6-alt1.git20150703.1 1457857919 installed <13>Apr 14 00:48:29 rpmi: python-module-sphinx-1:1.4-alt8.a0.git20150813 1460726255 installed Installing python-module-DIRECT-1.0.1-alt2.1.1.src.rpm Building target platforms: x86_64 Building for target x86_64 Executing(%prep): /bin/sh -e /usr/src/tmp/rpm-tmp.87676 + 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) @@ -19,6 +19,7 @@ import os, re, pydoc from docscrape_sphinx import get_doc_object, SphinxDocString import inspect +import collections def mangle_docstrings(app, what, name, obj, options, lines, reference_offset=[0]): @@ -49,7 +50,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. @@ -71,7 +72,7 @@ 'initializes x; see ' in pydoc.getdoc(obj.__init__)): return '', '' - if not (callable(obj) or hasattr(obj, '__argspec_is_invalid_')): return + if not (isinstance(obj, collections.Callable) or hasattr(obj, '__argspec_is_invalid_')): return if not hasattr(obj, '__doc__'): return doc = SphinxDocString(pydoc.getdoc(obj)) @@ -104,7 +105,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, urlsRefactoringTool: Refactored ./doc/source/sphinxext/docscrape_sphinx.py RefactoringTool: Refactored ./doc/source/sphinxext/docscrape.py ={}, 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 and 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) @@ -1,5 +1,6 @@ import re, inspect, textwrap, pydoc from docscrape import NumpyDocString, FunctionDoc, ClassDoc +import collections class SphinxDocString(NumpyDocString): # string conversion routines @@ -73,7 +74,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': @@ -121,7 +122,7 @@ what = 'class' elif inspect.ismodule(obj): what = 'module' - elif callable(obj): + elif isinstance(obj, collections.Callable): what = 'function' else: what = 'object' --- ./doc/source/sphinxext/docscrape.py (original) +++ ./doc/source/sphinxext/docscrape.py (refactored) @@ -6,8 +6,9 @@ import textwrap import re import pydoc -from StringIO import StringIO +from io import StringIO from warnings import warn +import collections 4 class Reader(object): """A line-based string reader. @@ -113,7 +114,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 +370,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 +414,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 +430,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 +452,8 @@ 'meth': 'method'} if self._role: - if not roles.has_key(self._role): - print "Warning: invalid role %s" % self._role + if self._roRefactoringTool: Refactored ./doc/source/sphinxext/apigen.py RefactoringTool: Refactored ./doc/source/conf.py RefactoringTool: 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 le not in roles: + print("Warning: invalid role %s" % self._role) out += '.. %s:: %s\n \n\n' % (roles.get(self._role,''), func_name) @@ -480,7 +481,7 @@ @property def methods(self): return [name for name,func in inspect.getmembers(self._cls) - if not name.startswith('_') and callable(func)] + if not name.startswith('_') and isinstance(func, collections.Callable)] def __str__(self): out = '' --- ./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 document 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.76173 + umask 022 + /bin/mkdir -p /usr/src/RPM/BUILD + cd /usr/src/RPM/BUILD + cd python-module-DIRECT-1.0.1 + CFLAGS='-pipe -Wall -g -O2 -fPIC -DPIC' + export CFLAGS + CXXFLAGS='-pipe -Wall -g -O2 -fPIC -DPIC' + export CXXFLAGS + FFLAGS='-pipe -Wall -g -O2 -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-x86_64-2.7 creating build/src.linux-x86_64-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-x86_64-2.7/src/directmodule.c" Fortran 77 wrappers are saved to "build/src.linux-x86_64-2.7/src/direct-f2pywrappers.f" adding 'build/src.linux-x86_64-2.7/fortranobject.c' to sources. adding 'build/src.linux-x86_64-2.7' to include_dirs. error: file '/usr/lib64/python2.7/site-packages/numpy/f2py/src/fortranobject.c' does not exist error: Bad exit status from /usr/src/tmp/rpm-tmp.76173 (%build) RPM build errors: Bad exit status from /usr/src/tmp/rpm-tmp.76173 (%build) Command exited with non-zero status 1 1.76user 0.15system 0:02.21elapsed 86%CPU (0avgtext+0avgdata 31460maxresident)k 0inputs+0outputs (0major+53358minor)pagefaults 0swaps hsh-rebuild: rebuild of `python-module-DIRECT-1.0.1-alt2.1.1.src.rpm' failed. Command exited with non-zero status 1 9.09user 2.19system 0:12.41elapsed 90%CPU (0avgtext+0avgdata 121868maxresident)k 16896inputs+0outputs (0major+326020minor)pagefaults 0swaps