Creating a Windows installer for Python + a set of dependencies

◇◆丶佛笑我妖孽 提交于 2019-12-02 18:47:27

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.

For Windows there's pynsist. It uses NSIS internally and bundles Python so you don't have to. It comes with useful examples.

Disclaimer: I haven't tried pynsist yet, but will soon.

If you want to package a predetermined version of python and some dependencies, I would suggest, using NSIS and AutoIt.

NSIS can be used to embed other installer, but in the specific case of python modules, some of their installer can't be used in an unattended mode. To bypass this problem, AutoIt can be used to simulate keystrokes.

For more info on embedding other installer in NSIS: http://nsis.sourceforge.net/Embedding_other_installers

AutoIT web site: http://www.autoitscript.com/site/

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!