Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 292095 - dev-python/setuptools: Distribute shouldn't import functions used for patching Setuptools which would not be performed anyway due to use of --root option in distutils_src_install()
Summary: dev-python/setuptools: Distribute shouldn't import functions used for patchin...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Development (show other bugs)
Hardware: All All
: High minor (vote)
Assignee: Python Gentoo Team
URL:
Whiteboard:
Keywords:
: 292094 292162 292168 292197 292259 292386 (view as bug list)
Depends on:
Blocks:
 
Reported: 2009-11-06 14:07 UTC by Vitaly Demyanec
Modified: 2009-11-08 18:11 UTC (History)
8 users (show)

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


Attachments
build log of setuptools-0.6.8 (build.log,15.45 KB, text/plain)
2009-11-06 17:23 UTC, Alexander Nigl
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Vitaly Demyanec 2009-11-06 14:07:07 UTC
Build log:

>>> Emerging (1 of 16) dev-python/setuptools-0.6.8
>>> Downloading 'http://ftp.uni-erlangen.de/pub/mirrors/gentoo/distfiles/distribute-0.6.8.tar.gz'
--2009-11-06 15:50:21--  http://ftp.uni-erlangen.de/pub/mirrors/gentoo/distfiles/distribute-0.6.8.tar.gz
Connecting to 192.168.0.220:3128... connected.
Proxy request sent, awaiting response... 200 OK
Length: 390582 (381K) [application/gzip]
Saving to: “/usr/portage/distfiles/distribute-0.6.8.tar.gz”

100%[======================================>] 390,582      309K/s   in 1.2s

2009-11-06 15:50:22 (309 KB/s) - “/usr/portage/distfiles/distribute-0.6.8.tar.gz” saved [390582/390582]

 * distribute-0.6.8.tar.gz RMD160 SHA1 SHA256 size ;-) ...               [ ok ]
 * checking ebuild checksums ;-) ...                                     [ ok ]
 * checking auxfile checksums ;-) ...                                    [ ok ]
 * checking miscfile checksums ;-) ...                                   [ ok ]
>>> Unpacking source...
>>> Unpacking distribute-0.6.8.tar.gz to /var/tmp/portage/dev-python/setuptools-0.6.8/work
>>> Source unpacked in /var/tmp/portage/dev-python/setuptools-0.6.8/work
>>> Preparing source in /var/tmp/portage/dev-python/setuptools-0.6.8/work/distribute-0.6.8 ...
 * Applying setuptools-0.6_rc7-noexe.patch ...                            [ ok ]
>>> Source prepared.
>>> Configuring source in /var/tmp/portage/dev-python/setuptools-0.6.8/work/distribute-0.6.8 ...
>>> Source configured.
>>> Compiling source in /var/tmp/portage/dev-python/setuptools-0.6.8/work/distribute-0.6.8 ...
 * Building of dev-python/setuptools-0.6.8 with Python 2.6...
python2.6 setup.py build -b build-2.6
/usr/lib64/python2.6/site-packages/Pyrex/Compiler/Errors.py:17: DeprecationWarning: BaseException.message has been deprecated as of Python 2.6
  self.message = message
running build
running build_py
creating build-2.6
creating build-2.6/lib
copying pkg_resources.py -> build-2.6/lib
copying easy_install.py -> build-2.6/lib
copying site.py -> build-2.6/lib
creating build-2.6/lib/setuptools
copying setuptools/archive_util.py -> build-2.6/lib/setuptools
copying setuptools/__init__.py -> build-2.6/lib/setuptools
copying setuptools/dist.py -> build-2.6/lib/setuptools
copying setuptools/package_index.py -> build-2.6/lib/setuptools
copying setuptools/extension.py -> build-2.6/lib/setuptools
copying setuptools/depends.py -> build-2.6/lib/setuptools
copying setuptools/sandbox.py -> build-2.6/lib/setuptools
creating build-2.6/lib/setuptools/tests
copying setuptools/tests/test_resources.py -> build-2.6/lib/setuptools/tests
copying setuptools/tests/__init__.py -> build-2.6/lib/setuptools/tests
copying setuptools/tests/test_easy_install.py -> build-2.6/lib/setuptools/tests
copying setuptools/tests/test_develop.py -> build-2.6/lib/setuptools/tests
copying setuptools/tests/test_build_ext.py -> build-2.6/lib/setuptools/tests
copying setuptools/tests/doctest.py -> build-2.6/lib/setuptools/tests
creating build-2.6/lib/setuptools/command
copying setuptools/command/rotate.py -> build-2.6/lib/setuptools/command
copying setuptools/command/install.py -> build-2.6/lib/setuptools/command
copying setuptools/command/bdist_egg.py -> build-2.6/lib/setuptools/command
copying setuptools/command/__init__.py -> build-2.6/lib/setuptools/command
copying setuptools/command/saveopts.py -> build-2.6/lib/setuptools/command
copying setuptools/command/install_egg_info.py -> build-2.6/lib/setuptools/command
copying setuptools/command/test.py -> build-2.6/lib/setuptools/command
copying setuptools/command/develop.py -> build-2.6/lib/setuptools/command
copying setuptools/command/bdist_rpm.py -> build-2.6/lib/setuptools/command
copying setuptools/command/alias.py -> build-2.6/lib/setuptools/command
copying setuptools/command/register.py -> build-2.6/lib/setuptools/command
copying setuptools/command/build_py.py -> build-2.6/lib/setuptools/command
copying setuptools/command/sdist.py -> build-2.6/lib/setuptools/command
copying setuptools/command/bdist_wininst.py -> build-2.6/lib/setuptools/command
copying setuptools/command/upload.py -> build-2.6/lib/setuptools/command
copying setuptools/command/build_ext.py -> build-2.6/lib/setuptools/command
copying setuptools/command/upload_docs.py -> build-2.6/lib/setuptools/command
copying setuptools/command/egg_info.py -> build-2.6/lib/setuptools/command
copying setuptools/command/install_scripts.py -> build-2.6/lib/setuptools/command
copying setuptools/command/install_lib.py -> build-2.6/lib/setuptools/command
copying setuptools/command/setopt.py -> build-2.6/lib/setuptools/command
copying setuptools/command/easy_install.py -> build-2.6/lib/setuptools/command
>>> Source compiled.
>>> Test phase [not enabled]: dev-python/setuptools-0.6.8

>>> Install setuptools-0.6.8 into /var/tmp/portage/dev-python/setuptools-0.6.8/image/ category dev-python
 * Installation of dev-python/setuptools-0.6.8 with Python 2.6...
python2.6 setup.py build -b build-2.6 install --root=/var/tmp/portage/dev-python/setuptools-0.6.8/image/ --no-compile
/usr/lib64/python2.6/site-packages/Pyrex/Compiler/Errors.py:17: DeprecationWarning: BaseException.message has been deprecated as of Python 2.6
  self.message = message
Traceback (most recent call last):
  File "setup.py", line 87, in <module>
    from distribute_setup import _before_install
ImportError: cannot import name _before_install
 *
 * ERROR: dev-python/setuptools-0.6.8 failed.
 * Call stack:
 *               ebuild.sh, line   49:  Called src_install
 *             environment, line 3188:  Called distutils_src_install
 *             environment, line  804:  Called python_execute_function 'installation'
 *             environment, line 2839:  Called die
 * The specific snippet of code:
 *                       die "${failure_message}";
 *  The die message:
 *   Installation failed with Python 2.6 in installation() function
 *
 * If you need support, post the topmost build error, and the call stack if relevant.
 * A complete build log is located at '/var/tmp/portage/dev-python/setuptools-0.6.8/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/dev-python/setuptools-0.6.8/temp/environment'.
 *
Comment 1 Vitaly Demyanec 2009-11-06 14:08:45 UTC
# emerge --info
Portage 2.1.6.13 (default/linux/amd64/10.0/desktop, gcc-4.3.4, glibc-2.9_p20081201-r2, 2.6.30-gentoo-r5 x86_64)
=================================================================
System uname: Linux-2.6.30-gentoo-r5-x86_64-Intel-R-_Core-TM-2_Duo_CPU_E6550_@_2.33GHz-with-gentoo-1.12.11.1
Timestamp of tree: Fri, 06 Nov 2009 08:15:01 +0000
app-shells/bash:     4.0_p28
dev-java/java-config: 2.1.9-r1
dev-lang/python:     2.6.2-r1
dev-util/cmake:      2.6.4-r3
sys-apps/baselayout: 1.12.11.1
sys-apps/sandbox:    1.6-r2
sys-devel/autoconf:  2.13, 2.63-r1
sys-devel/automake:  1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10.2
sys-devel/binutils:  2.18-r3
sys-devel/gcc-config: 1.4.1
sys-devel/libtool:   2.2.6a
virtual/os-headers:  2.6.27-r2
ACCEPT_KEYWORDS="amd64"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=native -mtune=native -O2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/share/config"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo /etc/udev/rules.d"
CXXFLAGS="-march=native -mtune=native -O2 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="distlocks fixpackages parallel-fetch protect-owned sandbox sfperms strict unmerge-orphans userfetch"
GENTOO_MIRRORS="http://ftp.uni-erlangen.de/pub/mirrors/gentoo/"
LANG="ru_RU.UTF-8"
LC_ALL=""
LDFLAGS="-Wl,-O1"
LINGUAS="ru en en_US en_GB"
MAKEOPTS="-j3"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/portage/local/layman/sajinet"
SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage"
USE="X a52 aac acl acpi akode alsa amd64 amrnb amrwb berkdb branding bzip2 cairo cdr cli consolekit cracklib crypt dbus dri dts dvd dvdr eds emboss encode evo fam firefox flac gdbm gif gpm gstreamer gtk hal iconv jpeg jpeg2k kde kdeenablefinal ldap libnotify mad mikmod mmx modules mp2 mp3 mp4 mpeg mudflap multilib ncurses nls nptl nptlonly ogg opengl openmp pam pcre pdf perl png ppds pppd python qt3 qt3support qt4 quicktime readline reflection samba sdl session spell spl sse sse2 sse3 ssl ssse3 startup-notification svg sysfs tcpd theora thunar tiff truetype unicode usb vorbis x264 xml xorg xulrunner xv xvid zlib" ALSA_CARDS="hda-intel" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mmap_emul mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" ELIBC="glibc" INPUT_DEVICES="evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="ru en en_US en_GB" USERLAND="GNU" VIDEO_CARDS="nvidia"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS

Comment 2 Alexander Nigl 2009-11-06 17:19:51 UTC
can confirm that bug.
Theres is no module distribute_setup in the pythonpath.

# emerge --info                                                                    
Portage 2.1.7.3 (default/linux/x86/10.0, gcc-4.3.4, glibc-2.10.1-r0, 2.6.30-gentoo-r2 i686)      
=================================================================                                
System uname: Linux-2.6.30-gentoo-r2-i686-Intel-R-_Core-TM-2_Duo_CPU_P8600_@_2.40GHz-with-gentoo-2.0.1                                                                                            
Timestamp of tree: Fri, 06 Nov 2009 14:30:01 +0000                                               
app-shells/bash:     4.0_p35                                                                     
dev-java/java-config: 1.3.7-r1, 2.1.9-r1                                                         
dev-lang/python:     2.4.6, 2.5.4-r2, 2.6.3, 3.1.1-r1                                            
dev-python/pycrypto: 2.0.1-r8                                                                    
dev-util/cmake:      2.6.4-r3                                                                    
sys-apps/baselayout: 2.0.1                                                                       
sys-apps/openrc:     0.5.2-r1                                                                    
sys-apps/sandbox:    2.2                                                                         
sys-devel/autoconf:  2.13, 2.63-r1                                                               
sys-devel/automake:  1.5, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10.2, 1.11                             
sys-devel/binutils:  2.20                                                                        
sys-devel/gcc-config: 1.4.1                                                                      
sys-devel/libtool:   2.2.6a                                                                      
virtual/os-headers:  2.6.30-r1                                                                   
ACCEPT_KEYWORDS="x86 ~x86"                                                                       
CBUILD="i686-pc-linux-gnu"                                                                       
CFLAGS="-O2 -march=core2 -msse4.1 -pipe -fomit-frame-pointer"                                    
CHOST="i686-pc-linux-gnu"                                                                        
CONFIG_PROTECT="/etc /usr/share/X11/xkb /usr/share/config /var/lib/hsqldb"                       
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/eselect/postgresql /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/php/apache2-php5/ext-active/ /etc/php/cgi-php5/ext-active/ /etc/php/cli-php5/ext-active/ /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c /etc/udev/rules.d"                                                                                   
CXXFLAGS="-O2 -march=core2 -msse4.1 -pipe -fomit-frame-pointer"                                  
DISTDIR="/usr/portage/distfiles"                                                                 
FEATURES="assume-digests distlocks fixpackages news parallel-fetch protect-owned sandbox sfperms strict unmerge-logs unmerge-orphans userfetch"                                                   
GENTOO_MIRRORS="http://distfiles.gentoo.org http://distro.ibiblio.org/pub/linux/distributions/gentoo"                                                                                             
LANG="de_DE.utf8"                                                                                
LDFLAGS="-Wl,-O1"                                                                                
LINGUAS="de"                                                                                     
MAKEOPTS="-j3"                                                                                   
PKGDIR="/usr/portage/packages"                                                                   
PORTAGE_CONFIGROOT="/"                                                                           
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"    
PORTAGE_TMPDIR="/var/tmp"                                                                        
PORTDIR="/usr/portage"                                                                           
PORTDIR_OVERLAY="/usr/local/portage/layman/sunrise /usr/local/portage"                           
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="X acl acpi alsa berkdb bluetooth bzip2 cli cracklib crypt cups dbus dri fortran gdbm gif gpm hal iconv ipv6 jpeg jpeg2k kde mmx modules mudflap ncurses nls nptl nptlonly opengl openmp pam pcre perl png pppd python qt3support readline reflection session smp spl sse sse2 ssl ssse3 svg sysfs tcpd truetype unicode x86 xinerama xorg zlib" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1 emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mmap_emul mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" ELIBC="glibc" INPUT_DEVICES="evdev synaptics" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="de" USERLAND="GNU" VIDEO_CARDS="intel vesa radeon radeonhd"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, LC_ALL, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 3 Alexander Nigl 2009-11-06 17:23:31 UTC
Created attachment 209443 [details]
build log of setuptools-0.6.8
Comment 4 Alexander Nigl 2009-11-06 17:35:32 UTC
#292094 seems to be the same problem
Comment 5 Arfrever Frehtes Taifersar Arahesis (RETIRED) gentoo-dev 2009-11-06 17:48:18 UTC
Fixed.
Comment 6 Arfrever Frehtes Taifersar Arahesis (RETIRED) gentoo-dev 2009-11-06 17:49:47 UTC
*** Bug 292094 has been marked as a duplicate of this bug. ***
Comment 7 Armando Di Cianno 2009-11-06 18:00:49 UTC
Can you post the fix here so I can fix my tree without waiting for the mirrors to sync, please?  I just did an emerge --sync, and there was no change.  Thanks.
Comment 8 Arfrever Frehtes Taifersar Arahesis (RETIRED) gentoo-dev 2009-11-06 18:55:30 UTC
*** Bug 292162 has been marked as a duplicate of this bug. ***
Comment 9 Rafał Mużyło 2009-11-06 21:09:42 UTC
*** Bug 292168 has been marked as a duplicate of this bug. ***
Comment 10 tangram 2009-11-06 21:49:53 UTC
For reason of this error I tried to update python to higher version.
My available python versions are:
{
eix -c dev-lang/python
[U] dev-lang/python (2.6.3(2.6)@07.10.2009.
3.1.1-r1(3.1)@23.09.2009 -> 2.4.6(2.4) 2.5.4-r3(2.5) (~)2.6.4(2.6) (~)3.1.1-r1(3.1)): Python is an in
}

eselect python update
python-update
and python-update step ends with error:
{
src/ieee1284module.c:631: error: 'Parport_methods' undeclared (first use in this function)src/ieee128
src/ieee1284module.c:638: error: 'NULL' undeclared (first use in this function)
make: *** [src/src_ieee1284module_la-ieee1284module.lo] Błąd 1
make: *** Oczekiwanie na niezakończone zadania....
 i686-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I. -I./include -I./include -O2 -march=pentium2 -pipe -MT
 * ERROR: sys-libs/libieee1284-0.2.11 failed:
 *   emake failed
 *
 * Call stack:
 *     ebuild.sh, line  55:  Called src_compile
 *   environment, line 142:  Called _eapi0_src_compile
 *     ebuild.sh, line 601:  Called _eapi2_src_compile
 *     ebuild.sh, line 635:  Called die
 * The specific snippet of code:
 *              emake || die "emake failed"
 *
 * If you need support, post the output of 'emerge --info =sys-libs/libieee1284-0.2.11',
 * the complete build log and the output of 'emerge -pqv =sys-libs/libieee1284-0.2.11'.
 * The complete build log is located at '/var/tmp/portage/sys-libs/libieee1284-0.2.11/temp/build.log'
 * The ebuild environment file is located at '/var/tmp/portage/sys-libs/libieee1284-0.2.11/temp/envir
 * S: '/var/tmp/portage/sys-libs/libieee1284-0.2.11/work/libieee1284-0.2.11'

>>> Failed to emerge sys-libs/libieee1284-0.2.11, Log file:

Should leave it as is and resync portage tree ?
Comment 11 Jacek 2009-11-06 22:25:01 UTC
After 'emerge --sync' it is compiling fine.
Comment 12 Rafał Mużyło 2009-11-07 00:06:57 UTC
*** Bug 292197 has been marked as a duplicate of this bug. ***
Comment 13 Rafał Mużyło 2009-11-07 15:29:09 UTC
*** Bug 292259 has been marked as a duplicate of this bug. ***
Comment 14 Arfrever Frehtes Taifersar Arahesis (RETIRED) gentoo-dev 2009-11-08 14:38:25 UTC
*** Bug 292386 has been marked as a duplicate of this bug. ***