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-build.spec'], chrootPath='/var/lib/mock/dist-oc9-build-44266-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-build.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-build-0.8.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-build.spec'], chrootPath='/var/lib/mock/dist-oc9-build-44266-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-build.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.Nr9gGM + umask 022 + cd /builddir/build/BUILD + cd /builddir/build/BUILD + rm -rf build-0.8.0 + /usr/bin/gzip -dc /builddir/build/SOURCES/build-0.8.0.tar.gz + /usr/bin/tar -xof - + STATUS=0 + '[' 0 -ne 0 ']' + cd build-0.8.0 + /usr/bin/chmod -Rf a+rX,u+w,g-w,o-w . + RPM_EC=0 ++ jobs -p + exit 0 Executing(%build): /bin/sh -e /var/tmp/rpm-tmp.RnJqon + umask 022 + cd /builddir/build/BUILD + cd build-0.8.0 + mkdir -p /builddir/build/BUILD/build-0.8.0/.pyproject-builddir + CFLAGS='-O2 -g' + LDFLAGS= + TMPDIR=/builddir/build/BUILD/build-0.8.0/.pyproject-builddir + /usr/bin/python3 -m pip wheel --wheel-dir /builddir/build/BUILD/build-0.8.0/pyproject-wheeldir --no-deps --use-pep517 --no-build-isolation --disable-pip-version-check --no-clean --progress-bar off --verbose . Processing /builddir/build/BUILD/build-0.8.0 Preparing metadata (pyproject.toml): started Running command Preparing metadata (pyproject.toml) /usr/lib/python3.10/site-packages/setuptools/config/setupcfg.py:459: SetuptoolsDeprecationWarning: The license_file parameter is deprecated, use license_files instead. warnings.warn(msg, warning_class) running dist_info creating /builddir/build/BUILD/build-0.8.0/.pyproject-builddir/pip-modern-metadata-ebyk2u8b/build.egg-info writing /builddir/build/BUILD/build-0.8.0/.pyproject-builddir/pip-modern-metadata-ebyk2u8b/build.egg-info/PKG-INFO writing dependency_links to /builddir/build/BUILD/build-0.8.0/.pyproject-builddir/pip-modern-metadata-ebyk2u8b/build.egg-info/dependency_links.txt writing entry points to /builddir/build/BUILD/build-0.8.0/.pyproject-builddir/pip-modern-metadata-ebyk2u8b/build.egg-info/entry_points.txt writing requirements to /builddir/build/BUILD/build-0.8.0/.pyproject-builddir/pip-modern-metadata-ebyk2u8b/build.egg-info/requires.txt writing top-level names to /builddir/build/BUILD/build-0.8.0/.pyproject-builddir/pip-modern-metadata-ebyk2u8b/build.egg-info/top_level.txt writing manifest file '/builddir/build/BUILD/build-0.8.0/.pyproject-builddir/pip-modern-metadata-ebyk2u8b/build.egg-info/SOURCES.txt' reading manifest file '/builddir/build/BUILD/build-0.8.0/.pyproject-builddir/pip-modern-metadata-ebyk2u8b/build.egg-info/SOURCES.txt' adding license file 'LICENSE' writing manifest file '/builddir/build/BUILD/build-0.8.0/.pyproject-builddir/pip-modern-metadata-ebyk2u8b/build.egg-info/SOURCES.txt' creating '/builddir/build/BUILD/build-0.8.0/.pyproject-builddir/pip-modern-metadata-ebyk2u8b/build-0.8.0.dist-info' Preparing metadata (pyproject.toml): finished with status 'done' Building wheels for collected packages: build Building wheel for build (pyproject.toml): started Running command Building wheel for build (pyproject.toml) /usr/lib/python3.10/site-packages/setuptools/config/setupcfg.py:459: SetuptoolsDeprecationWarning: The license_file parameter is deprecated, use license_files instead. warnings.warn(msg, warning_class) running bdist_wheel running build running build_py creating build creating build/lib creating build/lib/build copying src/build/__init__.py -> build/lib/build copying src/build/env.py -> build/lib/build copying src/build/util.py -> build/lib/build copying src/build/__main__.py -> build/lib/build copying src/build/py.typed -> build/lib/build installing to build/bdist.linux-aarch64/wheel running install running install_lib creating build/bdist.linux-aarch64 creating build/bdist.linux-aarch64/wheel creating build/bdist.linux-aarch64/wheel/build copying build/lib/build/__init__.py -> build/bdist.linux-aarch64/wheel/build copying build/lib/build/env.py -> build/bdist.linux-aarch64/wheel/build copying build/lib/build/util.py -> build/bdist.linux-aarch64/wheel/build copying build/lib/build/__main__.py -> build/bdist.linux-aarch64/wheel/build copying build/lib/build/py.typed -> build/bdist.linux-aarch64/wheel/build running install_egg_info running egg_info creating src/build.egg-info writing src/build.egg-info/PKG-INFO writing dependency_links to src/build.egg-info/dependency_links.txt writing entry points to src/build.egg-info/entry_points.txt writing requirements to src/build.egg-info/requires.txt writing top-level names to src/build.egg-info/top_level.txt writing manifest file 'src/build.egg-info/SOURCES.txt' reading manifest file 'src/build.egg-info/SOURCES.txt' adding license file 'LICENSE' writing manifest file 'src/build.egg-info/SOURCES.txt' Copying src/build.egg-info to build/bdist.linux-aarch64/wheel/build-0.8.0-py3.10.egg-info running install_scripts creating build/bdist.linux-aarch64/wheel/build-0.8.0.dist-info/WHEEL creating '/builddir/build/BUILD/build-0.8.0/.pyproject-builddir/pip-wheel-8b_mqd06/tmpydyl_tod/build-0.8.0-py3-none-any.whl' and adding 'build/bdist.linux-aarch64/wheel' to it adding 'build/__init__.py' adding 'build/__main__.py' adding 'build/env.py' adding 'build/py.typed' adding 'build/util.py' adding 'build-0.8.0.dist-info/LICENSE' adding 'build-0.8.0.dist-info/METADATA' adding 'build-0.8.0.dist-info/WHEEL' adding 'build-0.8.0.dist-info/entry_points.txt' adding 'build-0.8.0.dist-info/top_level.txt' adding 'build-0.8.0.dist-info/RECORD' removing build/bdist.linux-aarch64/wheel Building wheel for build (pyproject.toml): finished with status 'done' Created wheel for build: filename=build-0.8.0-py3-none-any.whl size=17439 sha256=ceb7b105a561b5455d1794b6fb8c209df7c844900bdf1566c1960a0bca9ef653 Stored in directory: /builddir/.cache/pip/wheels/bb/aa/42/f572e315f1f94f638c75a27d98d0d67268350f076ff20c41bd Successfully built build + RPM_EC=0 ++ jobs -p + exit 0 Executing(%install): /bin/sh -e /var/tmp/rpm-tmp.0wOQET + umask 022 + cd /builddir/build/BUILD + /usr/bin/rm -rf /builddir/build/BUILDROOT/python-build-0.8.0-4.oc9.noarch + /usr/bin/mkdir -p /builddir/build/BUILDROOT + /usr/bin/mkdir /builddir/build/BUILDROOT/python-build-0.8.0-4.oc9.noarch + cd build-0.8.0 ++ ls /builddir/build/BUILD/build-0.8.0/pyproject-wheeldir/build-0.8.0-py3-none-any.whl ++ xargs basename --multiple ++ sed -E 's/([^-]+)-([^-]+)-.+\.whl/\1==\2/' + specifier=build==0.8.0 + TMPDIR=/builddir/build/BUILD/build-0.8.0/.pyproject-builddir + /usr/bin/python3 -m pip install --root /builddir/build/BUILDROOT/python-build-0.8.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/build-0.8.0/pyproject-wheeldir build==0.8.0 Using pip 22.1.1 from /usr/lib/python3.10/site-packages/pip (python 3.10) Looking in links: /builddir/build/BUILD/build-0.8.0/pyproject-wheeldir Processing ./pyproject-wheeldir/build-0.8.0-py3-none-any.whl Installing collected packages: build Creating /builddir/build/BUILDROOT/python-build-0.8.0-4.oc9.noarch/usr/bin changing mode of /builddir/build/BUILDROOT/python-build-0.8.0-4.oc9.noarch/usr/bin/pyproject-build to 755 Successfully installed build-0.8.0 + '[' -d /builddir/build/BUILDROOT/python-build-0.8.0-4.oc9.noarch/usr/bin ']' + '[' -f /usr/bin/pathfix3.10.py ']' + pathfix=/usr/bin/pathfix3.10.py + '[' -z s ']' + shebang_flags=-kas + /usr/bin/pathfix3.10.py -pni /usr/bin/python3 -kas /builddir/build/BUILDROOT/python-build-0.8.0-4.oc9.noarch/usr/bin/pyproject-build /builddir/build/BUILDROOT/python-build-0.8.0-4.oc9.noarch/usr/bin/pyproject-build: updating + rm -rfv /builddir/build/BUILDROOT/python-build-0.8.0-4.oc9.noarch/usr/bin/__pycache__ + rm -f /builddir/build/BUILD/pyproject-ghost-distinfo + site_dirs=() + '[' -d /builddir/build/BUILDROOT/python-build-0.8.0-4.oc9.noarch/usr/lib/python3.10/site-packages ']' + site_dirs+=("/usr/lib/python3.10/site-packages") + '[' /builddir/build/BUILDROOT/python-build-0.8.0-4.oc9.noarch/usr/lib64/python3.10/site-packages '!=' /builddir/build/BUILDROOT/python-build-0.8.0-4.oc9.noarch/usr/lib/python3.10/site-packages ']' + '[' -d /builddir/build/BUILDROOT/python-build-0.8.0-4.oc9.noarch/usr/lib64/python3.10/site-packages ']' + for site_dir in ${site_dirs[@]} + for distinfo in /builddir/build/BUILDROOT/python-build-0.8.0-4.oc9.noarch$site_dir/*.dist-info + echo '%ghost /usr/lib/python3.10/site-packages/build-0.8.0.dist-info' + sed -i s/pip/rpm/ /builddir/build/BUILDROOT/python-build-0.8.0-4.oc9.noarch/usr/lib/python3.10/site-packages/build-0.8.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-build-0.8.0-4.oc9.noarch --record /builddir/build/BUILDROOT/python-build-0.8.0-4.oc9.noarch/usr/lib/python3.10/site-packages/build-0.8.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 error: Bad exit status from /var/tmp/rpm-tmp.0wOQET (%install) Bad exit status from /var/tmp/rpm-tmp.0wOQET (%install) RPM build errors: 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-build.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-build.spec