#18955: setuptools requires pip
--------------------------------------+------------------------
       Reporter:  buck                |        Owner:
           Type:  defect              |       Status:  new
       Priority:  major               |    Milestone:  sage-6.9
      Component:  packages: standard  |   Resolution:
       Keywords:                      |    Merged in:
        Authors:                      |    Reviewers:
Report Upstream:  N/A                 |  Work issues:
         Branch:                      |       Commit:
   Dependencies:                      |     Stopgaps:
--------------------------------------+------------------------

Comment (by buck):

 The "setuptools is already installed" message makes me strongly suspect
 that pip is also already installed. You won't be able to reproduce this if
 you're in an old checkout where pip is installed. I too can get the
 setuptools spkg to install if I (manually) ensure pip is already
 installed, which I mentioned in my OP workaround.

 To test, python -m pip should fail with "no such module".

 I ran `make`, from a fresh clone.

 Demo session:


 {{{
 ./sage -i -f setuptools
 Successfully installed setuptools-12.4


 ./local/bin/python -m pip
 (pip's help is printed)

 # uninstalls from local/lib/python2.7/site-packages/pip-6.1.1-py2.7.egg
 ./local/bin/python -m pip uninstall --yes pip
 Uninstalling pip-6.1.1:
   Successfully uninstalled pip-6.1.1

 # uninstalls from local/lib/python2.7/site-packages/pip/
 ./local/bin/python -m pip uninstall --yes pip
 Uninstalling pip:
   Successfully uninstalled pip

 # shows that pip is truly uninstalled now
 ./local/bin/python -m pip uninstall --yes pip
 /home/buck/trees/mine/sage/local/bin/python: No module named pip


 ./sage -i -f setuptools
 ...
 Searching for pip
 Reading https://pypi.python.org/simple/pip/

 (stall for ~120 seconds)

 Download error on https://pypi.python.org/simple/pip/: [Errno 110]
 Connection timed out -- Some packages may not be found!
 Couldn't find index page for 'pip' (maybe misspelled?)
 Scanning index of all packages (this may take a while)
 Reading https://pypi.python.org/simple/

 (stall for ~120 seconds)

 Download error on https://pypi.python.org/simple/: [Errno 110] Connection
 timed out -- Some packages may not be found!
 No local packages or download links found for pip
 error: Could not find suitable distribution for Requirement.parse('pip')

 real    4m15.108s
 user    0m0.569s
 sys     0m0.130s
 ************************************************************************
 Error installing package setuptools-12.4
 ************************************************************************
 }}}

 I've also attached the unadulterated install log.

--
Ticket URL: <http://trac.sagemath.org/ticket/18955#comment:4>
Sage <http://www.sagemath.org>
Sage: Creating a Viable Open Source Alternative to Magma, Maple, Mathematica, 
and MATLAB

-- 
You received this message because you are subscribed to the Google Groups 
"sage-trac" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/sage-trac.
For more options, visit https://groups.google.com/d/optout.

Reply via email to