ANN: pyxe

simoninusa2001 at yahoo.co.uk simoninusa2001 at yahoo.co.uk
Thu Aug 19 23:30:53 CEST 2004


Forgive me if this comes out odd, I'm testing the new
http://groups-beta.google.com/group/comp.lang.python - it seems to
encourage top-posting and quoting the entire previous thread!

Anyway, what sets this app apart from py2exe (or cx_Freeze,
BundleBuilder or McMillan Installer for that matter)?

I built the hello.py but it seemed to just create another pyxe.exe, the
same seems to have happened for your SimpleHTTPServer in the example
directory.....

Gerson Kurz wrote:
> pyxe is a small executable that will run python scripts on a machine
> that doesn't have Python installed. Example: You have the following
> hello.py:
>
> def main():
>     print "Hello, World"
>
> You can create a binary distribution using
>
> pyxe /build hello
>
> This will create a directory ./hello which contains all you need.
Copy
> all files to a host system and run the app using
>
> pyxe hello
>
> That's it. Note that your app must define a
>
> def main():
>
> which is the main procedure to start from pyxe. There is one known
> restriction, sys.argv[] doesn't get properly setup in pyxe
> environment. You can fix this yourself:
>
> import sys
> try:
>     import cfrompy
>     sys.argv = cfrompy.GetSysArgv()
> except ImportError:
>     assert sys.argv
>
> Easy, eh? Requirements
>
> - On the developer machine, you must have python23 installed.
> - On the target machine, no requirements.
> - Tested on Windows NT and Windows 2000. You are on your own with
> other systems (such as XP, 03 etc.)
>
> pyxe is free for any purpose whatsoever.
>
> Download:
> http://p-nand-q.com/python/pyxe.zip
>
> includes the full sourcecode and a sample app in Python which
actually
> is the "SimpleHTTPServer" webserver ;) Enjoy
>
> Homepage = this mail in fancy tags:
> http://p-nand-q.com/python/pyxe.html




More information about the Python-list mailing list