Hello,
I have a Sage 4.5.3 installed, with the Distribute (a kind of improved
setuptools?) package installed in there. Now, when I upgrade, Sage
insists on reinstalling setuptools 0.6c9, which is incompatible with
Distribute. The latest release 0.6c11 has no such issues with external
packages:
http://pypi.python.org/pypi/setuptools
IIRC this update specifically fixes this issue. However, I can install
the newer setuptools all I want, Sage keeps reinstalling the older
version. Is there anyway to block the installation of a specific
package?
setuptools-0.6c9.p0/.hg/00changelog.i
Finished extraction
****************************************************
Host system
uname -a:
Linux fs4 2.6.18-194.17.4.el5 #1 SMP Mon Oct 25 15:50:53 EDT 2010
x86_64 x86_64 x86_64 GNU/Linux
****************************************************
****************************************************
CC Version
gcc -v
Using built-in specs.
Target: x86_64-unknown-linux-gnu
Configured with: ../gcc-4.3.4/configure --prefix=/cm/shared/apps/gcc/
4.3.4 --enable-languages=c,c++,fortran
Thread model: posix
gcc version 4.3.4 (GCC)
****************************************************
/home/ksande/bin/sage-4.5.3/spkg/build/setuptools-0.6c9.p0/src/
setuptools/command/sdist.py:4: UserWarning: Module pkg_resources was
already imported from /home/ksande/bin/sage-4.5.3/spkg/build/
setuptools-0.6c9.p0/src/pkg_resources.py, but /home/ksande/bin/
sage-4.5.3/local/lib/python2.6/site-packages/distribute-0.6.14-
py2.6.egg is being added to sys.path
import os, re, sys, pkg_resources
/home/ksande/bin/sage-4.5.3/spkg/build/setuptools-0.6c9.p0/src/
setuptools/command/sdist.py:4: UserWarning: Module setuptools was
already imported from /home/ksande/bin/sage-4.5.3/spkg/build/
setuptools-0.6c9.p0/src/setuptools/__init__.py, but /home/ksande/bin/
sage-4.5.3/local/lib/python2.6/site-packages/distribute-0.6.14-
py2.6.egg is being added to sys.path
import os, re, sys, pkg_resources
/home/ksande/bin/sage-4.5.3/spkg/build/setuptools-0.6c9.p0/src/
setuptools/command/sdist.py:4: UserWarning: Module site was already
imported from /home/ksande/bin/sage-4.5.3/local/lib/python2.6/
site.pyc, but /home/ksande/bin/sage-4.5.3/local/lib/python2.6/site-
packages/distribute-0.6.14-py2.6.egg is being added to sys.path
import os, re, sys, pkg_resources
Traceback (most recent call last):
File "setup.py", line 94, in <module>
scripts = scripts,
File "/home/ksande/bin/sage-4.5.3/local/lib/python/distutils/
core.py", line 113, in setup
_setup_distribution = dist = klass(attrs)
File "/home/ksande/bin/sage-4.5.3/spkg/build/setuptools-0.6c9.p0/src/
setuptools/dist.py", line 223, in __init__
_Distribution.__init__(self,attrs)
File "/home/ksande/bin/sage-4.5.3/local/lib/python/distutils/
dist.py", line 270, in __init__
self.finalize_options()
File "/home/ksande/bin/sage-4.5.3/spkg/build/setuptools-0.6c9.p0/src/
setuptools/dist.py", line 256, in finalize_options
ep.load()(self,
ep.name, value)
File "/home/ksande/bin/sage-4.5.3/spkg/build/setuptools-0.6c9.p0/src/
pkg_resources.py", line 1918, in load
raise ImportError("%r has no %r attribute" % (entry,attr))
ImportError: <module 'setuptools.dist' from '/home/ksande/bin/
sage-4.5.3/spkg/build/setuptools-0.6c9.p0/src/setuptools/dist.py'> has
no 'check_packages' attribute
real 0m0.127s
user 0m0.107s
sys 0m0.019s
sage: An error occurred while installing setuptools-0.6c9.p0
Please email sage-devel
http://groups.google.com/group/sage-devel
explaining the problem and send the relevant part of
of /home/ksande/bin/sage-4.5.3/install.log. Describe your computer,
operating system, etc.
If you want to try to fix the problem yourself, *don't* just cd to
/home/ksande/bin/sage-4.5.3/spkg/build/setuptools-0.6c9.p0 and type
'make check' or whatever is appropriate.
Instead, the following commands setup all environment variables
correctly and load a subshell for you to debug the error:
(cd '/home/ksande/bin/sage-4.5.3/spkg/build/setuptools-0.6c9.p0' && '/
home/ksande/bin/sage-4.5.3/sage' -sh)
When you are done debugging, you can type "exit" to leave the
subshell.
make: *** [installed/setuptools-0.6c9.p0] Error 1
real 0m0.246s
user 0m0.200s
sys 0m0.056s
Error building Sage.
Error installing Sage!