[MacPorts] #22505: py26-pyx cannot find the File '10pt.lfs'

MacPorts noreply at macports.org
Tue Mar 9 04:59:36 PST 2010


#22505: py26-pyx cannot find the File '10pt.lfs'
-------------------------------------+--------------------------------------
 Reporter:  mftsai.mftsai@…          |       Owner:  stechert@…           
     Type:  defect                   |      Status:  new                  
 Priority:  Normal                   |   Milestone:                       
Component:  ports                    |     Version:  1.8.1                
 Keywords:                           |        Port:  py26-pyx             
-------------------------------------+--------------------------------------

Comment(by macports@…):

 This bug is caused by the installer copying the pyc files as well as the
 py files from the staging area, and then in postinstall doing a regex
 replace in the siteconfig.py to change the LFS path without triggering a
 recompile. Then when you ask python to import siteconfig it loads the
 byte-compiled pyc, which contains a compiled representation of the wrong
 path (in build/destrood/blah/blah/blah).

 As a quick fix, just rm -f
 /opt/local/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6
 /site-packages/pyx/siteconfig.pyc ; I don't know macports so I can't say
 what you need to do to the postinstall phase to make it right; I guess
 delete the pyc file and trigger a recompilation.

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


More information about the macports-tickets mailing list