#11991: record time, version in sage-starts
------------------------------+---------------------------------------------
   Reporter:  jhpalmieri      |          Owner:  leif         
       Type:  enhancement     |         Status:  needs_review 
   Priority:  minor           |      Milestone:  sage-4.8     
  Component:  scripts         |       Keywords:               
Work_issues:                  |       Upstream:  N/A          
   Reviewer:  Leif Leonhardy  |         Author:  John Palmieri
     Merged:                  |   Dependencies:               
------------------------------+---------------------------------------------

Comment(by leif):

 Replying to [comment:4 jhpalmieri]:
 > (Note that the file sage/version.py is extremely simple, so if Python
 functions, we should be able to import it.)

 It is, but note that also `sage/__init__.py` is executed when you import
 `sage.version`.

 This is not a problem right now, but may become one if Sage's import
 mechanics change (which is work in progress).  You could perhaps modify
 `PYTHONPATH` and `import version`, but I haven't tried that yet^*^.  Maybe
 run Sage's Python directly then (instead of `./sage --python ...`).


 ----
 ^*^ `PYTHONPATH="devel/sage/sage" local/bin/python -c 'import version;
 ...'` should work, both from within and outside a Sage environment.

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