Created attachment 309579 [details] full build log >>> Compiling source in /var/tmp/portage/dev-python/egenix-mx-base-3.2.3/work/egenix-mx-base-3.2.3 ... * Building of dev-python/egenix-mx-base-3.2.3 with CPython 2.7... python2.7 setup.py build -b build-2.7 Traceback (most recent call last): File "setup.py", line 9, in <module> import egenix_mx_base File "/var/tmp/portage/dev-python/egenix-mx-base-3.2.3/work/egenix-mx-base-3.2.3/egenix_mx_base.py", line 11, in <module> from mxSetup import mx_Extension, mx_version File "/var/tmp/portage/dev-python/egenix-mx-base-3.2.3/work/egenix-mx-base-3.2.3/mxSetup.py", line 318, in <module> from distutils.ccompiler import customize_compiler ImportError: cannot import name customize_compiler [31;01m*[0m ERROR: dev-python/egenix-mx-base-3.2.3 failed (compile phase): [31;01m*[0m Building failed with CPython 2.7 in distutils_building() function [31;01m*[0m [31;01m*[0m Call stack: [31;01m*[0m ebuild.sh, line 85: Called src_compile [31;01m*[0m environment, line 5129: Called distutils_src_compile [31;01m*[0m environment, line 1205: Called python_execute_function 'distutils_building' [31;01m*[0m environment, line 3429: Called die [31;01m*[0m The specific snippet of code: [31;01m*[0m die "${failure_message}"; [31;01m*[0m
Created attachment 309581 [details] emerge --info output
*** Bug 412611 has been marked as a duplicate of this bug. ***
How did you manage this? Two of you in 2 days. archtester egenix-mx-base # ebuild egenix-mx-base-3.2.3.ebuild clean install Writing /mnt/gen2/TmpDir/portage/dev-python/egenix-mx-base-3.2.3/temp/images/2.7/usr/lib64/python2.7/site-packages/egenix_mx_base-3.2.3-py2.7.egg-info >>> Completed installing egenix-mx-base-3.2.3 into /mnt/gen2/TmpDir/portage/dev-python/egenix-mx-base-3.2.3/image/ archtester egenix-mx-base # ls -ld /usr/lib64/python2.5/distutils/ccompiler.py -rw-r--r-- 1 root root 52191 Feb 5 19:07 /usr/lib64/python2.5/distutils/ccompiler.py archtester egenix-mx-base # ls -ld /usr/lib64/python2.6/distutils/ccompiler.py -rw-r--r-- 1 root root 48863 Feb 8 20:17 /usr/lib64/python2.6/distutils/ccompiler.py archtester egenix-mx-base # ls -ld /usr/lib64/python2.7/distutils/ccompiler.py -rw-r--r-- 1 root root 49098 Apr 20 09:22 /usr/lib64/python2.7/distutils/ccompiler.py archtester egenix-mx-base # ls -ld /usr/lib64/python3.1/distutils/ccompiler.py -rw-r--r-- 1 root root 47577 Apr 4 15:52 /usr/lib64/python3.1/distutils/ccompiler.py archtester egenix-mx-base # ls -ld /usr/lib64/python3.2/distutils/ccompiler.py -rw-r--r-- 1 root root 47554 Apr 4 15:49 /usr/lib64/python3.2/distutils/ccompiler.py # grep customize_compiler /usr/lib64/python2.5/distutils/ccompiler.py # grep customize_compiler /usr/lib64/python2.6/distutils/ccompiler.py # grep customize_compiler /usr/lib64/python2.7/distutils/ccompiler.py def customize_compiler(compiler): # grep customize_compiler /usr/lib64/python3.1/distutils/ccompiler.py # grep customize_compiler /usr/lib64/python3.2/distutils/ccompiler.py So customize_compiler is defined in /usr/lib64/python2.7/distutils/ccompiler.py egenix-mx-base # USE_PYTHON=2.5 ebuild egenix-mx-base-3.2.3.ebuild install egenix-mx-base # USE_PYTHON=2.6 ebuild egenix-mx-base-3.2.3.ebuild install egenix-mx-base # USE_PYTHON=2.7 ebuild egenix-mx-base-3.2.3.ebuild install ALL work. egenix-mx-base # USE_PYTHON=3.1 ebuild egenix-mx-base-3.2.3.ebuild clean install can't work because python3 is restricted. I can only figure you've somehow lost your customize_compiler def in distutils, which is at face value absurd. Check with # grep customize_compiler /usr/lib64/python2.7/distutils/ccompiler.py
*** This bug has been marked as a duplicate of bug 412611 ***