In <[EMAIL PROTECTED]>, Bo Peng <[EMAIL PROTECTED]> typed:
> May it be a good idea to compile  .py files to windows .exe files
> under windows?

Because you can't reaaly do that? The various .py->.exe tools
available for windows just fake it. They bundle the byte-compiled
python files and the python runtime up into an archive, and arrange
things so that running the archive results in running the bundled
python interpreter on the python progam in question.

For an application, this is a win on Windows: the user gets to
download a single package that includes everything they need to run
the application. They get a copy of Python for every python-based
application, but the tradeoffs seem acceptable for Windows developers.
For a collection of programs, it doesn't work so well. Itj would
involve putting one copy of the python interpreter into the
distribution for every .py file. That's not really a good idea.

It might be possible to create a LyX distribution for Windows that
included a Python interpreter to handle the .py files. The Python
license certainly allows that. I don't know enough about building
distribution for Windows to say whether or not this is possible.

        <mike
-- 
Mike Meyer <[EMAIL PROTECTED]>          http://www.mired.org/consulting.html
Independent Network/Unix/Perforce consultant, email for more information.

Reply via email to