#7467: Make SageNB use `setuptools` instead of `distutils`
---------------------------+------------------------------------------------
   Reporter:  timdumol     |       Owner:  boothby     
       Type:  enhancement  |      Status:  needs_review
   Priority:  major        |   Milestone:  sage-4.3    
  Component:  notebook     |    Keywords:              
Work_issues:               |      Author:  Tim Dumol   
   Reviewer:               |      Merged:              
---------------------------+------------------------------------------------

Comment(by timdumol):

 Replying to [comment:4 mpatel]:
 > [...]
 > On #7447: Can we query the installed version of a package with
 `setuptools` and/or `pip`?

 I believe something like this should do the trick:

 {{{
 from pkg_resources import Requirement, working_set
 version = working_set.find9Requirement.parse('sagenb')).version
 }}}

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