为Python应用程序构建NSIS安装程序。
项目描述
Pynsist是一个用于构建Windows安装程序的Python应用程序的工具。安装程序捆绑了Python自身,因此您可以向没有安装Python的人分发您的应用程序。
Pynsist 2.7需要Python 3.6或更高版本。您可以在Python 3.5上使用Pynsist 2.6,在Python 2.7和Python 3.3或更高版本上使用Pynsist 1.x,但这些版本将不再更新。
快速入门
获取工具。安装NSIS,然后通过运行pip install pynsist来从PyPI安装pynsist。
编写配置文件installer.cfg,如下所示
[Application] name=
My Appversion=1.0# How to launch the app - this calls the 'main' function from the 'myapp' package: entry_point=myapp:mainicon=myapp.ico[Python] version=3.6.3[Include] # Packages from PyPI that your application requires, one per line # These must have wheels on PyPI: pypi_wheels =requests==2.18.4beautifulsoup4==4.6.0html5lib==0.999999999# To bundle packages which don't publish wheels, or to include directly wheel files # from a directory, see the docs on the config file. # Other files and folders that should be installed files =LICENSEdata_files/运行pynsist installer.cfg以生成您的安装程序。如果找不到pynsist,您可以使用python -m nsist installer.cfg代替。
此示例说明了如何使用Pynsist本身,用于简单项目。还有其他选项,可以使它更容易集成为更复杂构建过程中的一个步骤。有关更多信息,请参阅文档。
关闭
pynsist-2.8.tar.gz的哈希值
算法 | 哈希摘要 | |
---|---|---|
SHA256 | 465c4596cba5cc3698d4719ddc7afea31ce9dc8936a7b4d3feffec6e8adc0b5d |
|
MD5 | 036e411aac1b034bbceece35a7eb1250 |
|
BLAKE2b-256 | 99e0b1b797633a71fadb5e37b44b69a707bf1f3108f1922d25bbb82d320af0cd |
关闭
pynsist-2.8-py3-none-any.whl的哈希值
算法 | 哈希摘要 | |
---|---|---|
SHA256 | 7d3e8343c10cdbfb262ab63201a62d38ed86f4f2d0cffc2677c9917793d800a6 |
|
MD5 | 79d1ed37c584c969bb99b823b49d7b3e |
|
BLAKE2b-256 | 4417f3d24a5c36a19eca00219bd1d7f2abf8dd26b3c61cc919f1159763e1e093 |