Mock Version: 2.1 ENTER ['do_with_status'](['bash', '--login', '-c', '/usr/bin/rpmbuild -bs --target x86_64 --nodeps /builddir/build/SPECS/python-simplegeneric.spec'], chrootPath='/var/lib/mock/1320314-epel-7-x86_64-1585164410.635439/root'env={'TERM': 'vt100', 'SHELL': '/bin/bash', 'HOME': '/builddir', 'HOSTNAME': 'mock', 'PATH': '/usr/bin:/bin:/usr/sbin:/sbin', 'PROMPT_COMMAND': 'printf "\\033]0;\\007"', 'PS1': ' \\s-\\v\\$ ', 'LANG': 'en_US.UTF-8'}shell=Falselogger=timeout=0uid=1001gid=135user='mockbuild'nspawn_args=['--capability=cap_ipc_lock', '--rlimit=RLIMIT_NOFILE=10240', '--capability=cap_ipc_lock', '--bind=/tmp/mock-resolv.b_ip6lh3:/etc/resolv.conf', '--bind=/dev/loop-control', '--bind=/dev/loop0', '--bind=/dev/loop1', '--bind=/dev/loop2', '--bind=/dev/loop3', '--bind=/dev/loop4', '--bind=/dev/loop5', '--bind=/dev/loop6', '--bind=/dev/loop7', '--bind=/dev/loop8', '--bind=/dev/loop9', '--bind=/dev/loop10', '--bind=/dev/loop11']unshare_net=FalseprintOutput=True) Using nspawn with args ['--capability=cap_ipc_lock', '--rlimit=RLIMIT_NOFILE=10240', '--capability=cap_ipc_lock', '--bind=/tmp/mock-resolv.b_ip6lh3:/etc/resolv.conf', '--bind=/dev/loop-control', '--bind=/dev/loop0', '--bind=/dev/loop1', '--bind=/dev/loop2', '--bind=/dev/loop3', '--bind=/dev/loop4', '--bind=/dev/loop5', '--bind=/dev/loop6', '--bind=/dev/loop7', '--bind=/dev/loop8', '--bind=/dev/loop9', '--bind=/dev/loop10', '--bind=/dev/loop11'] Executing command: ['/usr/bin/systemd-nspawn', '-q', '-M', '05245686e2ac458fa03c0e22f0121fed', '-D', '/var/lib/mock/1320314-epel-7-x86_64-1585164410.635439/root', '-a', '--capability=cap_ipc_lock', '--rlimit=RLIMIT_NOFILE=10240', '--capability=cap_ipc_lock', '--bind=/tmp/mock-resolv.b_ip6lh3:/etc/resolv.conf', '--bind=/dev/loop-control', '--bind=/dev/loop0', '--bind=/dev/loop1', '--bind=/dev/loop2', '--bind=/dev/loop3', '--bind=/dev/loop4', '--bind=/dev/loop5', '--bind=/dev/loop6', '--bind=/dev/loop7', '--bind=/dev/loop8', '--bind=/dev/loop9', '--bind=/dev/loop10', '--bind=/dev/loop11', '--console=pipe', '--setenv=TERM=vt100', '--setenv=SHELL=/bin/bash', '--setenv=HOME=/builddir', '--setenv=HOSTNAME=mock', '--setenv=PATH=/usr/bin:/bin:/usr/sbin:/sbin', '--setenv=PROMPT_COMMAND=printf "\\033]0;\\007"', '--setenv=PS1= \\s-\\v\\$ ', '--setenv=LANG=en_US.UTF-8', '-u', 'mockbuild', 'bash', '--login', '-c', '/usr/bin/rpmbuild -bs --target x86_64 --nodeps /builddir/build/SPECS/python-simplegeneric.spec'] with env {'TERM': 'vt100', 'SHELL': '/bin/bash', 'HOME': '/builddir', 'HOSTNAME': 'mock', 'PATH': '/usr/bin:/bin:/usr/sbin:/sbin', 'PROMPT_COMMAND': 'printf "\\033]0;\\007"', 'PS1': ' \\s-\\v\\$ ', 'LANG': 'en_US.UTF-8'} and shell False Building target platforms: x86_64 Building for target x86_64 Wrote: /builddir/build/SRPMS/python-simplegeneric-0.8-7.2.el7.src.rpm Child return code was: 0 ENTER ['do_with_status'](['bash', '--login', '-c', '/usr/bin/rpmbuild -bb --target x86_64 --nodeps /builddir/build/SPECS/python-simplegeneric.spec'], chrootPath='/var/lib/mock/1320314-epel-7-x86_64-1585164410.635439/root'env={'TERM': 'vt100', 'SHELL': '/bin/bash', 'HOME': '/builddir', 'HOSTNAME': 'mock', 'PATH': '/usr/bin:/bin:/usr/sbin:/sbin', 'PROMPT_COMMAND': 'printf "\\033]0;\\007"', 'PS1': ' \\s-\\v\\$ ', 'LANG': 'en_US.UTF-8'}shell=Falselogger=timeout=0uid=1001gid=135user='mockbuild'nspawn_args=['--capability=cap_ipc_lock', '--rlimit=RLIMIT_NOFILE=10240', '--capability=cap_ipc_lock', '--bind=/tmp/mock-resolv.b_ip6lh3:/etc/resolv.conf', '--bind=/dev/loop-control', '--bind=/dev/loop0', '--bind=/dev/loop1', '--bind=/dev/loop2', '--bind=/dev/loop3', '--bind=/dev/loop4', '--bind=/dev/loop5', '--bind=/dev/loop6', '--bind=/dev/loop7', '--bind=/dev/loop8', '--bind=/dev/loop9', '--bind=/dev/loop10', '--bind=/dev/loop11']unshare_net=FalseprintOutput=True) Using nspawn with args ['--capability=cap_ipc_lock', '--rlimit=RLIMIT_NOFILE=10240', '--capability=cap_ipc_lock', '--bind=/tmp/mock-resolv.b_ip6lh3:/etc/resolv.conf', '--bind=/dev/loop-control', '--bind=/dev/loop0', '--bind=/dev/loop1', '--bind=/dev/loop2', '--bind=/dev/loop3', '--bind=/dev/loop4', '--bind=/dev/loop5', '--bind=/dev/loop6', '--bind=/dev/loop7', '--bind=/dev/loop8', '--bind=/dev/loop9', '--bind=/dev/loop10', '--bind=/dev/loop11'] Executing command: ['/usr/bin/systemd-nspawn', '-q', '-M', 'fe07d05fc61b4517919d05644005148d', '-D', '/var/lib/mock/1320314-epel-7-x86_64-1585164410.635439/root', '-a', '--capability=cap_ipc_lock', '--rlimit=RLIMIT_NOFILE=10240', '--capability=cap_ipc_lock', '--bind=/tmp/mock-resolv.b_ip6lh3:/etc/resolv.conf', '--bind=/dev/loop-control', '--bind=/dev/loop0', '--bind=/dev/loop1', '--bind=/dev/loop2', '--bind=/dev/loop3', '--bind=/dev/loop4', '--bind=/dev/loop5', '--bind=/dev/loop6', '--bind=/dev/loop7', '--bind=/dev/loop8', '--bind=/dev/loop9', '--bind=/dev/loop10', '--bind=/dev/loop11', '--console=pipe', '--setenv=TERM=vt100', '--setenv=SHELL=/bin/bash', '--setenv=HOME=/builddir', '--setenv=HOSTNAME=mock', '--setenv=PATH=/usr/bin:/bin:/usr/sbin:/sbin', '--setenv=PROMPT_COMMAND=printf "\\033]0;\\007"', '--setenv=PS1= \\s-\\v\\$ ', '--setenv=LANG=en_US.UTF-8', '-u', 'mockbuild', 'bash', '--login', '-c', '/usr/bin/rpmbuild -bb --target x86_64 --nodeps /builddir/build/SPECS/python-simplegeneric.spec'] with env {'TERM': 'vt100', 'SHELL': '/bin/bash', 'HOME': '/builddir', 'HOSTNAME': 'mock', 'PATH': '/usr/bin:/bin:/usr/sbin:/sbin', 'PROMPT_COMMAND': 'printf "\\033]0;\\007"', 'PS1': ' \\s-\\v\\$ ', 'LANG': 'en_US.UTF-8'} and shell False Building target platforms: x86_64 Building for target x86_64 Executing(%prep): /bin/sh -e /var/tmp/rpm-tmp.O9OUcN + umask 022 + cd /builddir/build/BUILD + cd /builddir/build/BUILD + rm -rf simplegeneric-0.8 + /usr/bin/unzip -qq /builddir/build/SOURCES/simplegeneric-0.8.zip + STATUS=0 + '[' 0 -ne 0 ']' + cd simplegeneric-0.8 + /usr/bin/chmod -Rf a+rX,u+w,g-w,o-w . + 2to3 --write --nobackups . RefactoringTool: Skipping implicit fixer: buffer RefactoringTool: Skipping implicit fixer: idioms RefactoringTool: Skipping implicit fixer: set_literal RefactoringTool: Skipping implicit fixer: ws_comma RefactoringTool: No changes to ./simplegeneric.py RefactoringTool: Refactored ./ez_setup/__init__.py RefactoringTool: Files that were modified: RefactoringTool: ./simplegeneric.py RefactoringTool: ./ez_setup/__init__.py --- ./ez_setup/__init__.py (original) +++ ./ez_setup/__init__.py (refactored) @@ -66,10 +66,10 @@ if egg_name in md5_data: digest = md5(data).hexdigest() if digest != md5_data[egg_name]: - print >>sys.stderr, ( + print(( "md5 validation of %s failed! (Possible download problem?)" % egg_name - ) + ), file=sys.stderr) sys.exit(2) return data @@ -99,14 +99,14 @@ return do_download() try: pkg_resources.require("setuptools>="+version); return - except pkg_resources.VersionConflict, e: + except pkg_resources.VersionConflict as e: if was_imported: - print >>sys.stderr, ( + print(( "The required version of setuptools (>=%s) is not available, and\n" "can't be installed while this script is running. Please install\n" " a more recent version first, using 'easy_install -U setuptools'." "\n\n(Currently using %r)" - ) % (version, e.args[0]) + ) % (version, e.args[0]), file=sys.stderr) sys.exit(2) else: del pkg_resources, sys.modules['pkg_resources'] # reload ok @@ -125,7 +125,7 @@ with a '/'). `to_dir` is the directory where the egg will be downloaded. `delay` is the number of seconds to pause before an actual download attempt. """ - import urllib2, shutil + import urllib.request, urllib.error, urllib.parse, shutil egg_name = "setuptools-%s-py%s.egg" % (version,sys.version[:3]) url = download_base + egg_name saveto = os.path.join(to_dir, egg_name) @@ -151,7 +151,7 @@ version, download_base, delay, url ); from time import sleep; sleep(delay) log.warn("Downloading %s", url) - src = urllib2.urlopen(url) + src = urllib.request.urlopen(url) # Read/write all in one block, so we don't create a corrupt file # if the download is interrupted. data = _validate_md5(egg_name, src.read()) @@ -212,10 +212,10 @@ os.unlink(egg) else: if setuptools.__version__ == '0.0.1': - print >>sys.stderr, ( + print(( "You have an obsolete version of setuptools installed. Please\n" "remove it from your system entirely before rerunning this script." - ) + ), file=sys.stderr) sys.exit(2) req = "setuptools>="+version @@ -234,8 +234,8 @@ from setuptools.command.easy_install import main main(argv) else: - print "Setuptools version",version,"or greater has been installed." - print '(Run "ez_setup.py -U setuptools" to reinstall or upgrade.)' + print("Setuptools version",version,"or greater has been installed.") + print('(Run "ez_setup.py -U setuptools" to reinstall or upgrade.)') def update_md5(filenames): """Update our built-in md5 registry""" @@ -248,7 +248,7 @@ md5_data[base] = md5(f.read()).hexdigest() f.close() - data = [" %r: %r,\n" % it for it in md5_data.items()] + data = [" %r: %r,\n" % it for it in list(md5_data.items())] data.sort() repl = "".join(data) @@ -258,7 +258,7 @@ match = re.search("\nmd5_data = {\n([^}]+)}", src) if not match: - print >>sys.stderr, "Internal error!" + print("Internal error!", file=sys.stderr) sys.exit(2) src = src[:match.start(1)] + repl + src[match.end(1):] + sed -i 's/file(/open(/g' setup.py + find . -name '*.py' + xargs sed -i '1s|^#!python|#!/usr/bin/python3|' + exit 0 Executing(%build): /bin/sh -e /var/tmp/rpm-tmp.05Te7H + umask 022 + cd /builddir/build/BUILD + cd simplegeneric-0.8 + /usr/bin/python3 setup.py build running build running build_py creating build creating build/lib copying simplegeneric.py -> build/lib + exit 0 Executing(%install): /bin/sh -e /var/tmp/rpm-tmp.iASjDD + umask 022 + cd /builddir/build/BUILD + '[' /builddir/build/BUILDROOT/python-simplegeneric-0.8-7.2.el7.x86_64 '!=' / ']' + rm -rf /builddir/build/BUILDROOT/python-simplegeneric-0.8-7.2.el7.x86_64 ++ dirname /builddir/build/BUILDROOT/python-simplegeneric-0.8-7.2.el7.x86_64 + mkdir -p /builddir/build/BUILDROOT + mkdir /builddir/build/BUILDROOT/python-simplegeneric-0.8-7.2.el7.x86_64 + cd simplegeneric-0.8 + rm -rf /builddir/build/BUILDROOT/python-simplegeneric-0.8-7.2.el7.x86_64 + /usr/bin/python3 setup.py install --skip-build --root /builddir/build/BUILDROOT/python-simplegeneric-0.8-7.2.el7.x86_64 running install running install_lib creating /builddir/build/BUILDROOT/python-simplegeneric-0.8-7.2.el7.x86_64 creating /builddir/build/BUILDROOT/python-simplegeneric-0.8-7.2.el7.x86_64/usr creating /builddir/build/BUILDROOT/python-simplegeneric-0.8-7.2.el7.x86_64/usr/lib creating /builddir/build/BUILDROOT/python-simplegeneric-0.8-7.2.el7.x86_64/usr/lib/python3.6 creating /builddir/build/BUILDROOT/python-simplegeneric-0.8-7.2.el7.x86_64/usr/lib/python3.6/site-packages copying build/lib/simplegeneric.py -> /builddir/build/BUILDROOT/python-simplegeneric-0.8-7.2.el7.x86_64/usr/lib/python3.6/site-packages byte-compiling /builddir/build/BUILDROOT/python-simplegeneric-0.8-7.2.el7.x86_64/usr/lib/python3.6/site-packages/simplegeneric.py to simplegeneric.cpython-36.pyc running install_egg_info running egg_info writing simplegeneric.egg-info/PKG-INFO writing dependency_links to simplegeneric.egg-info/dependency_links.txt writing top-level names to simplegeneric.egg-info/top_level.txt reading manifest file 'simplegeneric.egg-info/SOURCES.txt' writing manifest file 'simplegeneric.egg-info/SOURCES.txt' Copying simplegeneric.egg-info to /builddir/build/BUILDROOT/python-simplegeneric-0.8-7.2.el7.x86_64/usr/lib/python3.6/site-packages/simplegeneric-0.8-py3.6.egg-info running install_scripts + /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/simplegeneric-0.8 /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-simplegeneric-0.8-7.2.el7.x86_64/usr/lib/python3.6 using /usr/bin/python3.6 + /usr/lib/rpm/redhat/brp-python-hardlink + /usr/lib/rpm/redhat/brp-java-repack-jars Executing(%check): /bin/sh -e /var/tmp/rpm-tmp.n8IGgA + umask 022 + cd /builddir/build/BUILD + cd simplegeneric-0.8 ++ pwd + PYTHONPATH=/builddir/build/BUILD/simplegeneric-0.8 + /usr/bin/python3 setup.py test running test running egg_info writing simplegeneric.egg-info/PKG-INFO writing dependency_links to simplegeneric.egg-info/dependency_links.txt writing top-level names to simplegeneric.egg-info/top_level.txt reading manifest file 'simplegeneric.egg-info/SOURCES.txt' writing manifest file 'simplegeneric.egg-info/SOURCES.txt' running build_ext /builddir/build/BUILD/simplegeneric-0.8/README.txt Doctest: README.txt ... ok ---------------------------------------------------------------------- Ran 1 test in 0.007s OK + exit 0 Processing files: python36-simplegeneric-0.8-7.2.el7.noarch Executing(%doc): /bin/sh -e /var/tmp/rpm-tmp.bCPCDx + umask 022 + cd /builddir/build/BUILD + cd simplegeneric-0.8 + DOCDIR=/builddir/build/BUILDROOT/python-simplegeneric-0.8-7.2.el7.x86_64/usr/share/doc/python36-simplegeneric-0.8 + export DOCDIR + /usr/bin/mkdir -p /builddir/build/BUILDROOT/python-simplegeneric-0.8-7.2.el7.x86_64/usr/share/doc/python36-simplegeneric-0.8 + cp -pr README.txt /builddir/build/BUILDROOT/python-simplegeneric-0.8-7.2.el7.x86_64/usr/share/doc/python36-simplegeneric-0.8 + exit 0 Provides: python3.6dist(simplegeneric) = 0.8 python36-simplegeneric = 0.8-7.2.el7 Requires(rpmlib): rpmlib(CompressedFileNames) <= 3.0.4-1 rpmlib(FileDigests) <= 4.6.0-1 rpmlib(PayloadFilesHavePrefix) <= 4.0-1 Requires: python(abi) = 3.6 Checking for unpackaged file(s): /usr/lib/rpm/check-files /builddir/build/BUILDROOT/python-simplegeneric-0.8-7.2.el7.x86_64 Wrote: /builddir/build/RPMS/python36-simplegeneric-0.8-7.2.el7.noarch.rpm Executing(%clean): /bin/sh -e /var/tmp/rpm-tmp.o3T0Mt + umask 022 + cd /builddir/build/BUILD + cd simplegeneric-0.8 + rm -rf /builddir/build/BUILDROOT/python-simplegeneric-0.8-7.2.el7.x86_64 + exit 0 Child return code was: 0