Re: How tobuild PythonCE 2.5

"David Goncalves" <[email protected]>
Newsgroups gmane.comp.python.windows-ce
Message-ID <[email protected]>
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.
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.