Mock Version: 1.4.21 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/1243783-epel-8-x86_64-1582020806.252305/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', '--pipe', '--capability=cap_ipc_lock', '--bind=/tmp/mock-resolv.cykhcw0d:/etc/resolv.conf']unshare_net=TrueprintOutput=True) Using nspawn with args ['--capability=cap_ipc_lock', '--rlimit=RLIMIT_NOFILE=10240', '--pipe', '--capability=cap_ipc_lock', '--bind=/tmp/mock-resolv.cykhcw0d:/etc/resolv.conf'] Executing command: ['/usr/bin/systemd-nspawn', '-q', '-M', '48b30ecabfee4ea7b4e7033430f4a648', '-D', '/var/lib/mock/1243783-epel-8-x86_64-1582020806.252305/root', '-a', '--capability=cap_ipc_lock', '--rlimit=RLIMIT_NOFILE=10240', '--pipe', '--capability=cap_ipc_lock', '--bind=/tmp/mock-resolv.cykhcw0d:/etc/resolv.conf', '--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-8.el8.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/1243783-epel-8-x86_64-1582020806.252305/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', '--pipe', '--capability=cap_ipc_lock', '--bind=/tmp/mock-resolv.cykhcw0d:/etc/resolv.conf']unshare_net=TrueprintOutput=True) Using nspawn with args ['--capability=cap_ipc_lock', '--rlimit=RLIMIT_NOFILE=10240', '--pipe', '--capability=cap_ipc_lock', '--bind=/tmp/mock-resolv.cykhcw0d:/etc/resolv.conf'] Executing command: ['/usr/bin/systemd-nspawn', '-q', '-M', 'c7cf4ed9a3c749c1abc7e957d92a3e0e', '-D', '/var/lib/mock/1243783-epel-8-x86_64-1582020806.252305/root', '-a', '--capability=cap_ipc_lock', '--rlimit=RLIMIT_NOFILE=10240', '--pipe', '--capability=cap_ipc_lock', '--bind=/tmp/mock-resolv.cykhcw0d:/etc/resolv.conf', '--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.fRxS4Q + 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 . + rm -rf /builddir/build/BUILD/python3-python-simplegeneric-0.8-8.el8 + cp -a . /builddir/build/BUILD/python3-python-simplegeneric-0.8-8.el8 + pushd /builddir/build/BUILD/python3-python-simplegeneric-0.8-8.el8 ~/build/BUILD/python3-python-simplegeneric-0.8-8.el8 ~/build/BUILD/simplegeneric-0.8 + 2to3 --write --nobackups . RefactoringTool: Skipping optional fixer: buffer RefactoringTool: Skipping optional fixer: idioms RefactoringTool: Skipping optional fixer: set_literal RefactoringTool: Skipping optional fixer: ws_comma RefactoringTool: No changes to ./setup.py RefactoringTool: No changes to ./simplegeneric.py RefactoringTool: Refactored ./ez_setup/__init__.py RefactoringTool: Files that were modified: RefactoringTool: ./setup.py 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 ~/build/BUILD/simplegeneric-0.8 + popd + find /builddir/build/BUILD/python3-python-simplegeneric-0.8-8.el8 -name '*.py' + xargs sed -i '1s|^#!python|#!/usr/libexec/platform-python|' + exit 0 Executing(%build): /bin/sh -e /var/tmp/rpm-tmp.5wTAJ4 + umask 022 + cd /builddir/build/BUILD + cd simplegeneric-0.8 + pushd /builddir/build/BUILD/python3-python-simplegeneric-0.8-8.el8 ~/build/BUILD/python3-python-simplegeneric-0.8-8.el8 ~/build/BUILD/simplegeneric-0.8 + /usr/libexec/platform-python setup.py build running build running build_py creating build creating build/lib copying simplegeneric.py -> build/lib + popd ~/build/BUILD/simplegeneric-0.8 + exit 0 Executing(%install): /bin/sh -e /var/tmp/rpm-tmp.FrPEqj + umask 022 + cd /builddir/build/BUILD + '[' /builddir/build/BUILDROOT/python-simplegeneric-0.8-8.el8.x86_64 '!=' / ']' + rm -rf /builddir/build/BUILDROOT/python-simplegeneric-0.8-8.el8.x86_64 ++ dirname /builddir/build/BUILDROOT/python-simplegeneric-0.8-8.el8.x86_64 + mkdir -p /builddir/build/BUILDROOT + mkdir /builddir/build/BUILDROOT/python-simplegeneric-0.8-8.el8.x86_64 + cd simplegeneric-0.8 + rm -rf /builddir/build/BUILDROOT/python-simplegeneric-0.8-8.el8.x86_64 + pushd /builddir/build/BUILD/python3-python-simplegeneric-0.8-8.el8 ~/build/BUILD/python3-python-simplegeneric-0.8-8.el8 ~/build/BUILD/simplegeneric-0.8 + /usr/libexec/platform-python setup.py install --skip-build --root /builddir/build/BUILDROOT/python-simplegeneric-0.8-8.el8.x86_64 running install running install_lib creating /builddir/build/BUILDROOT/python-simplegeneric-0.8-8.el8.x86_64 creating /builddir/build/BUILDROOT/python-simplegeneric-0.8-8.el8.x86_64/usr creating /builddir/build/BUILDROOT/python-simplegeneric-0.8-8.el8.x86_64/usr/lib creating /builddir/build/BUILDROOT/python-simplegeneric-0.8-8.el8.x86_64/usr/lib/python3.6 creating /builddir/build/BUILDROOT/python-simplegeneric-0.8-8.el8.x86_64/usr/lib/python3.6/site-packages copying build/lib/simplegeneric.py -> /builddir/build/BUILDROOT/python-simplegeneric-0.8-8.el8.x86_64/usr/lib/python3.6/site-packages byte-compiling /builddir/build/BUILDROOT/python-simplegeneric-0.8-8.el8.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-8.el8.x86_64/usr/lib/python3.6/site-packages/simplegeneric-0.8-py3.6.egg-info running install_scripts + popd ~/build/BUILD/simplegeneric-0.8 + /usr/lib/rpm/find-debuginfo.sh -j2 --strict-build-id -m -i --build-id-seed 0.8-8.el8 --unique-debug-suffix -0.8-8.el8.x86_64 --unique-debug-src-base python-simplegeneric-0.8-8.el8.x86_64 --run-dwz --dwz-low-mem-die-limit 10000000 --dwz-max-die-limit 110000000 -S debugsourcefiles.list /builddir/build/BUILD/simplegeneric-0.8 find: 'debug': No such file or directory + /usr/lib/rpm/check-buildroot + /usr/lib/rpm/redhat/brp-ldconfig /sbin/ldconfig: Warning: ignoring configuration file that cannot be opened: /etc/ld.so.conf: No such file or directory + /usr/lib/rpm/brp-compress + /usr/lib/rpm/brp-strip-static-archive /usr/bin/strip + /usr/lib/rpm/brp-python-bytecompile 1 Bytecompiling .py files below /builddir/build/BUILDROOT/python-simplegeneric-0.8-8.el8.x86_64/usr/lib/python3.6 using /usr/libexec/platform-python + /usr/lib/rpm/brp-python-hardlink + PYTHON3=/usr/libexec/platform-python + /usr/lib/rpm/redhat/brp-mangle-shebangs Executing(%check): /bin/sh -e /var/tmp/rpm-tmp.7brF3z + umask 022 + cd /builddir/build/BUILD + cd simplegeneric-0.8 + pushd /builddir/build/BUILD/python3-python-simplegeneric-0.8-8.el8 ~/build/BUILD/python3-python-simplegeneric-0.8-8.el8 ~/build/BUILD/simplegeneric-0.8 ++ pwd + PYTHONPATH=/builddir/build/BUILD/python3-python-simplegeneric-0.8-8.el8 + /usr/libexec/platform-python setup.py test running test WARNING: Testing via this command is deprecated and will be removed in a future version. Users looking for a generic test entry point independent of test runner are encouraged to use tox. 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/python3-python-simplegeneric-0.8-8.el8/README.txt Doctest: README.txt ... ok ---------------------------------------------------------------------- Ran 1 test in 0.008s OK + popd ~/build/BUILD/simplegeneric-0.8 + exit 0 Processing files: python3-simplegeneric-0.8-8.el8.noarch Executing(%doc): /bin/sh -e /var/tmp/rpm-tmp.NddPSR + umask 022 + cd /builddir/build/BUILD + cd simplegeneric-0.8 + DOCDIR=/builddir/build/BUILDROOT/python-simplegeneric-0.8-8.el8.x86_64/usr/share/doc/python3-simplegeneric + export LC_ALL=C + LC_ALL=C + export DOCDIR + /usr/bin/mkdir -p /builddir/build/BUILDROOT/python-simplegeneric-0.8-8.el8.x86_64/usr/share/doc/python3-simplegeneric + cp -pr README.txt /builddir/build/BUILDROOT/python-simplegeneric-0.8-8.el8.x86_64/usr/share/doc/python3-simplegeneric + exit 0 Provides: python3-simplegeneric = 0.8-8.el8 python3.6dist(simplegeneric) = 0.8 python3dist(simplegeneric) = 0.8 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.6 Checking for unpackaged file(s): /usr/lib/rpm/check-files /builddir/build/BUILDROOT/python-simplegeneric-0.8-8.el8.x86_64 Wrote: /builddir/build/RPMS/python3-simplegeneric-0.8-8.el8.noarch.rpm Executing(%clean): /bin/sh -e /var/tmp/rpm-tmp.Pg5LUd + umask 022 + cd /builddir/build/BUILD + cd simplegeneric-0.8 + rm -rf /builddir/build/BUILDROOT/python-simplegeneric-0.8-8.el8.x86_64 + exit 0 Child return code was: 0