ANN: pyxe

G

Gerson Kurz

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
 
J

John Burton

Gerson said:
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:

Hmm, I tried it (on windows xp pro) and I get this error :-

Traceback (most recent call last):
File "C:\pyxe\pyxe_dumpmods.py", line 35, in analyze_modules
exec('import %s' % scriptname)
File "<string>", line 1, in ?
ImportError: No module named py

This was just on the simple hello world program.
Any ideas?
 
G

gohaku

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:
....
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.

I doubt there's a version for Linux or better yet Mac OS X, is there?
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
474,202
Messages
2,571,058
Members
47,668
Latest member
SamiraShac

Latest Threads

Top