[MacPorts] #17477: Integrate *_select tools into port

MacPorts noreply at macports.org
Tue Dec 16 22:52:12 PST 2008


#17477: Integrate *_select tools into port
------------------------------+---------------------------------------------
 Reporter:  blb@…             |       Owner:  macports-tickets@…                   
     Type:  enhancement       |      Status:  new                                  
 Priority:  Normal            |   Milestone:  MacPorts 1.8.0                       
Component:  base              |     Version:  1.7.0                                
 Keywords:  select            |        Port:                                       
------------------------------+---------------------------------------------
Changes (by perry@…):

 * cc: perry@… (added)


Comment:

 I've attached a patch that integrates some of the *_select tools'
 functionality in port.

 The syntax is `port select <module> <action> <options>`, with the
 following actions currently available: list, set

 {{{
 perry at phoenix ~/src/macports-trunk/base/src/port $ sudo port select python
 list
 Available Versions:
         none
         python25
         python25-apple
 perry at phoenix ~/src/macports-trunk/base/src/port $ python
 Python 2.5.1 (r251:54863, Apr 15 2008, 22:57:26)
 [GCC 4.0.1 (Apple Inc. build 5465)] on darwin
 Type "help", "copyright", "credits" or "license" for more information.
 >>> ^D
 perry at phoenix ~/src/macports-trunk/base/src/port $ sudo port select python
 set python25
 Selecting version python25 for python
 perry at phoenix ~/src/macports-trunk/base/src/port $ python
 Python 2.5.2 (r252:60911, Dec  6 2008, 18:32:57)
 [GCC 4.0.1 (Apple Inc. build 5490)] on darwin
 Type "help", "copyright", "credits" or "license" for more information.
 >>> ^D
 }}}

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


More information about the macports-tickets mailing list