#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):

 Harald Schilly says that each subdirectory of packages has a "list" file;
 for example, http://sagemath.org/packages/standard/list which simplifies
 the script even more (presuming we can depend on the "list" file being
 present). Something like this should be okay:
 {{{
 fn, hdrs = urllib.urlretrieve(url + '/list')
 spkgs = open(fn).read().splitlines()
 if spkgs[0].endswith('.spkg'):
     return spkgs
 }}}
 If you get a 404, the first line will be some html and won't be a string
 ending in ".spkg".

-- 
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/7355#comment:5>
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