Mock Version: 4.1 Mock Version: 4.1 Mock Version: 4.1 ENTER ['do_with_status'](['bash', '--login', '-c', '/usr/bin/rpmbuild -bs --noclean --target noarch --nodeps /builddir/build/SPECS/python-pep517.spec'], chrootPath='/var/lib/mock/dist-oc9-build-44558-14591/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': 'C.UTF-8'}shell=Falselogger=timeout=86400uid=991gid=135user='mockbuild'nspawn_args=[]unshare_net=TrueprintOutput=False) Executing command: ['bash', '--login', '-c', '/usr/bin/rpmbuild -bs --noclean --target noarch --nodeps /builddir/build/SPECS/python-pep517.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': 'C.UTF-8'} and shell False Building target platforms: noarch Building for target noarch Wrote: /builddir/build/SRPMS/python-pep517-0.13.0-4.oc9.src.rpm Child return code was: 0 ENTER ['do_with_status'](['bash', '--login', '-c', '/usr/bin/rpmbuild -bb --noclean --target noarch --nodeps /builddir/build/SPECS/python-pep517.spec'], chrootPath='/var/lib/mock/dist-oc9-build-44558-14591/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': 'C.UTF-8'}shell=Falselogger=timeout=86400uid=991gid=135user='mockbuild'nspawn_args=[]unshare_net=TrueprintOutput=False) Executing command: ['bash', '--login', '-c', '/usr/bin/rpmbuild -bb --noclean --target noarch --nodeps /builddir/build/SPECS/python-pep517.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': 'C.UTF-8'} and shell False Building target platforms: noarch Building for target noarch Executing(%prep): /bin/sh -e /var/tmp/rpm-tmp.Eb7tN8 + umask 022 + cd /builddir/build/BUILD + cd /builddir/build/BUILD + rm -rf pep517-0.13.0 + /usr/bin/gzip -dc /builddir/build/SOURCES/python-pep517-0.13.0.tar.gz + /usr/bin/tar -xof - + STATUS=0 + '[' 0 -ne 0 ']' + cd pep517-0.13.0 + /usr/bin/chmod -Rf a+rX,u+w,g-w,o-w . + sed -i '/--flake8$/d' pytest.ini + sed -i /pytest-flake8/d dev-requirements.txt + RPM_EC=0 ++ jobs -p + exit 0 Executing(%build): /bin/sh -e /var/tmp/rpm-tmp.OHYpPS + umask 022 + cd /builddir/build/BUILD + cd pep517-0.13.0 + mkdir -p /builddir/build/BUILD/pep517-0.13.0/.pyproject-builddir + CFLAGS='-O2 -g' + LDFLAGS= + TMPDIR=/builddir/build/BUILD/pep517-0.13.0/.pyproject-builddir + /usr/bin/python3 -m pip wheel --wheel-dir /builddir/build/BUILD/pep517-0.13.0/pyproject-wheeldir --no-deps --use-pep517 --no-build-isolation --disable-pip-version-check --no-clean --progress-bar off --verbose . Processing /builddir/build/BUILD/pep517-0.13.0 Preparing metadata (pyproject.toml): started Running command Preparing metadata (pyproject.toml) Preparing metadata (pyproject.toml): finished with status 'done' Building wheels for collected packages: pep517 Building wheel for pep517 (pyproject.toml): started Running command Building wheel for pep517 (pyproject.toml) Building wheel for pep517 (pyproject.toml): finished with status 'done' Created wheel for pep517: filename=pep517-0.13.0-py3-none-any.whl size=18966 sha256=d6b29c1cc3c219e00da7082fbb407730438a8db4789c1987a30c99faffec861e Stored in directory: /builddir/.cache/pip/wheels/b1/59/8b/c59dac6078a41b7aa7b591777dae5c7ff97b5c59e3e72fe921 Successfully built pep517 + RPM_EC=0 ++ jobs -p + exit 0 Executing(%install): /bin/sh -e /var/tmp/rpm-tmp.27oeUh + umask 022 + cd /builddir/build/BUILD + /usr/bin/rm -rf /builddir/build/BUILDROOT/python-pep517-0.13.0-4.oc9.noarch + /usr/bin/mkdir -p /builddir/build/BUILDROOT + /usr/bin/mkdir /builddir/build/BUILDROOT/python-pep517-0.13.0-4.oc9.noarch + cd pep517-0.13.0 ++ ls /builddir/build/BUILD/pep517-0.13.0/pyproject-wheeldir/pep517-0.13.0-py3-none-any.whl ++ xargs basename --multiple ++ sed -E 's/([^-]+)-([^-]+)-.+\.whl/\1==\2/' + specifier=pep517==0.13.0 + TMPDIR=/builddir/build/BUILD/pep517-0.13.0/.pyproject-builddir + /usr/bin/python3 -m pip install --root /builddir/build/BUILDROOT/python-pep517-0.13.0-4.oc9.noarch --no-deps --disable-pip-version-check --progress-bar off --verbose --ignore-installed --no-warn-script-location --no-index --no-cache-dir --find-links /builddir/build/BUILD/pep517-0.13.0/pyproject-wheeldir pep517==0.13.0 Using pip 22.1.1 from /usr/lib/python3.10/site-packages/pip (python 3.10) Looking in links: /builddir/build/BUILD/pep517-0.13.0/pyproject-wheeldir Processing ./pyproject-wheeldir/pep517-0.13.0-py3-none-any.whl Installing collected packages: pep517 Successfully installed pep517-0.13.0 + '[' -d /builddir/build/BUILDROOT/python-pep517-0.13.0-4.oc9.noarch/usr/bin ']' + rm -f /builddir/build/BUILD/pyproject-ghost-distinfo + site_dirs=() + '[' -d /builddir/build/BUILDROOT/python-pep517-0.13.0-4.oc9.noarch/usr/lib/python3.10/site-packages ']' + site_dirs+=("/usr/lib/python3.10/site-packages") + '[' /builddir/build/BUILDROOT/python-pep517-0.13.0-4.oc9.noarch/usr/lib64/python3.10/site-packages '!=' /builddir/build/BUILDROOT/python-pep517-0.13.0-4.oc9.noarch/usr/lib/python3.10/site-packages ']' + '[' -d /builddir/build/BUILDROOT/python-pep517-0.13.0-4.oc9.noarch/usr/lib64/python3.10/site-packages ']' + for site_dir in ${site_dirs[@]} + for distinfo in /builddir/build/BUILDROOT/python-pep517-0.13.0-4.oc9.noarch$site_dir/*.dist-info + echo '%ghost /usr/lib/python3.10/site-packages/pep517-0.13.0.dist-info' + sed -i s/pip/rpm/ /builddir/build/BUILDROOT/python-pep517-0.13.0-4.oc9.noarch/usr/lib/python3.10/site-packages/pep517-0.13.0.dist-info/INSTALLER + PYTHONPATH=/usr/lib/rpm/TencentOS + /usr/bin/python3 -B /usr/lib/rpm/TencentOS/pyproject_preprocess_record.py --buildroot /builddir/build/BUILDROOT/python-pep517-0.13.0-4.oc9.noarch --record /builddir/build/BUILDROOT/python-pep517-0.13.0-4.oc9.noarch/usr/lib/python3.10/site-packages/pep517-0.13.0.dist-info/RECORD --output /builddir/build/BUILD/pyproject-record /usr/bin/python3: can't open file '/usr/lib/rpm/TencentOS/pyproject_preprocess_record.py': [Errno 2] No such file or directory RPM build errors: error: Bad exit status from /var/tmp/rpm-tmp.27oeUh (%install) Bad exit status from /var/tmp/rpm-tmp.27oeUh (%install) Child return code was: 1 EXCEPTION: [Error('Command failed: \n # bash --login -c /usr/bin/rpmbuild -bb --noclean --target noarch --nodeps /builddir/build/SPECS/python-pep517.spec\n', 1)] Traceback (most recent call last): File "/usr/lib/python3.6/site-packages/mockbuild/trace_decorator.py", line 93, in trace result = func(*args, **kw) File "/usr/lib/python3.6/site-packages/mockbuild/util.py", line 597, in do_with_status raise exception.Error("Command failed: \n # %s\n%s" % (command, output), child.returncode) mockbuild.exception.Error: Command failed: # bash --login -c /usr/bin/rpmbuild -bb --noclean --target noarch --nodeps /builddir/build/SPECS/python-pep517.spec