#11376: Remove the hardcoding of python version in setup.py and SConstruct to 
build
sage_clib and sage itself
---------------------------+------------------------------------------------
   Reporter:  fbissey      |          Owner:  GeorgSWeber    
       Type:  enhancement  |         Status:  needs_review   
   Priority:  major        |      Milestone:  sage-4.7.1     
  Component:  build        |       Keywords:                 
Work_issues:               |       Upstream:  N/A            
   Reviewer:               |         Author:  François Bissey
     Merged:               |   Dependencies:                 
---------------------------+------------------------------------------------

Comment(by fbissey):

 Replying to [comment:12 jhpalmieri]:
 > The python documentation for sys.version says "Do not extract version
 information out of it, rather, use version_info and the functions provided
 by the platform module."  It looks to me as though you could use
 > {{{
 > platform.python_version()  # gives '2.6.4'
 > platform.python_version().rstrip('.', 1)[0]  # gives '2.6'
 > ver = platform.python_version_tuple()  # gives ('2', '6', '4')
 > ver[0] + '.' + ver[1]  # gives '2.6'
 > }}}
 > or
 > {{{
 > ver = sys.version_info
 > str(ver[0]) + '.' + str(ver[1])   # gives '2.6'
 > }}}
 > I'll take a look at the rest of the patches...

 OK I will rewrite that then. It was purely a case of stealing code from
 somewhere else. Looks cool in misc/cython.py that will be useful here. I
 should bring cython.py in line too.

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