Mock Version: 2.8 Mock Version: 2.8 Mock Version: 2.8 ENTER ['do_with_status'](['bash', '--login', '-c', '/usr/bin/rpmbuild -bs --target x86_64 --nodeps /builddir/build/SPECS/python-setuptools.spec'], chrootPath='/var/lib/mock/dist-an23-build-214220-61974/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=989gid=135user='mockbuild'nspawn_args=[]unshare_net=TrueprintOutput=False) Executing command: ['bash', '--login', '-c', '/usr/bin/rpmbuild -bs --target x86_64 --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 warning: extra tokens at the end of %endif directive in line 28: %endif # with python2 warning: extra tokens at the end of %endif directive in line 33: %endif # with python3 warning: extra tokens at the end of %endif directive in line 34: %endif # without bootstrap warning: extra tokens at the end of %endif directive in line 28: %endif # with python2 warning: extra tokens at the end of %endif directive in line 33: %endif # with python3 warning: extra tokens at the end of %endif directive in line 34: %endif # without bootstrap warning: extra tokens at the end of %endif directive in line 60: %endif # with py2_wheel warning: extra tokens at the end of %endif directive in line 61: %endif # with python2 warning: extra tokens at the end of %endif directive in line 69: %endif # with tests warning: extra tokens at the end of %endif directive in line 73: %endif # without bootstrap warning: extra tokens at the end of %endif directive in line 74: %endif # with python3 warning: extra tokens at the end of %endif directive in line 100: %endif # with python3 warning: extra tokens at the end of %endif directive in line 110: %endif # with python2 warning: extra tokens at the end of %endif directive in line 122: %endif # with python3 warning: extra tokens at the end of %endif directive in line 132: %endif #with python2 warning: extra tokens at the end of %endif directive in line 133: %endif #with py2_wheel warning: extra tokens at the end of %endif directive in line 141: %endif #with python3 warning: extra tokens at the end of %endif directive in line 142: %endif #with bootstrap warning: extra tokens at the end of %endif directive in line 175: %endif # without bootstrap + py2_wheel warning: extra tokens at the end of %endif directive in line 176: %endif # with python2 warning: extra tokens at the end of %endif directive in line 183: %endif # without bootstrap warning: extra tokens at the end of %endif directive in line 184: %endif # with python3 warning: extra tokens at the end of %endif directive in line 211: %endif # with python3 warning: extra tokens at the end of %endif directive in line 220: %endif #with py2_wheel warning: extra tokens at the end of %endif directive in line 225: %endif # with py2_wheel warning: extra tokens at the end of %endif directive in line 228: %endif # with python2 warning: extra tokens at the end of %endif directive in line 238: %endif #with python2 warning: extra tokens at the end of %endif directive in line 239: %endif #with py2_wheel warning: extra tokens at the end of %endif directive in line 244: %endif #with python3 warning: extra tokens at the end of %endif directive in line 245: %endif #with bootstrap warning: extra tokens at the end of %endif directive in line 255: %endif # with python3 warning: extra tokens at the end of %endif directive in line 256: %endif # with tests warning: extra tokens at the end of %endif directive in line 266: %endif # with python2 warning: extra tokens at the end of %endif directive in line 283: %endif # with python3 warning: extra tokens at the end of %endif directive in line 293: %endif #with python2 warning: extra tokens at the end of %endif directive in line 294: %endif #with py2_wheel warning: extra tokens at the end of %endif directive in line 302: %endif #with python3 warning: extra tokens at the end of %endif directive in line 303: %endif #with bootstrap Building target platforms: x86_64 Building for target x86_64 setting SOURCE_DATE_EPOCH=1585094400 Wrote: /builddir/build/SRPMS/python-setuptools-39.2.0-6.an23.src.rpm RPM build warnings: extra tokens at the end of %endif directive in line 28: %endif # with python2 extra tokens at the end of %endif directive in line 33: %endif # with python3 extra tokens at the end of %endif directive in line 34: %endif # without bootstrap extra tokens at the end of %endif directive in line 28: %endif # with python2 extra tokens at the end of %endif directive in line 33: %endif # with python3 extra tokens at the end of %endif directive in line 34: %endif # without bootstrap extra tokens at the end of %endif directive in line 60: %endif # with py2_wheel extra tokens at the end of %endif directive in line 61: %endif # with python2 extra tokens at the end of %endif directive in line 69: %endif # with tests extra tokens at the end of %endif directive in line 73: %endif # without bootstrap extra tokens at the end of %endif directive in line 74: %endif # with python3 extra tokens at the end of %endif directive in line 100: %endif # with python3 extra tokens at the end of %endif directive in line 110: %endif # with python2 extra tokens at the end of %endif directive in line 122: %endif # with python3 extra tokens at the end of %endif directive in line 132: %endif #with python2 extra tokens at the end of %endif directive in line 133: %endif #with py2_wheel extra tokens at the end of %endif directive in line 141: %endif #with python3 extra tokens at the end of %endif directive in line 142: %endif #with bootstrap extra tokens at the end of %endif directive in line 175: %endif # without bootstrap + py2_wheel extra tokens at the end of %endif directive in line 176: %endif # with python2 extra tokens at the end of %endif directive in line 183: %endif # without bootstrap extra tokens at the end of %endif directive in line 184: %endif # with python3 extra tokens at the end of %endif directive in line 211: %endif # with python3 extra tokens at the end of %endif directive in line 220: %endif #with py2_wheel extra tokens at the end of %endif directive in line 225: %endif # with py2_wheel extra tokens at the end of %endif directive in line 228: %endif # with python2 extra tokens at the end of %endif directive in line 238: %endif #with python2 extra tokens at the end of %endif directive in line 239: %endif #with py2_wheel extra tokens at the end of %endif directive in line 244: %endif #with python3 extra tokens at the end of %endif directive in line 245: %endif #with bootstrap extra tokens at the end of %endif directive in line 255: %endif # with python3 extra tokens at the end of %endif directive in line 256: %endif # with tests extra tokens at the end of %endif directive in line 266: %endif # with python2 extra tokens at the end of %endif directive in line 283: %endif # with python3 extra tokens at the end of %endif directive in line 293: %endif #with python2 extra tokens at the end of %endif directive in line 294: %endif #with py2_wheel extra tokens at the end of %endif directive in line 302: %endif #with python3 extra tokens at the end of %endif directive in line 303: %endif #with bootstrap Child return code was: 0 ENTER ['do_with_status'](['bash', '--login', '-c', '/usr/bin/rpmbuild -bb --target x86_64 --nodeps /builddir/build/SPECS/python-setuptools.spec'], chrootPath='/var/lib/mock/dist-an23-build-214220-61974/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=989gid=135user='mockbuild'nspawn_args=[]unshare_net=TrueprintOutput=False) Executing command: ['bash', '--login', '-c', '/usr/bin/rpmbuild -bb --target x86_64 --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 warning: extra tokens at the end of %endif directive in line 28: %endif # with python2 warning: extra tokens at the end of %endif directive in line 33: %endif # with python3 warning: extra tokens at the end of %endif directive in line 34: %endif # without bootstrap warning: extra tokens at the end of %endif directive in line 28: %endif # with python2 warning: extra tokens at the end of %endif directive in line 33: %endif # with python3 warning: extra tokens at the end of %endif directive in line 34: %endif # without bootstrap warning: extra tokens at the end of %endif directive in line 60: %endif # with py2_wheel warning: extra tokens at the end of %endif directive in line 61: %endif # with python2 warning: extra tokens at the end of %endif directive in line 69: %endif # with tests warning: extra tokens at the end of %endif directive in line 73: %endif # without bootstrap warning: extra tokens at the end of %endif directive in line 74: %endif # with python3 warning: extra tokens at the end of %endif directive in line 100: %endif # with python3 warning: extra tokens at the end of %endif directive in line 110: %endif # with python2 warning: extra tokens at the end of %endif directive in line 122: %endif # with python3 warning: extra tokens at the end of %endif directive in line 132: %endif #with python2 warning: extra tokens at the end of %endif directive in line 133: %endif #with py2_wheel warning: extra tokens at the end of %endif directive in line 141: %endif #with python3 warning: extra tokens at the end of %endif directive in line 142: %endif #with bootstrap warning: extra tokens at the end of %endif directive in line 175: %endif # without bootstrap + py2_wheel warning: extra tokens at the end of %endif directive in line 176: %endif # with python2 warning: extra tokens at the end of %endif directive in line 183: %endif # without bootstrap warning: extra tokens at the end of %endif directive in line 184: %endif # with python3 warning: extra tokens at the end of %endif directive in line 211: %endif # with python3 warning: extra tokens at the end of %endif directive in line 220: %endif #with py2_wheel warning: extra tokens at the end of %endif directive in line 225: %endif # with py2_wheel warning: extra tokens at the end of %endif directive in line 228: %endif # with python2 warning: extra tokens at the end of %endif directive in line 238: %endif #with python2 warning: extra tokens at the end of %endif directive in line 239: %endif #with py2_wheel warning: extra tokens at the end of %endif directive in line 244: %endif #with python3 warning: extra tokens at the end of %endif directive in line 245: %endif #with bootstrap warning: extra tokens at the end of %endif directive in line 255: %endif # with python3 warning: extra tokens at the end of %endif directive in line 256: %endif # with tests warning: extra tokens at the end of %endif directive in line 266: %endif # with python2 warning: extra tokens at the end of %endif directive in line 283: %endif # with python3 warning: extra tokens at the end of %endif directive in line 293: %endif #with python2 warning: extra tokens at the end of %endif directive in line 294: %endif #with py2_wheel warning: extra tokens at the end of %endif directive in line 302: %endif #with python3 warning: extra tokens at the end of %endif directive in line 303: %endif #with bootstrap Building target platforms: x86_64 Building for target x86_64 setting SOURCE_DATE_EPOCH=1585094400 Executing(%prep): /bin/sh -e /var/tmp/rpm-tmp.WanyUG + umask 022 + cd /builddir/build/BUILD + cd /builddir/build/BUILD + rm -rf setuptools-39.2.0 + /usr/lib/rpm/rpmuncompress -x /builddir/build/SOURCES/setuptools-39.2.0.zip + STATUS=0 + '[' 0 -ne 0 ']' + cd setuptools-39.2.0 + /usr/bin/chmod -Rf a+rX,u+w,g-w,o-w . + /usr/lib/rpm/rpmuncompress /builddir/build/SOURCES/create-site-packages.patch + /usr/bin/patch -p1 -s --fuzz=0 --no-backup-if-mismatch -f + find setuptools -name '*.py' + xargs sed -i -e '1 {/^#!\//d}' + rm -f setuptools/cli-32.exe setuptools/cli-64.exe setuptools/cli.exe setuptools/gui-32.exe setuptools/gui-64.exe setuptools/gui.exe + rm setuptools/tests/test_integration.py + RPM_EC=0 ++ jobs -p + exit 0 Executing(%build): /bin/sh -e /var/tmp/rpm-tmp.YS53Ce + 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/anolis/anolis-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/anolis/anolis-annobin-cc1 -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/anolis/anolis-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/anolis/anolis-annobin-cc1 -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/anolis/anolis-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/anolis/anolis-annobin-cc1 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -I/usr/lib64/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/anolis/anolis-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/anolis/anolis-annobin-cc1 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -I/usr/lib64/gfortran/modules' + export FCFLAGS + LDFLAGS='-Wl,-z,relro -Wl,--as-needed -Wl,-z,now -specs=/usr/lib/rpm/anolis/anolis-hardened-ld -specs=/usr/lib/rpm/anolis/anolis-annobin-cc1 -Wl,--build-id=sha1 ' + export LDFLAGS + LT_SYS_LIBRARY_PATH=/usr/lib64: + export LT_SYS_LIBRARY_PATH + CC=gcc + export CC + CXX=g++ + export CXX + cd setuptools-39.2.0 + export RHEL_ALLOW_PYTHON2_FOR_BUILD=1 + RHEL_ALLOW_PYTHON2_FOR_BUILD=1 + sleep 1 + 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/anolis/anolis-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/anolis/anolis-annobin-cc1 -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/anolis/anolis-hardened-ld -specs=/usr/lib/rpm/anolis/anolis-annobin-cc1 -Wl,--build-id=sha1 ' + /usr/bin/python2 setup.py build '--executable=/usr/bin/python2 -s' running build running build_py creating build creating build/lib copying easy_install.py -> build/lib creating build/lib/pkg_resources copying pkg_resources/__init__.py -> build/lib/pkg_resources copying pkg_resources/py31compat.py -> build/lib/pkg_resources creating build/lib/setuptools copying setuptools/__init__.py -> build/lib/setuptools copying setuptools/archive_util.py -> build/lib/setuptools copying setuptools/build_meta.py -> build/lib/setuptools copying setuptools/config.py -> build/lib/setuptools copying setuptools/dep_util.py -> build/lib/setuptools copying setuptools/depends.py -> build/lib/setuptools copying setuptools/dist.py -> build/lib/setuptools copying setuptools/extension.py -> build/lib/setuptools copying setuptools/glibc.py -> build/lib/setuptools copying setuptools/glob.py -> build/lib/setuptools copying setuptools/launch.py -> build/lib/setuptools copying setuptools/lib2to3_ex.py -> build/lib/setuptools copying setuptools/monkey.py -> build/lib/setuptools copying setuptools/msvc.py -> build/lib/setuptools copying setuptools/namespaces.py -> build/lib/setuptools copying setuptools/package_index.py -> build/lib/setuptools copying setuptools/pep425tags.py -> build/lib/setuptools copying setuptools/py27compat.py -> build/lib/setuptools copying setuptools/py31compat.py -> build/lib/setuptools copying setuptools/py33compat.py -> build/lib/setuptools copying setuptools/py36compat.py -> build/lib/setuptools copying setuptools/sandbox.py -> build/lib/setuptools copying setuptools/site-patch.py -> build/lib/setuptools copying setuptools/ssl_support.py -> build/lib/setuptools copying setuptools/unicode_utils.py -> build/lib/setuptools copying setuptools/version.py -> build/lib/setuptools copying setuptools/wheel.py -> build/lib/setuptools copying setuptools/windows_support.py -> build/lib/setuptools creating build/lib/pkg_resources/_vendor copying pkg_resources/_vendor/__init__.py -> build/lib/pkg_resources/_vendor copying pkg_resources/_vendor/appdirs.py -> build/lib/pkg_resources/_vendor copying pkg_resources/_vendor/pyparsing.py -> build/lib/pkg_resources/_vendor copying pkg_resources/_vendor/six.py -> build/lib/pkg_resources/_vendor creating build/lib/pkg_resources/extern copying pkg_resources/extern/__init__.py -> build/lib/pkg_resources/extern creating build/lib/pkg_resources/_vendor/packaging copying pkg_resources/_vendor/packaging/__about__.py -> build/lib/pkg_resources/_vendor/packaging copying pkg_resources/_vendor/packaging/__init__.py -> build/lib/pkg_resources/_vendor/packaging copying pkg_resources/_vendor/packaging/_compat.py -> build/lib/pkg_resources/_vendor/packaging copying pkg_resources/_vendor/packaging/_structures.py -> build/lib/pkg_resources/_vendor/packaging copying pkg_resources/_vendor/packaging/markers.py -> build/lib/pkg_resources/_vendor/packaging copying pkg_resources/_vendor/packaging/requirements.py -> build/lib/pkg_resources/_vendor/packaging copying pkg_resources/_vendor/packaging/specifiers.py -> build/lib/pkg_resources/_vendor/packaging copying pkg_resources/_vendor/packaging/utils.py -> build/lib/pkg_resources/_vendor/packaging copying pkg_resources/_vendor/packaging/version.py -> build/lib/pkg_resources/_vendor/packaging creating build/lib/setuptools/_vendor copying setuptools/_vendor/__init__.py -> build/lib/setuptools/_vendor copying setuptools/_vendor/pyparsing.py -> build/lib/setuptools/_vendor copying setuptools/_vendor/six.py -> build/lib/setuptools/_vendor creating build/lib/setuptools/command copying setuptools/command/__init__.py -> build/lib/setuptools/command copying setuptools/command/alias.py -> build/lib/setuptools/command copying setuptools/command/bdist_egg.py -> build/lib/setuptools/command copying setuptools/command/bdist_rpm.py -> build/lib/setuptools/command copying setuptools/command/bdist_wininst.py -> build/lib/setuptools/command copying setuptools/command/build_clib.py -> build/lib/setuptools/command copying setuptools/command/build_ext.py -> build/lib/setuptools/command copying setuptools/command/build_py.py -> build/lib/setuptools/command copying setuptools/command/develop.py -> build/lib/setuptools/command copying setuptools/command/dist_info.py -> build/lib/setuptools/command copying setuptools/command/easy_install.py -> build/lib/setuptools/command copying setuptools/command/egg_info.py -> build/lib/setuptools/command copying setuptools/command/install.py -> build/lib/setuptools/command copying setuptools/command/install_egg_info.py -> build/lib/setuptools/command copying setuptools/command/install_lib.py -> build/lib/setuptools/command copying setuptools/command/install_scripts.py -> build/lib/setuptools/command copying setuptools/command/py36compat.py -> build/lib/setuptools/command copying setuptools/command/register.py -> build/lib/setuptools/command copying setuptools/command/rotate.py -> build/lib/setuptools/command copying setuptools/command/saveopts.py -> build/lib/setuptools/command copying setuptools/command/sdist.py -> build/lib/setuptools/command copying setuptools/command/setopt.py -> build/lib/setuptools/command copying setuptools/command/test.py -> build/lib/setuptools/command copying setuptools/command/upload.py -> build/lib/setuptools/command copying setuptools/command/upload_docs.py -> build/lib/setuptools/command creating build/lib/setuptools/extern copying setuptools/extern/__init__.py -> build/lib/setuptools/extern creating build/lib/setuptools/_vendor/packaging copying setuptools/_vendor/packaging/__about__.py -> build/lib/setuptools/_vendor/packaging copying setuptools/_vendor/packaging/__init__.py -> build/lib/setuptools/_vendor/packaging copying setuptools/_vendor/packaging/_compat.py -> build/lib/setuptools/_vendor/packaging copying setuptools/_vendor/packaging/_structures.py -> build/lib/setuptools/_vendor/packaging copying setuptools/_vendor/packaging/markers.py -> build/lib/setuptools/_vendor/packaging copying setuptools/_vendor/packaging/requirements.py -> build/lib/setuptools/_vendor/packaging copying setuptools/_vendor/packaging/specifiers.py -> build/lib/setuptools/_vendor/packaging copying setuptools/_vendor/packaging/utils.py -> build/lib/setuptools/_vendor/packaging copying setuptools/_vendor/packaging/version.py -> build/lib/setuptools/_vendor/packaging copying setuptools/script (dev).tmpl -> build/lib/setuptools copying setuptools/script.tmpl -> build/lib/setuptools copying setuptools/command/launcher manifest.xml -> build/lib/setuptools/command + sleep 1 + 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/anolis/anolis-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/anolis/anolis-annobin-cc1 -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/anolis/anolis-hardened-ld -specs=/usr/lib/rpm/anolis/anolis-annobin-cc1 -Wl,--build-id=sha1 ' + /usr/bin/python3 setup.py bdist_wheel Traceback (most recent call last): File "/builddir/build/BUILD/setuptools-39.2.0/setup.py", line 11, in import setuptools File "/builddir/build/BUILD/setuptools-39.2.0/setuptools/__init__.py", line 12, in import setuptools.version File "/builddir/build/BUILD/setuptools-39.2.0/setuptools/version.py", line 1, in import pkg_resources File "/builddir/build/BUILD/setuptools-39.2.0/pkg_resources/__init__.py", line 77, in __import__('pkg_resources.extern.packaging.requirements') File "/builddir/build/BUILD/setuptools-39.2.0/pkg_resources/_vendor/packaging/requirements.py", line 9, in from pkg_resources.extern.pyparsing import stringStart, stringEnd, originalTextFor, ParseException File "", line 1027, in _find_and_load File "", line 1006, in _find_and_load_unlocked File "", line 672, in _load_unlocked File "", line 632, in _load_backward_compatible File "/builddir/build/BUILD/setuptools-39.2.0/pkg_resources/extern/__init__.py", line 43, in load_module __import__(extant) File "/builddir/build/BUILD/setuptools-39.2.0/pkg_resources/_vendor/pyparsing.py", line 943, in collections.MutableMapping.register(ParseResults) AttributeError: module 'collections' has no attribute 'MutableMapping' error: Bad exit status from /var/tmp/rpm-tmp.YS53Ce (%build) extra tokens at the end of %endif directive in line 28: %endif # with python2 extra tokens at the end of %endif directive in line 33: %endif # with python3 extra tokens at the end of %endif directive in line 34: %endif # without bootstrap extra tokens at the end of %endif directive in line 28: %endif # with python2 extra tokens at the end of %endif directive in line 33: %endif # with python3 extra tokens at the end of %endif directive in line 34: %endif # without bootstrap extra tokens at the end of %endif directive in line 60: %endif # with py2_wheel extra tokens at the end of %endif directive in line 61: %endif # with python2 extra tokens at the end of %endif directive in line 69: %endif # with tests extra tokens at the end of %endif directive in line 73: %endif # without bootstrap extra tokens at the end of %endif directive in line 74: %endif # with python3 extra tokens at the end of %endif directive in line 100: %endif # with python3 extra tokens at the end of %endif directive in line 110: %endif # with python2 extra tokens at the end of %endif directive in line 122: %endif # with python3 extra tokens at the end of %endif directive in line 132: %endif #with python2 extra tokens at the end of %endif directive in line 133: %endif #with py2_wheel RPM build warnings: RPM build errors: extra tokens at the end of %endif directive in line 141: %endif #with python3 extra tokens at the end of %endif directive in line 142: %endif #with bootstrap extra tokens at the end of %endif directive in line 175: %endif # without bootstrap + py2_wheel extra tokens at the end of %endif directive in line 176: %endif # with python2 extra tokens at the end of %endif directive in line 183: %endif # without bootstrap extra tokens at the end of %endif directive in line 184: %endif # with python3 extra tokens at the end of %endif directive in line 211: %endif # with python3 extra tokens at the end of %endif directive in line 220: %endif #with py2_wheel extra tokens at the end of %endif directive in line 225: %endif # with py2_wheel extra tokens at the end of %endif directive in line 228: %endif # with python2 extra tokens at the end of %endif directive in line 238: %endif #with python2 extra tokens at the end of %endif directive in line 239: %endif #with py2_wheel extra tokens at the end of %endif directive in line 244: %endif #with python3 extra tokens at the end of %endif directive in line 245: %endif #with bootstrap extra tokens at the end of %endif directive in line 255: %endif # with python3 extra tokens at the end of %endif directive in line 256: %endif # with tests extra tokens at the end of %endif directive in line 266: %endif # with python2 extra tokens at the end of %endif directive in line 283: %endif # with python3 extra tokens at the end of %endif directive in line 293: %endif #with python2 extra tokens at the end of %endif directive in line 294: %endif #with py2_wheel extra tokens at the end of %endif directive in line 302: %endif #with python3 extra tokens at the end of %endif directive in line 303: %endif #with bootstrap Bad exit status from /var/tmp/rpm-tmp.YS53Ce (%build) Child return code was: 1 EXCEPTION: [Error()] 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 600, 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 --target x86_64 --nodeps /builddir/build/SPECS/python-setuptools.spec