#7355: Allow sage -i/-f to install packages without stating version number.
---------------------------+------------------------------------------------
   Reporter:  timdumol     |       Owner:  tbd       
       Type:  enhancement  |      Status:  needs_work
   Priority:  minor        |   Milestone:            
  Component:  packages     |    Keywords:            
Work_issues:               |      Author:            
   Reviewer:               |      Merged:            
---------------------------+------------------------------------------------

Comment(by ddrake):

 Another idea: use urllib2.urlopen
 (http://docs.python.org/library/urllib2.html#urllib2.urlopen) which throws
 an HTTPError when we don't find the list, and doesn't use any temporary
 files at all.
 {{{
 try:
   data = urllib2.urlopen(some_url)
 except HTTPError:
   # can explicitly check for a 404 if we want
   print "couldn't find it"
   sys.exit(whatever)
 return data.read().splitlines()
 }}}

-- 
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/7355#comment:6>
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 post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/sage-trac?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to