[MacPorts] #21970: scons with Python 2.6.3 on Snow Leopard can't find Packages path

MacPorts noreply at macports.org
Sun Oct 11 20:20:13 PDT 2009


#21970: scons with Python 2.6.3 on Snow Leopard can't find Packages path
-----------------------------+----------------------------------------------
 Reporter:  tcwan@…          |       Owner:  landonf@…           
     Type:  defect           |      Status:  new                 
 Priority:  Normal           |   Milestone:                      
Component:  ports            |     Version:  1.8.1               
 Keywords:                   |        Port:  scons               
-----------------------------+----------------------------------------------

Comment(by blb@…):

 Are you sure it's running the right python?  That
 {{{scripts/generate_fonts.py}}} is simply appending the 2.5 python lib
 location to sys.path, which shouldn't break importing PIL with python 2.6
 (unless you also have 2.5 installed).  Manually reproducing that:
 {{{
 $ /opt/local/bin/python2.6
 Python 2.6.3 (r263:75183, Oct 11 2009, 02:48:30)
 [GCC 4.2.1 (Apple Inc. build 5646) (dot 1)] on darwin
 Type "help", "copyright", "credits" or "license" for more information.
 >>> import sys
 >>> sys.path.append('/opt/local/lib/python2.5/site-packages')
 >>> from PIL import Image
 }}}
 No error happens.  I do note {{{scripts/generate_fonts.py}}} is using
 {{{#!/usr/bin/env python}}} so you'll need {{{/opt/local/bin}}} before
 {{{/usr/bin}}} and python_select installed and used to select MacPorts'
 python26 as the one.

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


More information about the macports-tickets mailing list