* John Salerno (2006-07-13 14:54 +0000) > Is there a way to 'install' and use Python on a memory stick, just as > you would on any computer? I use Windows, and I know the installation > does things with the registry, so probably I couldn't use the executable > file to install it. But is it possible to do it some other way, such as > how you might build it yourself on Linux (although I don't know how to > do that yet) and then just write and run scripts normally straight from > your memory stick?
I use Python in connection with Cygwin from USB stick for more than a year. Simply install cygwin on the stick (or copy it from a local installation). Then use the following script to set the registry entries before you first run any cygwin program. Now you have Python in every Internet Cafe in the world ;-)... ,--- * mkcygwin.bat | @ echo off | set MOUNT=\cygwin\bin\mount -xfub | | title [cygwin] importing settings | | REM umount -c, umount -A | reg delete "hklm\software\cygnus solutions" /f > nul 2>&1 | reg delete "hkcu\software\cygnus solutions" /f > nul 2>&1 | | %MOUNT% --change-cygdrive-prefix /cygdrive | %MOUNT% %~d0\cygwin / | %MOUNT% %~d0\cygwin/bin /usr/bin | %MOUNT% %~d0\cygwin/lib /usr/lib | %MOUNT% %TEMP% /tmp `--- -- http://mail.python.org/mailman/listinfo/python-list