Creating a Windows installer for Python + a set of dependencies

Giampaolo Rodolà picture Giampaolo Rodolà · May 10, 2012 · Viewed 10.4k times · Source

I need to create an installer for Windows which should be able to install a specific version of the Python interpreter (2.7) plus a set a dependencies such as ipython, numpy, pandas, etc.

Basically this is the same thing Active State did for their Active Python distribution: a single bundle including interpreter + deps.

Not being a Windows user I'm not sure where to start with this except maybe looking into NSIS (could that be of any help?).

Answer

Martin v. Löwis picture Martin v. Löwis · May 10, 2012

I suggest to use the packaging tool that I also use to build the Python releases, which is in Tools/msi/msi.py. Unpack the additional dependencies on top of the Python source (or an installation), then adjust msi.py to pick up all additional files that you want to package. You should adjust display strings to indicate that this is really a separate Python distribution.