Bug 148456 - dev-python/django-0.95 install fails - wrong setuptools version
Bug#: 148456 Product:  Gentoo Linux Version: 2006.1 Platform: AMD64
OS/Version: Linux Status: RESOLVED Severity: minor Priority: P2
Resolution: FIXED Assigned To: python@gentoo.org Reported By: sfisher@fusion-labs.com
Component: Ebuilds
URL: 
Summary: dev-python/django-0.95 install fails - wrong setuptools version
Keywords:  
Status Whiteboard: 
Opened: 2006-09-20 23:42 0000
Description:   Opened: 2006-09-20 23:42 0000
Error that I received (with new emerge of setuptools-0.6_rc1):

emerge django
. . .
changing mode of build/scripts-2.4/django-admin.py from 644 to 755
>>> Source compiled.
>>> Test phase [not enabled]: dev-python/django-0.95

>>> Install django-0.95 into /var/tmp/portage/django-0.95/image/ category dev-python
usage: setup.py [global_opts] cmd1 [cmd1_opts] [cmd2 [cmd2_opts] ...]
   or: setup.py --help [cmd1 cmd2 ...]
   or: setup.py --help-commands
   or: setup.py cmd --help

error: option --single-version-externally-managed not recognized

!!! ERROR: dev-python/django-0.95 failed.
Call stack:
  ebuild.sh, line 1546:   Called dyn_install
  ebuild.sh, line 1020:   Called src_install
  django-0.95.ebuild, line 36:   Called distutils_src_install
'--single-version-externally-managed'
  distutils.eclass, line 51:   Called die

!!! (no error message)
!!! If you need support, post the topmost build error, and the call stack if
relevant.


Simple to fix:
  cp /usr/portage/dev-python/setuptools/setuptools-0.6_rc1.ebuild          
     /usr/portage/dev-python/setuptools/setuptools-0.6_rc2.ebuild

  ebuild /usr/portage/dev-python/setuptools/setuptools-0.6_rc2.ebuild digest

  emerge setuptools django

---
My system info:

Portage 2.1.1 (default-linux/amd64/2006.0, gcc-3.4.6, glibc-2.4-r3, 2.6.17.8
x86_64)
=================================================================
System uname: 2.6.17.8 x86_64 AMD Athlon(tm) 64 Processor 3000+
Gentoo Base System version 1.12.5
Last Sync: Mon, 18 Sep 2006 03:30:01 +0000
ccache version 2.3 [enabled]
app-admin/eselect-compiler: [Not Present]
dev-java/java-config: 1.2.11-r1
dev-lang/python:     2.3.5-r2, 2.4.3-r1
dev-python/pycrypto: 2.0.1-r5
dev-util/ccache:     2.3
dev-util/confcache:  [Not Present]
sys-apps/sandbox:    1.2.17
sys-devel/autoconf:  2.13, 2.59-r7
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2
sys-devel/binutils:  2.16.1-r3
sys-devel/gcc-config: 1.3.13-r3
sys-devel/libtool:   1.5.22
virtual/os-headers:  2.6.16
ACCEPT_KEYWORDS="amd64"
AUTOCLEAN="yes"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=athlon64 -mtune=k8 -O2 -pipe -fomit-frame-pointer -msse -msse2
-mmmx -m3dnow -ffast-math"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/3.3/env /usr/kde/3.3/share/config
/usr/kde/3.3/shutdown /usr/kde/3.4/env /usr/kde/3.4/share/config
/usr/kde/3.4/shutdown /usr/kde/3.5/env /usr/kde/3.5/share/config
/usr/kde/3.5/shutdown /usr/lib64/mozilla/defaults/pref /usr/share/X11/xkb
/usr/share/config /usr/share/texmf/dvipdfm/config/
/usr/share/texmf/dvips/config/ /usr/share/texmf/tex/generic/config/
/usr/share/texmf/tex/platex/config/ /usr/share/texmf/xdvi/"
CONFIG_PROTECT_MASK="/etc/env.d /etc/gconf /etc/revdep-rebuild /etc/terminfo"
CXXFLAGS="-march=athlon64 -mtune=k8 -O2 -pipe -fomit-frame-pointer -msse -msse2
-mmmx -m3dnow -ffast-math"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig ccache confcache distlocks metadata-transfer
parallel-fetch sandbox sfperms strict"
GENTOO_MIRRORS="http://distfiles.gentoo.org
http://distro.ibiblio.org/pub/linux/distributions/gentoo"
LINGUAS=""
MAKEOPTS="-j3"
PKGDIR="/usr/portage/packages"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress
--force --whole-file --delete --delete-after --stats --timeout=180
--exclude='/distfiles' --exclude='/local' --exclude='/packages'"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="amd64 X a52 acpi alsa apache2 avi bash-completion berkdb bitmap-fonts
bluetooth cli crypt css cups dbus dlloader dri dvd dvdr dvdread eds elibc_glibc
emboss emul-linux-x86 encode foomaticdb fortran gif gnome gpm gstreamer gtk
gtk2 imlib input_devices_keyboard input_devices_mouse ipv6 isdnlog jpeg kde
kernel_linux lame live lzo lzw lzw-tiff mad mjpeg mono mp3 mpeg mpeg2 mplayer
ncurses network nls nptl nptlonly opengl pam pcre pdflib perl png pppd python
qt3 qt4 quicktime readline reflection rtc sdl session spell spl ssl tcpd tiff
truetype-fonts type1-fonts unicode usb userland_GNU video_cards_fbdev
video_cards_nv video_cards_nvidia video_cards_vesa xorg xosd xpm xv zlib"
Unset:  CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LC_ALL, LDFLAGS,
PORTAGE_RSYNC_EXTRA_OPTS

------- Comment #1 From Justin Patrin 2006-10-04 15:43:30 0000 -------
I'm seeing a similar but more nice error:

>>> Emerging (5 of 5) dev-python/django-0.95 to /
...
>>> Compiling source in /var/tmp/portage/django-0.95/work/Django-0.95 ...
The required version of setuptools (>=0.6c1) is not available, and
can't be installed while this script is running. Please install
 a more recent version first.

This is odd since "emerge --search setuptools" tells me:
*  dev-python/setuptools
      Latest version available: 0.6_rc3
      Latest version installed: 0.6_rc3

Which is 0.6c3.

------- Comment #2 From Tiziano Müller 2006-12-29 17:50:49 0000 -------
Ok, should be fixed now. As far as I can tell the problem lies in the import of
that ez_setup.py crap. A small sed-line removes this. Changed the dependency
for setuptools to 0.6.1_rc3.