Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 412739 - dev-python/egenix-mx-base-3.2.3 ImportError: cannot import name customize_compiler
Summary: dev-python/egenix-mx-base-3.2.3 ImportError: cannot import name customize_com...
Status: RESOLVED DUPLICATE of bug 412611
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo Linux bug wranglers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-04-20 05:11 UTC by Anton Kochkov
Modified: 2012-04-23 10:48 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
full build log (egenix-mx-base-3.2.3-build.log,2.53 KB, text/plain)
2012-04-20 05:11 UTC, Anton Kochkov
Details
emerge --info output (emerge-info.log,3.34 KB, text/plain)
2012-04-20 05:11 UTC, Anton Kochkov
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Anton Kochkov 2012-04-20 05:11:13 UTC
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
Comment 1 Anton Kochkov 2012-04-20 05:11:34 UTC
Created attachment 309581 [details]
emerge --info output
Comment 2 Ian Delaney (RETIRED) gentoo-dev 2012-04-23 03:39:51 UTC
*** Bug 412611 has been marked as a duplicate of this bug. ***
Comment 3 Ian Delaney (RETIRED) gentoo-dev 2012-04-23 03:59:43 UTC
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
Comment 4 Ian Delaney (RETIRED) gentoo-dev 2012-04-23 10:48:56 UTC

*** This bug has been marked as a duplicate of bug 412611 ***