Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 284559 - dev-python/setuptools-0.6.1 Distribution instance has no attribute 'exclude_package_data'
Summary: dev-python/setuptools-0.6.1 Distribution instance has no attribute 'exclude_p...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High normal
Assignee: Python Gentoo Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-09-11 07:47 UTC by Roy Wright
Modified: 2009-09-15 18:26 UTC (History)
0 users

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Roy Wright 2009-09-11 07:47:01 UTC
With setuptools-0.6-r1, calibre-0.6.11 installs fine.  But with setuptools-0.6.1, calibre-0.6.11 installation fails with:
----------
running build_ext                                                                                                          
Traceback (most recent call last):                                                                                         
  File "setup.py", line 288, in <module>                                                                                   
    'betas'  : betas,                                                                                                      
  File "/usr/lib/python2.6/distutils/core.py", line 152, in setup                                                          
    dist.run_commands()                                                                                                    
  File "/usr/lib/python2.6/distutils/dist.py", line 975, in run_commands                                                   
    self.run_command(cmd)                                                                                                  
  File "/usr/lib/python2.6/distutils/dist.py", line 995, in run_command                                                    
    cmd_obj.run()                                                                                                          
  File "/usr/lib/python2.6/distutils/command/build.py", line 134, in run                                                   
    self.run_command(cmd_name)                                                                                             
  File "/usr/lib/python2.6/distutils/cmd.py", line 333, in run_command                                                     
    self.distribution.run_command(command)                                                                                 
  File "/usr/lib/python2.6/distutils/dist.py", line 995, in run_command                                                    
    cmd_obj.run()
  File "/usr/lib/python2.6/distutils/command/build_ext.py", line 345, in run
    self.build_extensions()
  File "/usr/lib/python2.6/distutils/command/build_ext.py", line 471, in build_extensions
    self.build_extension(ext)
  File "/var/tmp/portage/app-text/calibre-0.6.11/work/calibre-0.6.11/pyqtdistutils.py", line 159, in build_extension
    build_py = self.get_finalized_command('build_py')
  File "/usr/lib/python2.6/distutils/cmd.py", line 319, in get_finalized_command
    cmd_obj.ensure_finalized()
  File "/usr/lib/python2.6/distutils/cmd.py", line 117, in ensure_finalized
    self.finalize_options()
  File "/usr/lib/python2.6/site-packages/setuptools/command/build_py.py", line 18, in finalize_options
    self.exclude_package_data = self.distribution.exclude_package_data or {}
AttributeError: Distribution instance has no attribute 'exclude_package_data'
--------

To recreate failure:

emerge -1 =dev-python/setuptools-0.6.1
emerge -1 =app-text/calibre-0.6.11

Workaround:

echo "=dev-python/setuptools-0.6.1" >> /etc/portage/package.mask/monolithic
emerge -1 =dev-python/setuptools-0.6-r1
emerge -1 =app-text/calibre-0.6.11

---------

BTW, I'm running python-2.6 and I did run "python-updater -v" which did not change the failure mode.

---------

emerge --info
Portage 2.2_rc40 (default/linux/x86/2008.0, gcc-4.4.1, glibc-2.10.1-r0, 2.6.30-gentoo-r1 i686)
=================================================================                             
System uname: Linux-2.6.30-gentoo-r1-i686-Intel-R-_Core-TM-2_Quad_CPU_Q9300_@_2.50GHz-with-gentoo-2.0.1
Timestamp of tree: Thu, 10 Sep 2009 07:45:01 +0000                                                     
distcc 3.1 i686-pc-linux-gnu [disabled]                                                                
ccache version 2.4 [enabled]                                                                           
app-shells/bash:     4.0_p33                                                                           
dev-java/java-config: 2.1.9                                                                            
dev-lang/python:     2.6.2-r1, 3.1.1                                                                   
dev-util/ccache:     2.4-r8                                                                            
dev-util/cmake:      2.6.4-r2
sys-apps/baselayout: 2.0.1
sys-apps/openrc:     0.4.3-r3
sys-apps/sandbox:    2.1
sys-devel/autoconf:  2.13, 2.63-r1
sys-devel/automake:  1.8.5-r3, 1.9.6-r2, 1.10.2, 1.11
sys-devel/binutils:  2.19.1-r1
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=i686 -pipe"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /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/splash /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=i686 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="assume-digests ccache distlocks fixpackages parallel-fetch preserve-libs protect-owned sandbox sfperms strict unmerge-logs unmerge-orphans userfetch"
GENTOO_MIRRORS="http://gentoo.osuosl.org/ http://mirror.fslutd.org/linux/distributions/gentoo/ "
LANG="en_US.UTF-8"
LDFLAGS="-Wl,-O1"
LINGUAS="en en_US"
MAKEOPTS="-j9"
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/kde-testing /usr/portage/local/layman/sunrise /usr/portage/local"
SYNC="rsync://rsync.namerica.gentoo.org/gentoo-portage"
USE="X a52 aac acl alsa ao apache2 arts artswrappersuid aspell audiofile avahi bash-completion bidi bonjour bsf bzip2 cairo calendar caps cdda cddb cdio cdparanoia cdr cli consolekit cracklib crypt css cups curl cvs cxx dbus doc dri dts dv dvd dvdr dvdread encode esd examples exif expat faad fbcondecor ffmpeg flac font-server fontconfig foomaticdb fortran freetype ftp fuse gcj gd gdbm geoip geos gif gimp git glep glitz gnome gnutls gphoto2 gpm graphviz gtk hal howl-compat htmlhandbook httpd iconv icq imagemagick imap imlib ipod isdnlog jabber jack jadetex java java6 javascript jpeg jpeg2k json kde kdehiddenvisibility kerberos lame lash ldap libnotify libwww live lm_sensors logitech-mouse lzo mad mailwrapper matroska mbox mdnsresponder-compat mime mjpeg mng mod mozilla mp3 mpeg mplayer mudflap multislot musepack mysql mysqli nas ncurses networkmanager nfs nls nptlonly nsplugin nvidia objc ocaml ogg oggvorbis openal opengl openmp pam pcre pdf pdo perl php plotutils png postgis pppd proj python qt3support qt4 raw rdesktop readline reflection rss ruby sasl screen sdl session soap sockets sox spell spl ssl stream streamout subversion svg sysfs syslog szip taglib tcl tcpd theora tidy tiff timidity tk tokenizer tordns truetype type1 unicode usb utempter utils v4l2 vcd vim-pager vim-syntax vim-with-x vlm vnc vorbis wavpack webkit win32codecs wmf wxwindows x11 x264 x86 xcomposite xine xml xorg xpm xulrunner xv xvid xvmc zeroconf 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" APACHE2_MPMS="prefork" ELIBC="glibc" INPUT_DEVICES="keyboard mouse" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="en en_US" NETBEANS_MODULES="*" USERLAND="GNU" VIDEO_CARDS="nvidia"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, LC_ALL, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 1 Arfrever Frehtes Taifersar Arahesis (RETIRED) gentoo-dev 2009-09-15 16:55:51 UTC
Try with 0.6.1-r1.
Comment 2 Roy Wright 2009-09-15 17:57:29 UTC
setuptool-0.6.1-r1 resolved the problem.  OK to close as resolved.

Thank you!
Comment 3 Arfrever Frehtes Taifersar Arahesis (RETIRED) gentoo-dev 2009-09-15 18:26:52 UTC
(In reply to comment #2)
> setuptool-0.6.1-r1 resolved the problem.  OK to close as resolved.

Thanks for testing.