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

MacPorts noreply at macports.org
Sun Oct 11 19:20:39 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 tcwan@…):

 Replying to [comment:2 blb@…]:
 >
 > Do you have a way to reproduce this?

 I'm using scons with the nxos project --
 git://github.com/danderson/nxos.git

 I'm not familiar with scons, just that I have two build environments, one
 on Leopard (Python 2.5.x) and the other on Snow Leopard (Python 2.6.x). On
 Leopard (python 2.5.4) it runs fine, scons would setup and execute the
 script to completion (via a hack to include /opt/local/lib/python2.5/site-
 packages in the search path). On Snow Leopard (python 2.6.3), it complains
 about being unable to find PIL when executed using scons but works fine
 when executed from the command line. The only difference I see is that
 under python 2.5.x there are hardlinks to /opt/local/lib/python2.5/site-
 packages/PIL/* whereas in 2.6.x, /opt/local/lib/python2.6/ does not
 contain anything (or mostly empty, anyway).

 (The generate_fonts.py script searches for PIL in /opt/local/lib/python2.5
 /site-packages/ as a workaround for scons on MacOSX -- I'm not keen on
 hacking that further since it's not maintainable, including
 /opt/local/Library/... is too Mac centric and prone to error due to the
 lengthy path)

 I've attached the relevant scripts if it makes any difference.
 Here is the console output (on Snow Leopard):

 TCMBA-Mac:nxos tcmac$ scons appkernels=tests
 scons: Reading SConscript files ...
 Checking for arm-elf-gcc...(cached) ok
 Checking for arm-elf-ar...(cached) ok
 Checking for arm-elf-objcopy...(cached) ok
 Checking for arm-elf-ld...(cached) ok
 Locating a cross-compiled libgcc...(cached) ok - /Cross-
 ARM/yagarto-4.4.1/lib/gcc/arm-elf/4.4.1/interwork/libgcc.a
 Looking for Doxygen...(cached) not found
 scons: done reading SConscript files.
 scons: Building targets ...
 ./scripts/generate_fonts.py base/font.8x5.png base/_font.h.base
 base/_font.h
 ERROR: Python Imaging Library required for font generation.
 scons: *** [base/_font.h] Error 2
 scons: building terminated because of errors.
 TCMBA-Mac:nxos tcmac$ ./scripts/generate_fonts.py base/font.8x5.png
 base/_font.h.base base/_font.h
 TCMBA-Mac:nxos tcmac$ << NO ERRORS >>

 TCMBA-Mac:base tcmac$ python
 Python 2.6.3 (r263:75183, Oct  9 2009, 21:45:39)
 [GCC 4.2.1 (Apple Inc. build 5646)] on darwin
 Type "help", "copyright", "credits" or "license" for more information.
 >>> import PIL
 >>>

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


More information about the macports-tickets mailing list