[PythonCE] How tobuild PythonCE 2.5
David Goncalves
pythonce-ml at lestat.st
Fri Dec 29 10:30:32 CET 2006
Hi,
> I have download pythonce source, and try to build it
> to generate CAB file, just for familiar with python code.
>
> What I found out is that Scons will not build. It
> shows:
>
>
> C:\Source\python-wince\PCbuild\WinCE>scons
> scons: Reading SConscript files ...
> <type 'exceptions.NameError'>: global name 'defpaths'
> is not defined:
>
> the defpaths was used in msevc to get include, lib, and exe path. But I
> could not find where it gets defined (and set).
I got the same problem trying to compile PythonCE.
I resolved it by creating en empty 'defpaths' list on line 365 of msevc.py
and manually added 'include_path', 'lib_path' and 'exe_path' to it.
It seems that when Scons cannot get that paths from the registry, it
gets values from that list, but the list is not initialised anywhere.
BTW : Use 'os.path.join' to indicate paths in the list to avoid backslahes
problems.
Regards.
More information about the PythonCE
mailing list