The python interpreter tries to generate .pyc and .pyo files whenever a program is run

to get it all taken care of you should cd into the SCons installation directory
and run the command


python setup.py install

as a user that has privileges to write to the installation directories, this will
bytecompile all the files you need...


On Saturday, December 20, 2003, at 05:41 PM, Jacob Meuser wrote:

I'm trying to make an ebuild for Cheesetracker www.reduz.com.ar/cheesetronic

Anyway, it uses SCons, scons.org, instead of autotools.  SCons
is a python based build engine.

The problem I have, is SCons apparently tries to bytecompile itself
when it's used, which causes access voilations in the ebuild system.
For example:

unlink:    /usr/lib/scons/SCons/Platform/posix.pyc
open_wr:   /usr/lib/scons/SCons/Platform/posix.pyc
unlink:    /usr/lib/scons/SCons/Tool/default.pyc
open_wr:   /usr/lib/scons/SCons/Tool/default.pyc
unlink:    /usr/lib/scons/SCons/Tool/gcc.pyc
open_wr:   /usr/lib/scons/SCons/Tool/gcc.pyc
unlink:    /usr/lib/scons/SCons/Tool/cc.pyc
open_wr:   /usr/lib/scons/SCons/Tool/cc.pyc
unlink:    /usr/lib/scons/SCons/Tool/g++.pyc
open_wr:   /usr/lib/scons/SCons/Tool/g++.pyc
unlink:    /usr/lib/scons/SCons/Tool/c++.pyc
open_wr:   /usr/lib/scons/SCons/Tool/c++.pyc
unlink:    /usr/lib/scons/SCons/Tool/gnulink.pyc
open_wr:   /usr/lib/scons/SCons/Tool/gnulink.pyc


So, does anyone know a way of disabling bytecompiling in SCons, whether in SCons directly, or in python in general? I looked on python.org, and found a PEP to add PYTHONBYTECODEBASE as an environment variable, but couldn't tell if this was added or not (grepping python sources on gentoo didn't find that string).

--
<[EMAIL PROTECTED]>
_______________________________________________
EuG-LUG mailing list
[EMAIL PROTECTED]
http://mailman.efn.org/cgi-bin/listinfo/eug-lug


--
"You are the eventuality of an anomaly , which despite my sincerest
efforts I have been unable to eliminate from what is otherwise a harmony
of mathematical precision. " -The Architect
"Microsoft has resolved this issue. We have put processes in place to
ensure there is no recurrence of this eventuality." -Microsoft


_______________________________________________
EuG-LUG mailing list
[EMAIL PROTECTED]
http://mailman.efn.org/cgi-bin/listinfo/eug-lug

Reply via email to