[MacPorts] #32840: python portgroup: strange results from python_get_version

MacPorts noreply at macports.org
Tue Jan 10 14:59:45 PST 2012


#32840: python portgroup: strange results from python_get_version
-------------------------------------+--------------------------------------
 Reporter:  ryandesign@…             |       Owner:  macports-tickets@…                   
     Type:  defect                   |      Status:  new                                  
 Priority:  Normal                   |   Milestone:                                       
Component:  ports                    |     Version:  2.0.3                                
 Keywords:                           |        Port:  python                               
-------------------------------------+--------------------------------------

Comment(by dports@…):

 I think what we actually want is

 {{{
     if {[string match py-* [option name]] &&
         [string match py\[0-9\]\[0-9\]-* [option subport]]} {
         return [string range [option subport] 2 3]
     } else {
         return [option python.default_version]
     }
 }}}

 which should do the right thing for py-foo stub ports, pyXX-foo subports,
 and apps (not name py-foo)

-- 
Ticket URL: <https://trac.macports.org/ticket/32840#comment:2>
MacPorts <http://www.macports.org/>
Ports system for Mac OS


More information about the macports-tickets mailing list