[MacPorts] #21268: Python_select fails for a non-standard framework path

MacPorts noreply at macports.org
Thu Sep 10 01:39:33 PDT 2009


#21268: Python_select fails for a non-standard framework path
--------------------------------+-------------------------------------------
 Reporter:  vince@…             |       Owner:  macports-tickets@…                   
     Type:  defect              |      Status:  new                                  
 Priority:  Normal              |   Milestone:                                       
Component:  ports               |     Version:  1.8.0                                
 Keywords:                      |        Port:  python_select                        
--------------------------------+-------------------------------------------
 My framework path (chosen when configuring macports) is
 ${PREFIX}/frameworks (and not ${PREFIX}/Library/Frameworks).


 When I reinstalled python26, I tried to use python_select, but it ended up
 like this:[[BR]]
 {{{
 Selecting version "python26" for python
 ln: /usr/pkg/Library/Frameworks/Python.framework/Versions/Current: No such
 file or directory
 ln: /usr/pkg/Library/Frameworks/Python.framework/Headers: No such file or
 directory
 ln: /usr/pkg/Library/Frameworks/Python.framework/Resources: No such file
 or directory
 ln: /usr/pkg/Library/Frameworks/Python.framework/Python: No such file or
 directory
 there were 4 errors selecting version "python26"!
 }}}

 It turns out that ${CONFPATH}/base contains a wrong path:

 {{{
 -> cat /usr/pkg/etc/select/python/base
 bin/python
 bin/pythonw
 bin/python-config
 bin/idle
 bin/pydoc
 bin/smtpd.py
 share/man/man1/python.1
 share/man/man1/python.1.gz
 Library/Frameworks/Python.framework/Versions/Current
 Library/Frameworks/Python.framework/Headers
 Library/Frameworks/Python.framework/Resources
 Library/Frameworks/Python.framework/Python

 }}}
 [[BR]]
 whereas ${CONFPATH}/python26 is correct:
 {{{
 -> cat /usr/pkg/etc/select/python/python26
 bin/python2.6
 bin/pythonw2.6
 bin/python2.6-config
 bin/idle2.6
 bin/pydoc2.6
 bin/smtpd2.6.py
 share/man/man1/python2.6.1
 -
 /usr/pkg/frameworks/Python.framework/Versions/2.6
 /usr/pkg/frameworks/Python.framework/Versions/2.6/Headers
 /usr/pkg/frameworks/Python.framework/Versions/2.6/Resources
 /usr/pkg/frameworks/Python.framework/Versions/2.6/Python

 }}}

 so why is the base file incorrect?

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


More information about the macports-tickets mailing list