tags:

views:

104

answers:

2

How can I build python interpreter which can be installed by just extracting the archive?

e.g. I want to python-2.6.tag.gz. User will extract it in any directory, and start using it.

+4  A: 

Maybe portablepython (currently Windows only) will help. You can try using it directly, or follow the install process to learn how to create such an environment.

Portable Python is a Python® programming language preconfigured to run directly from any USB storage device, enabling you to have, at any time, a portable programming environment.

gimel
Let me second this. I was able to convince people about using Python in my former job (a management consulting firm) by loading Portable Python and a bunch of well designed scripts in a USB. They would say 'Oh, Excel cannot do such and such!' and I would come, plug in my USB on their computer, solve the problem, write a data file (in CSV for Excel to use), unplug the USB, and finally pull out my sword and crave a big "P" on their chests. The last step is a lie, but the others are not.
Arrieta
Portable python looks nice. Didn't find anything which can help to build it on other platforms though.
shantanoo
A: 

I went another way, on debian, and wrote a script to automate the install of python.

This is python-specific, but uses fabric and paramiko to deploy python on remote machines. see:

http://bitbucket.org/chris.mahan/debian-stable-python-2.6.4-deployer/

This may help you.

Christopher Mahan