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-setuptools.spec'], chrootPath='/var/lib/mock/dist-ocs23-python311-build-88409-5268/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=982gid=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-setuptools.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-setuptools-62.3.2-5.ocs23.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-setuptools.spec'], chrootPath='/var/lib/mock/dist-ocs23-python311-build-88409-5268/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=982gid=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-setuptools.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.rx9uL6 + umask 022 + cd /builddir/build/BUILD + cd /builddir/build/BUILD + rm -rf setuptools-62.3.2 + /usr/lib/rpm/rpmuncompress -x /builddir/build/SOURCES/v62.3.2.tar.gz + STATUS=0 + '[' 0 -ne 0 ']' + cd setuptools-62.3.2 + /usr/bin/chmod -Rf a+rX,u+w,g-w,o-w . + /usr/lib/rpm/rpmuncompress /builddir/build/SOURCES/62.3.2-remove-mock-in-tests.patch + /usr/bin/patch -p1 -s --fuzz=0 --no-backup-if-mismatch -f + /usr/lib/rpm/rpmuncompress /builddir/build/SOURCES/62.3.2-skip-unsopported-test-cases.patch + /usr/bin/patch -p1 -s --fuzz=0 --no-backup-if-mismatch -f + RPM_EC=0 ++ jobs -p + exit 0 Executing(%build): /bin/sh -e /var/tmp/rpm-tmp.P8wXtQ + umask 022 + cd /builddir/build/BUILD + CFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/OpenCloudOS/OpenCloudOS-hardened-cc1 -fstack-protector-strong -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection' + export CFLAGS + CXXFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/OpenCloudOS/OpenCloudOS-hardened-cc1 -fstack-protector-strong -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection' + export CXXFLAGS + FFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/OpenCloudOS/OpenCloudOS-hardened-cc1 -fstack-protector-strong -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -I/usr/lib/gfortran/modules' + export FFLAGS + FCFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/OpenCloudOS/OpenCloudOS-hardened-cc1 -fstack-protector-strong -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -I/usr/lib/gfortran/modules' + export FCFLAGS + LDFLAGS='-Wl,-z,relro -Wl,--as-needed -Wl,-z,now -specs=/usr/lib/rpm/OpenCloudOS/OpenCloudOS-hardened-ld -Wl,--build-id=sha1' + export LDFLAGS + LT_SYS_LIBRARY_PATH=/usr/lib: + export LT_SYS_LIBRARY_PATH + CC=gcc + export CC + CXX=g++ + export CXX + cd setuptools-62.3.2 + mkdir -p /builddir/build/BUILD/setuptools-62.3.2/.pyproject-builddir + CFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/OpenCloudOS/OpenCloudOS-hardened-cc1 -fstack-protector-strong -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection' + LDFLAGS='-Wl,-z,relro -Wl,--as-needed -Wl,-z,now -specs=/usr/lib/rpm/OpenCloudOS/OpenCloudOS-hardened-ld -Wl,--build-id=sha1' + TMPDIR=/builddir/build/BUILD/setuptools-62.3.2/.pyproject-builddir + /usr/bin/python3 -m pip wheel --wheel-dir /builddir/build/BUILD/setuptools-62.3.2/pyproject-wheeldir --no-deps --use-pep517 --no-build-isolation --disable-pip-version-check --no-clean --progress-bar off --verbose . Processing /builddir/build/BUILD/setuptools-62.3.2 Preparing metadata (pyproject.toml): started Running command Preparing metadata (pyproject.toml) running dist_info creating /builddir/build/BUILD/setuptools-62.3.2/.pyproject-builddir/pip-modern-metadata-w2qcv4ua/setuptools.egg-info writing /builddir/build/BUILD/setuptools-62.3.2/.pyproject-builddir/pip-modern-metadata-w2qcv4ua/setuptools.egg-info/PKG-INFO writing dependency_links to /builddir/build/BUILD/setuptools-62.3.2/.pyproject-builddir/pip-modern-metadata-w2qcv4ua/setuptools.egg-info/dependency_links.txt writing entry points to /builddir/build/BUILD/setuptools-62.3.2/.pyproject-builddir/pip-modern-metadata-w2qcv4ua/setuptools.egg-info/entry_points.txt writing requirements to /builddir/build/BUILD/setuptools-62.3.2/.pyproject-builddir/pip-modern-metadata-w2qcv4ua/setuptools.egg-info/requires.txt writing /builddir/build/BUILD/setuptools-62.3.2/.pyproject-builddir/pip-modern-metadata-w2qcv4ua/setuptools.egg-info/PKG-INFO writing dependency_links to /builddir/build/BUILD/setuptools-62.3.2/.pyproject-builddir/pip-modern-metadata-w2qcv4ua/setuptools.egg-info/dependency_links.txt writing entry points to /builddir/build/BUILD/setuptools-62.3.2/.pyproject-builddir/pip-modern-metadata-w2qcv4ua/setuptools.egg-info/entry_points.txt writing requirements to /builddir/build/BUILD/setuptools-62.3.2/.pyproject-builddir/pip-modern-metadata-w2qcv4ua/setuptools.egg-info/requires.txt writing top-level names to /builddir/build/BUILD/setuptools-62.3.2/.pyproject-builddir/pip-modern-metadata-w2qcv4ua/setuptools.egg-info/top_level.txt writing manifest file '/builddir/build/BUILD/setuptools-62.3.2/.pyproject-builddir/pip-modern-metadata-w2qcv4ua/setuptools.egg-info/SOURCES.txt' Traceback (most recent call last): File "/usr/lib/python3.11/site-packages/pip/_vendor/pep517/in_process/_in_process.py", line 351, in main() File "/usr/lib/python3.11/site-packages/pip/_vendor/pep517/in_process/_in_process.py", line 333, in main json_out['return_val'] = hook(**hook_input['kwargs']) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.11/site-packages/pip/_vendor/pep517/in_process/_in_process.py", line 152, in prepare_metadata_for_build_wheel return hook(metadata_directory, config_settings) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/setuptools-62.3.2/setuptools/build_meta.py", line 188, in prepare_metadata_for_build_wheel self.run_setup() File "/builddir/build/BUILD/setuptools-62.3.2/setuptools/build_meta.py", line 174, in run_setup exec(compile(code, __file__, 'exec'), locals()) File "setup.py", line 87, in dist = setuptools.setup(**setup_params) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/setuptools-62.3.2/setuptools/__init__.py", line 87, in setup return distutils.core.setup(**attrs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/setuptools-62.3.2/setuptools/_distutils/core.py", line 148, in setup return run_commands(dist) ^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/setuptools-62.3.2/setuptools/_distutils/core.py", line 163, in run_commands dist.run_commands() File "/builddir/build/BUILD/setuptools-62.3.2/setuptools/_distutils/dist.py", line 967, in run_commands self.run_command(cmd) File "/builddir/build/BUILD/setuptools-62.3.2/setuptools/dist.py", line 1229, in run_command super().run_command(command) File "/builddir/build/BUILD/setuptools-62.3.2/setuptools/_distutils/dist.py", line 986, in run_command cmd_obj.run() File "/builddir/build/BUILD/setuptools-62.3.2/setuptools/command/dist_info.py", line 35, in run egg_info.run() File "/builddir/build/BUILD/setuptools-62.3.2/setuptools/command/egg_info.py", line 308, in run self.find_sources() File "/builddir/build/BUILD/setuptools-62.3.2/setuptools/command/egg_info.py", line 315, in find_sources mm.run() File "/builddir/build/BUILD/setuptools-62.3.2/setuptools/command/egg_info.py", line 550, in run self.add_defaults() File "/builddir/build/BUILD/setuptools-62.3.2/setuptools/command/egg_info.py", line 587, in add_defaults sdist.add_defaults(self) File "/builddir/build/BUILD/setuptools-62.3.2/setuptools/_distutils/command/sdist.py", line 226, in add_defaults self._add_defaults_python() File "/builddir/build/BUILD/setuptools-62.3.2/setuptools/command/sdist.py", line 111, in _add_defaults_python build_py = self.get_finalized_command('build_py') ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/setuptools-62.3.2/setuptools/_distutils/cmd.py", line 299, in get_finalized_command cmd_obj.ensure_finalized() File "/builddir/build/BUILD/setuptools-62.3.2/setuptools/_distutils/cmd.py", line 107, in ensure_finalized self.finalize_options() File "/builddir/build/BUILD/setuptools-62.3.2/setuptools/command/build_py.py", line 33, in finalize_options orig.build_py.finalize_options(self) File "/builddir/build/BUILD/setuptools-62.3.2/setuptools/_distutils/command/build_py.py", line 43, in finalize_options self.set_undefined_options('build', File "/builddir/build/BUILD/setuptools-62.3.2/setuptools/_distutils/cmd.py", line 286, in set_undefined_options src_cmd_obj = self.distribution.get_command_obj(src_cmd) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/setuptools-62.3.2/setuptools/_distutils/dist.py", line 858, in get_command_obj klass = self.get_command_class(command) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/setuptools-62.3.2/setuptools/dist.py", line 966, in get_command_class self.cmdclass[command] = cmdclass = ep.load() ^^^^^^^^^ File "/usr/lib64/python3.11/importlib/metadata/__init__.py", line 202, in load module = import_module(match.group('module')) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib64/python3.11/importlib/__init__.py", line 126, in import_module return _bootstrap._gcd_import(name[level:], package, level) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "", line 1204, in _gcd_import File "", line 1176, in _find_and_load File "", line 1140, in _find_and_load_unlocked ModuleNotFoundError: No module named 'setuptools.command.build' error: subprocess-exited-with-error × Preparing metadata (pyproject.toml) did not run successfully. │ exit code: 1 ╰─> See above for output. note: This error originates from a subprocess, and is likely not a problem with pip. full command: /usr/bin/python3 /usr/lib/python3.11/site-packages/pip/_vendor/pep517/in_process/_in_process.py prepare_metadata_for_build_wheel /builddir/build/BUILD/setuptools-62.3.2/.pyproject-builddir/tmpd3_0j58x cwd: /builddir/build/BUILD/setuptools-62.3.2 Preparing metadata (pyproject.toml): finished with status 'error' error: metadata-generation-failed × Encountered error while generating package metadata. ╰─> See above for output. note: This is an issue with the package mentioned above, not pip. hint: See above for details. error: Bad exit status from /var/tmp/rpm-tmp.P8wXtQ (%build) Bad exit status from /var/tmp/rpm-tmp.P8wXtQ (%build) 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-setuptools.spec\n', 1)] Traceback (most recent call last): File "/usr/lib/python3.10/site-packages/mockbuild/trace_decorator.py", line 93, in trace result = func(*args, **kw) File "/usr/lib/python3.10/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-setuptools.spec