Created attachment 499862 [details] emerge --info * Package: dev-python/cryptography-2.1.1 * Repository: gentoo * Maintainer: python@gentoo.org * USE: abi_x86_64 amd64 elibc_glibc kernel_linux python_targets_python2_7 python_targets_python3_6 userland_GNU * FEATURES: preserve-libs sandbox userpriv usersandbox * python3_6: running distutils-r1_run_phase python_configure_all * python2_7: running distutils-r1_run_phase distutils-r1_python_compile /usr/bin/python2.7 setup.py build error in cryptography setup command: Invalid environment marker: python_version < '3' * ERROR: dev-python/cryptography-2.1.1::gentoo failed (compile phase): * (no error message) * * Call stack: * ebuild.sh, line 124: Called src_compile * environment, line 4088: Called distutils-r1_src_compile * environment, line 1137: Called _distutils-r1_run_foreach_impl 'distutils-r1_python_compile' * environment, line 349: Called python_foreach_impl 'distutils-r1_run_phase' 'distutils-r1_python_compile' * environment, line 3548: Called multibuild_foreach_variant '_python_multibuild_wrapper' 'distutils-r1_run_phase' 'distutils-r1_python_compile' * environment, line 2643: Called _multibuild_run '_python_multibuild_wrapper' 'distutils-r1_run_phase' 'distutils-r1_python_compile' * environment, line 2641: Called _python_multibuild_wrapper 'distutils-r1_run_phase' 'distutils-r1_python_compile' * environment, line 698: Called distutils-r1_run_phase 'distutils-r1_python_compile' * environment, line 1128: Called distutils-r1_python_compile * environment, line 1003: Called esetup.py 'build' * environment, line 1688: Called die * The specific snippet of code: * "${@}" || die "${die_args[@]}"; * * If you need support, post the output of `emerge --info '=dev-python/cryptography-2.1.1::gentoo'`, * the complete build log and the output of `emerge -pqv '=dev-python/cryptography-2.1.1::gentoo'`. * The complete build log is located at '/tmp/.portage/dev-python:cryptography-2.1.1:20171024-174528.log'. * For convenience, a symlink to the build log is located at '/tmp/.portage/portage/dev-python/cryptography-2.1.1/temp/build.log'. * The ebuild environment file is located at '/tmp/.portage/portage/dev-python/cryptography-2.1.1/temp/environment'. * Working directory: '/tmp/.portage/portage/dev-python/cryptography-2.1.1/work/cryptography-2.1.1' * S: '/tmp/.portage/portage/dev-python/cryptography-2.1.1/work/cryptography-2.1.1'
You probably have some other broken package installed. Try grepping for that string in /usr/lib64/python2.7/site-packages/*/requires.txt.
grep python_version /usr/lib64/python2.7/site-packages/*/requires.txt /usr/lib64/python2.7/site-packages/requests-2.18.4-py2.7.egg-info/requires.txt:[socks:sys_platform == "win32" and (python_version == "2.7" or python_version == "2.6")]
eselect python list Available Python interpreters, in order of preference: [1] python3.6 [2] python2.7
What version of python:2.7 and setuptools do you have installed? If they are out of date, please try upgrading to the latest ~arch versions.
dev-lang/python (2.7) 2.7.14 (3.6) (~)3.6.3(3.6/3.6m) dev-python/setuptools (~)36.6.0 PYTHON_TARGETS="python2_7 python3_6"
cryptography-2.0.3 builds no problems
Sorry, but I am unable to reproduce this.
The same for the now released 2.1.2
*** Bug 630536 has been marked as a duplicate of this bug. ***
Perhaps you have some other version of setuptools installed via a method outside of portage's control. Look for setuptools*.egg-info in /usr/lib64/python2.7/site-packages.
There was a setuptools-15.2-py2.7.egg , what do these egg files do?
It's a zip file containing an old version of setuptools. I suggest removing it.