views:

55

answers:

2

Is there no sane way to peform a scripted install of binary python packages for windows? Unfortunately it seems like several essential windows python packages like pywin32 and py2exe are only available as EXE's not MSI's (and as far as I know only the latter are scriptable). Easy_install/pip also seems no use since they apparently only find source packages and then try to compile locally which is obviously unsatisfactory.

Am I missing something?

+1  A: 

You can download the source code of pywin32 at sourceforge.net/projects/pywin32/files/ and then build it as MSI file yourself. Therefore you need setuptools (only for building). Use the command "setup.py bdist_msi" to create a MSI installer in the "dist" directory.

The same procedure should work for all Windows-compatible packages.

AndiDog
Yes, unfortunately this seems the best approach. I'm baffled that almost no python project provides msis since as far as I can tell they are strictly and significantly superior to exe installers.
as
A: 

If you want scripted automation of installs on Windows, look into AutoIt.

MaQleod