Mock Version: 1.2.10 ENTER do(['bash', '--login', '-c', '/usr/bin/rpmbuild -bs --target x86_64 --nodeps /builddir/build/SPECS/python-ply.spec'], chrootPath='/var/lib/mock/epel-7-x86_64-mockbuilder-6806/root'shell=FalseprintOutput=Falseenv={'LANG': 'en_US.UTF-8', 'TERM': 'vt100', 'SHELL': '/bin/bash', 'PROMPT_COMMAND': 'printf "\x1b]0;\x07"', 'HOME': '/builddir', 'PATH': '/usr/bin:/bin:/usr/sbin:/sbin', 'HOSTNAME': 'mock'}gid=135user='mockbuild'timeout=0logger=uid=1001) Executing command: ['bash', '--login', '-c', '/usr/bin/rpmbuild -bs --target x86_64 --nodeps /builddir/build/SPECS/python-ply.spec'] with env {'LANG': 'en_US.UTF-8', 'TERM': 'vt100', 'SHELL': '/bin/bash', 'PROMPT_COMMAND': 'printf "\x1b]0;\x07"', 'HOME': '/builddir', 'PATH': '/usr/bin:/bin:/usr/sbin:/sbin', 'HOSTNAME': 'mock'} and shell False sh: /usr/bin/python: No such file or directory sh: /usr/bin/python: No such file or directory warning: Could not canonicalize hostname: copr-builder-195066295 Building target platforms: x86_64 Building for target x86_64 Wrote: /builddir/build/SRPMS/python-ply-3.4-9.el7.centos.src.rpm Child return code was: 0 LEAVE do --> ENTER do(['bash', '--login', '-c', '/usr/bin/rpmbuild -bb --target x86_64 --nodeps /builddir/build/SPECS/python-ply.spec '], chrootPath='/var/lib/mock/epel-7-x86_64-mockbuilder-6806/root'shell=FalseprintOutput=Falseenv={'LANG': 'en_US.UTF-8', 'TERM': 'vt100', 'SHELL': '/bin/bash', 'PROMPT_COMMAND': 'printf "\x1b]0;\x07"', 'HOME': '/builddir', 'PATH': '/usr/bin:/bin:/usr/sbin:/sbin', 'HOSTNAME': 'mock'}gid=135user='mockbuild'timeout=0logger=uid=1001) Executing command: ['bash', '--login', '-c', '/usr/bin/rpmbuild -bb --target x86_64 --nodeps /builddir/build/SPECS/python-ply.spec '] with env {'LANG': 'en_US.UTF-8', 'TERM': 'vt100', 'SHELL': '/bin/bash', 'PROMPT_COMMAND': 'printf "\x1b]0;\x07"', 'HOME': '/builddir', 'PATH': '/usr/bin:/bin:/usr/sbin:/sbin', 'HOSTNAME': 'mock'} and shell False Building target platforms: x86_64 Building for target x86_64 Executing(%prep): /bin/sh -e /var/tmp/rpm-tmp.Vb6OVM + umask 022 + cd /builddir/build/BUILD + cd /builddir/build/BUILD + rm -rf ply-3.4 + /usr/bin/gzip -dc /builddir/build/SOURCES/ply-3.4.tar.gz + /usr/bin/tar -xf - + STATUS=0 + '[' 0 -ne 0 ']' + cd ply-3.4 + /usr/bin/chmod -Rf a+rX,u+w,g-w,o-w . + sed -i 's|/usr/local/bin/python|/usr/bin/python|g' example/yply/yply.py + chmod -x example/yply/yply.py example/newclasscalc/calc.py example/classcalc/calc.py example/cleanup.sh + rm -rf /builddir/build/BUILD/python3-python-ply-3.4-9.el7.centos + cp -a . /builddir/build/BUILD/python3-python-ply-3.4-9.el7.centos + find /builddir/build/BUILD/python3-python-ply-3.4-9.el7.centos -name '*.py' + xargs sed -i '1s|^#!/usr/bin/python|#!/usr/bin/python3.4|' ~/build/BUILD/python3-python-ply-3.4-9.el7.centos ~/build/BUILD/ply-3.4 + pushd /builddir/build/BUILD/python3-python-ply-3.4-9.el7.centos + 2to3 --write --nobackups ply/cpp.py RefactoringTool: Skipping implicit fixer: buffer RefactoringTool: Skipping implicit fixer: idioms RefactoringTool: Skipping implicit fixer: set_literal RefactoringTool: Skipping implicit fixer: ws_comma RefactoringTool: Refactored ply/cpp.py RefactoringTool: Files that were modified: RefactoringTool: ply/cpp.py --- ply/cpp.py (original) +++ ply/cpp.py (refactored) @@ -7,7 +7,7 @@ # # This module implements an ANSI-C style lexical preprocessor for PLY. # ----------------------------------------------------------------------------- -from __future__ import generators + # ----------------------------------------------------------------------------- # Default preprocessor lexer definitions. These tokens are enough to get @@ -176,7 +176,7 @@ # ---------------------------------------------------------------------- def error(self,file,line,msg): - print("%s:%d %s" % (file,line,msg)) + print(("%s:%d %s" % (file,line,msg))) # ---------------------------------------------------------------------- # lexprobe() @@ -239,7 +239,7 @@ self.lexer.input(c) tok = self.lexer.token() if not tok or tok.value != c: - print("Unable to lex '%s' required for preprocessor" % c) + print(("Unable to lex '%s' required for preprocessor" % c)) # ---------------------------------------------------------------------- # add_path() @@ -262,7 +262,7 @@ def group_lines(self,input): lex = self.lexer.clone() lines = [x.rstrip() for x in input.splitlines()] - for i in xrange(len(lines)): + for i in range(len(lines)): j = i+1 while lines[i].endswith('\\') and (j < len(lines)): lines[i] = lines[i][:-1]+lines[j] @@ -581,7 +581,7 @@ expr = expr.replace("!"," not ") try: result = eval(expr) - except StandardError: + except Exception: self.error(self.source,tokens[0].lineno,"Couldn't evaluate expression") result = 0 return result @@ -762,7 +762,7 @@ except IOError: pass else: - print("Couldn't find '%s'" % filename) + print(("Couldn't find '%s'" % filename)) # ---------------------------------------------------------------------- # define() @@ -771,7 +771,7 @@ # ---------------------------------------------------------------------- def define(self,tokens): - if isinstance(tokens,(str,unicode)): + if isinstance(tokens,str): tokens = self.tokenize(tokens) linetok = tokens @@ -884,7 +884,7 @@ while True: tok = p.token() if not tok: break - print(p.source, tok) + print((p.source, tok)) + popd + exit 0 ~/build/BUILD/ply-3.4 Executing(%build): /bin/sh -e /var/tmp/rpm-tmp.FW15vh + umask 022 + cd /builddir/build/BUILD + cd ply-3.4 + /usr/bin/python setup.py build running build running build_py creating build creating build/lib creating build/lib/ply copying ply/yacc.py -> build/lib/ply copying ply/lex.py -> build/lib/ply copying ply/ctokens.py -> build/lib/ply copying ply/cpp.py -> build/lib/ply copying ply/__init__.py -> build/lib/ply ~/build/BUILD/python3-python-ply-3.4-9.el7.centos ~/build/BUILD/ply-3.4 + pushd /builddir/build/BUILD/python3-python-ply-3.4-9.el7.centos + /usr/bin/python3.4 setup.py build running build running build_py creating build creating build/lib creating build/lib/ply copying ply/yacc.py -> build/lib/ply copying ply/lex.py -> build/lib/ply copying ply/ctokens.py -> build/lib/ply copying ply/cpp.py -> build/lib/ply copying ply/__init__.py -> build/lib/ply + popd + exit 0 ~/build/BUILD/ply-3.4 Executing(%install): /bin/sh -e /var/tmp/rpm-tmp.YsAemM + umask 022 + cd /builddir/build/BUILD + '[' /builddir/build/BUILDROOT/python-ply-3.4-9.el7.centos.x86_64 '!=' / ']' + rm -rf /builddir/build/BUILDROOT/python-ply-3.4-9.el7.centos.x86_64 ++ dirname /builddir/build/BUILDROOT/python-ply-3.4-9.el7.centos.x86_64 + mkdir -p /builddir/build/BUILDROOT + mkdir /builddir/build/BUILDROOT/python-ply-3.4-9.el7.centos.x86_64 + cd ply-3.4 + rm -rf /builddir/build/BUILDROOT/python-ply-3.4-9.el7.centos.x86_64 + /usr/bin/python setup.py install --skip-build --root /builddir/build/BUILDROOT/python-ply-3.4-9.el7.centos.x86_64 running install running install_lib creating /builddir/build/BUILDROOT/python-ply-3.4-9.el7.centos.x86_64 creating /builddir/build/BUILDROOT/python-ply-3.4-9.el7.centos.x86_64/usr creating /builddir/build/BUILDROOT/python-ply-3.4-9.el7.centos.x86_64/usr/lib creating /builddir/build/BUILDROOT/python-ply-3.4-9.el7.centos.x86_64/usr/lib/python2.7 creating /builddir/build/BUILDROOT/python-ply-3.4-9.el7.centos.x86_64/usr/lib/python2.7/site-packages creating /builddir/build/BUILDROOT/python-ply-3.4-9.el7.centos.x86_64/usr/lib/python2.7/site-packages/ply copying build/lib/ply/__init__.py -> /builddir/build/BUILDROOT/python-ply-3.4-9.el7.centos.x86_64/usr/lib/python2.7/site-packages/ply copying build/lib/ply/cpp.py -> /builddir/build/BUILDROOT/python-ply-3.4-9.el7.centos.x86_64/usr/lib/python2.7/site-packages/ply copying build/lib/ply/ctokens.py -> /builddir/build/BUILDROOT/python-ply-3.4-9.el7.centos.x86_64/usr/lib/python2.7/site-packages/ply copying build/lib/ply/lex.py -> /builddir/build/BUILDROOT/python-ply-3.4-9.el7.centos.x86_64/usr/lib/python2.7/site-packages/ply copying build/lib/ply/yacc.py -> /builddir/build/BUILDROOT/python-ply-3.4-9.el7.centos.x86_64/usr/lib/python2.7/site-packages/ply byte-compiling /builddir/build/BUILDROOT/python-ply-3.4-9.el7.centos.x86_64/usr/lib/python2.7/site-packages/ply/__init__.py to __init__.pyc byte-compiling /builddir/build/BUILDROOT/python-ply-3.4-9.el7.centos.x86_64/usr/lib/python2.7/site-packages/ply/cpp.py to cpp.pyc byte-compiling /builddir/build/BUILDROOT/python-ply-3.4-9.el7.centos.x86_64/usr/lib/python2.7/site-packages/ply/ctokens.py to ctokens.pyc byte-compiling /builddir/build/BUILDROOT/python-ply-3.4-9.el7.centos.x86_64/usr/lib/python2.7/site-packages/ply/lex.py to lex.pyc byte-compiling /builddir/build/BUILDROOT/python-ply-3.4-9.el7.centos.x86_64/usr/lib/python2.7/site-packages/ply/yacc.py to yacc.pyc running install_egg_info Writing /builddir/build/BUILDROOT/python-ply-3.4-9.el7.centos.x86_64/usr/lib/python2.7/site-packages/ply-3.4-py2.7.egg-info ~/build/BUILD/python3-python-ply-3.4-9.el7.centos ~/build/BUILD/ply-3.4 + pushd /builddir/build/BUILD/python3-python-ply-3.4-9.el7.centos + /usr/bin/python3.4 setup.py install --skip-build --root /builddir/build/BUILDROOT/python-ply-3.4-9.el7.centos.x86_64 running install running install_lib creating /builddir/build/BUILDROOT/python-ply-3.4-9.el7.centos.x86_64/usr/lib/python3.4 creating /builddir/build/BUILDROOT/python-ply-3.4-9.el7.centos.x86_64/usr/lib/python3.4/site-packages creating /builddir/build/BUILDROOT/python-ply-3.4-9.el7.centos.x86_64/usr/lib/python3.4/site-packages/ply copying build/lib/ply/__init__.py -> /builddir/build/BUILDROOT/python-ply-3.4-9.el7.centos.x86_64/usr/lib/python3.4/site-packages/ply copying build/lib/ply/cpp.py -> /builddir/build/BUILDROOT/python-ply-3.4-9.el7.centos.x86_64/usr/lib/python3.4/site-packages/ply copying build/lib/ply/ctokens.py -> /builddir/build/BUILDROOT/python-ply-3.4-9.el7.centos.x86_64/usr/lib/python3.4/site-packages/ply copying build/lib/ply/lex.py -> /builddir/build/BUILDROOT/python-ply-3.4-9.el7.centos.x86_64/usr/lib/python3.4/site-packages/ply copying build/lib/ply/yacc.py -> /builddir/build/BUILDROOT/python-ply-3.4-9.el7.centos.x86_64/usr/lib/python3.4/site-packages/ply byte-compiling /builddir/build/BUILDROOT/python-ply-3.4-9.el7.centos.x86_64/usr/lib/python3.4/site-packages/ply/__init__.py to __init__.cpython-34.pyc byte-compiling /builddir/build/BUILDROOT/python-ply-3.4-9.el7.centos.x86_64/usr/lib/python3.4/site-packages/ply/cpp.py to cpp.cpython-34.pyc byte-compiling /builddir/build/BUILDROOT/python-ply-3.4-9.el7.centos.x86_64/usr/lib/python3.4/site-packages/ply/ctokens.py to ctokens.cpython-34.pyc byte-compiling /builddir/build/BUILDROOT/python-ply-3.4-9.el7.centos.x86_64/usr/lib/python3.4/site-packages/ply/lex.py to lex.cpython-34.pyc byte-compiling /builddir/build/BUILDROOT/python-ply-3.4-9.el7.centos.x86_64/usr/lib/python3.4/site-packages/ply/yacc.py to yacc.cpython-34.pyc running install_egg_info Writing /builddir/build/BUILDROOT/python-ply-3.4-9.el7.centos.x86_64/usr/lib/python3.4/site-packages/ply-3.4-py3.4.egg-info + popd ~/build/BUILD/ply-3.4 + /usr/lib/rpm/find-debuginfo.sh --strict-build-id -m --run-dwz --dwz-low-mem-die-limit 10000000 --dwz-max-die-limit 110000000 /builddir/build/BUILD/ply-3.4 /usr/lib/rpm/sepdebugcrcfix: Updated 0 CRC32s, 0 CRC32s did match. find: 'debug': No such file or directory + /usr/lib/rpm/check-buildroot + /usr/lib/rpm/redhat/brp-compress + /usr/lib/rpm/redhat/brp-strip-static-archive /usr/bin/strip + /usr/lib/rpm/brp-python-bytecompile /usr/bin/python 1 Bytecompiling .py files below /builddir/build/BUILDROOT/python-ply-3.4-9.el7.centos.x86_64/usr/lib/python3.4 using /usr/bin/python3.4 Bytecompiling .py files below /builddir/build/BUILDROOT/python-ply-3.4-9.el7.centos.x86_64/usr/lib/python2.7 using /usr/bin/python2.7 + /usr/lib/rpm/redhat/brp-python-hardlink + /usr/lib/rpm/redhat/brp-java-repack-jars Processing files: python-ply-3.4-9.el7.centos.noarch Executing(%doc): /bin/sh -e /var/tmp/rpm-tmp.bhWiHi + umask 022 + cd /builddir/build/BUILD + cd ply-3.4 + DOCDIR=/builddir/build/BUILDROOT/python-ply-3.4-9.el7.centos.x86_64/usr/share/doc/python-ply-3.4 + export DOCDIR + /usr/bin/mkdir -p /builddir/build/BUILDROOT/python-ply-3.4-9.el7.centos.x86_64/usr/share/doc/python-ply-3.4 + cp -pr CHANGES /builddir/build/BUILDROOT/python-ply-3.4-9.el7.centos.x86_64/usr/share/doc/python-ply-3.4 + cp -pr README /builddir/build/BUILDROOT/python-ply-3.4-9.el7.centos.x86_64/usr/share/doc/python-ply-3.4 + cp -pr example/ /builddir/build/BUILDROOT/python-ply-3.4-9.el7.centos.x86_64/usr/share/doc/python-ply-3.4 + exit 0 Provides: python-ply = 3.4-9.el7.centos Requires(rpmlib): rpmlib(CompressedFileNames) <= 3.0.4-1 rpmlib(FileDigests) <= 4.6.0-1 rpmlib(PartialHardlinkSets) <= 4.0.4-1 rpmlib(PayloadFilesHavePrefix) <= 4.0-1 Requires: python(abi) = 2.7 Processing files: python34-ply-3.4-9.el7.centos.noarch Executing(%doc): /bin/sh -e /var/tmp/rpm-tmp.QQ9NtQ + umask 022 + cd /builddir/build/BUILD + cd ply-3.4 + DOCDIR=/builddir/build/BUILDROOT/python-ply-3.4-9.el7.centos.x86_64/usr/share/doc/python34-ply-3.4 + export DOCDIR + /usr/bin/mkdir -p /builddir/build/BUILDROOT/python-ply-3.4-9.el7.centos.x86_64/usr/share/doc/python34-ply-3.4 + cp -pr CHANGES /builddir/build/BUILDROOT/python-ply-3.4-9.el7.centos.x86_64/usr/share/doc/python34-ply-3.4 + cp -pr README /builddir/build/BUILDROOT/python-ply-3.4-9.el7.centos.x86_64/usr/share/doc/python34-ply-3.4 + cp -pr example/ /builddir/build/BUILDROOT/python-ply-3.4-9.el7.centos.x86_64/usr/share/doc/python34-ply-3.4 + exit 0 Provides: python34-ply = 3.4-9.el7.centos Requires(rpmlib): rpmlib(CompressedFileNames) <= 3.0.4-1 rpmlib(FileDigests) <= 4.6.0-1 rpmlib(PartialHardlinkSets) <= 4.0.4-1 rpmlib(PayloadFilesHavePrefix) <= 4.0-1 Requires: python(abi) = 3.4 Checking for unpackaged file(s): /usr/lib/rpm/check-files /builddir/build/BUILDROOT/python-ply-3.4-9.el7.centos.x86_64 warning: Could not canonicalize hostname: copr-builder-195066295 Wrote: /builddir/build/RPMS/python-ply-3.4-9.el7.centos.noarch.rpm Wrote: /builddir/build/RPMS/python34-ply-3.4-9.el7.centos.noarch.rpm Executing(%clean): /bin/sh -e /var/tmp/rpm-tmp.iqtR9B + umask 022 + cd /builddir/build/BUILD + cd ply-3.4 + rm -rf /builddir/build/BUILDROOT/python-ply-3.4-9.el7.centos.x86_64 + exit 0 Child return code was: 0 LEAVE do -->