On 8/23/11 8:29 AM, Eric Lemings wrote:
> I would like to create/find a Python 3.x distribution that can be
> redeployed simply by copying a directory of required files; i.e.
Just take the default installer, install it, and then check the Python
directory: does it have the python DLL? If not, go look into the
system32 directory, grab it, drop it in the Python directory. (If you
installed for all-users this will happen,
Now copy/zip/whatever that Python directory to another machine where it
was not installed. It'll work fine.
You'll have to explicitly provide the path to the Python.exe of course;
you can't just double-click on a .py or run 'python blah.py', but if
your shortcuts/whatever all do C:\Where\You\Installed\Python.exe,
everything should just work.
We do that at work and never run into any trouble. (We actually provide
a MSI but only for convenience of customers who want to auto-install via
Group Policy).
In most situations, Python's good at "finding itself", i.e. where the
python.exe is actually located -- and it boostraps the location of
everything else based on that.
--
Stephen Hansen
... Also: Ixokai
... Mail: me+list/python (AT) ixokai (DOT) io
... Blog:
http://meh.ixokai.io/
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.10 (Darwin)
iQEcBAEBAgAGBQJOVAUUAAoJEKcbwptVWx/lu6gH/2FSClybtrW1SapOvRjwqRW4
7etoqdO52TVIW38bmOxvlxIbvZxPBGYQk2PExcD9U5DwMiU93t Vdxkv9nleIc0x7
gTmS47dp3qjNTBeFa+0yY8EHuMm/XGxlz9sVz1KP2IqpaRhSboV4WUekC6Xna0h+
VyWeOOEoDvy/0OI9Ria/UujanA/O/fQt1MZ6veDpkbJtisAHg19o3aIRh6yGmbjz
yysMHF4c+1bBoC+39g9kV7vjyx5t2jVHaxsBPhKEHz57oXd+LZ TqrA5fLe56/9ii
UX66RjYU4Wkly1IT8NZF2/kivyaofqVuVGdJQ38MbMfmqD82IRE+cslCSrAHZGg=
=5adt
-----END PGP SIGNATURE-----