distutils 扩展模块 - 使用 InnoSetup 创建安装程序。
项目描述
需求
功能
您可以使用自定义的 InnoSetup 脚本。
安装程序元数据覆盖 setup() 元数据
从 setup() 元数据生成 AppId(GUID) 看见 innosetup.InnoScript.appid 属性。
捆绑 exe 和 com dll 及其依赖库和资源
捆绑 msvcr 和 mfc 及其清单
捆绑所有已安装的 InnoSetup 的语言文件(如果存在有效的 [Languages] 部分。)
创建 windows exe 的快捷方式
注册 com_server 和 service
使用Python版本检查Windows版本
修复问题:py2exe.mf缺少一些模块(例如win32com.shell)
示例
from distutils.core import setup import py2exe, innosetup # All options are same as py2exe options. setup( name='example', version='1.0.0.0', license='PSF or other', author='you', author_email='you@your.domain', description='description', url='http://www.your.domain/example', # generate AppId from this url options={ 'py2exe': { # `innosetup` gets the `py2exe`'s options. 'compressed': True, 'optimize': 2, 'bundle_files': 3, }, 'innosetup': { # user defined iss file path or iss string 'inno_script': innosetup.DEFAULT_ISS, # default is '' # bundle msvc files 'bundle_vcr': True, # default is True # zip setup file 'zip': False, # default is False, bool() or zip file name # create shortcut to startup if you want. 'regist_startup': True, # default is False } }, com_server=[ {'modules': ['your_com_server_module'], 'create_exe': False}, ], # and other metadata ... )
执行命令 setup.py innosetup。然后你会得到一个名为 dist\distutils.iss 的InnoSetup脚本文件和一个名为 dist\<name>-<version>.exe 的安装文件。
变更
0.6.8
修复了“MinVersion”的bug。
0.6.6, 0.6.7
更新了readme和setup脚本。
0.6.5
将下载链接移至GitHub。
0.6.4
将仓库移至GitHub。
添加了setup.py脚本。
0.6.3
更改版本策略(移除构建号)。
Jerome Ortais添加了UTF-8 BOM到.iss文件,感谢。
Jerome Ortais提供了[cite]COPYING[/cite]文件用于[cite][setup]/LicenseFile[/cite],感谢。
0.6.0.2
添加了[cite]regist_startup[/cite]选项以创建启动快捷方式。
0.6.0.1
由surgo修复了元数据和Unicode问题,感谢。
由于[cite]Inno Setup 5.3.9[/cite]已发布,将[cite]DEFAULT_ISS[/cite]设置为空。
修复了在Windows 7上[cite]py2exe[/cite]包含MinWin的ApiSet Stub DLLs的问题。
0.6.0.0
支持捆绑tcl文件
更改OutputBaseFilename
0.5.0.1
改进了更新安装支持
0.5.0.0
添加DEFAULT_ISS、manifest、srcname、srcnames
添加[cite]zip[/cite]选项
修复了[cite]bundle_files=1[/cite]选项的问题(始终捆绑pythonXX.dll)
将[cite]DefaultGroupName[/cite]、[cite]InfoBeforeFile[/cite]、[cite]LicenseFile[/cite]添加到[cite][Setup][/cite]部分
0.4.0.0
支持service cmdline_style选项
重写了iss文件周围的代码
0.3.0.0
改进了InnoSetup安装路径检测
添加[cite]inno_setup_exe[/cite]选项
0.2.0.0
处理[cite]py2exe[/cite]的命令选项
添加[cite]bundle_vcr[/cite]选项
0.1.0.0
第一个版本
项目详情
innosetup-0.6.9.zip的散列
算法 | 散列摘要 | |
---|---|---|
SHA256 | 69b2c1c17664c50bd4cf7ec60985970eba90be5f6e1f0f37602be3aa7ea4bad1 |
|
MD5 | c5ecf51d6a58bdf296ae07ce8ba2a15d |
|
BLAKE2b-256 | 75a5362d21e201574ddd0401718a115957094853aa9f5ef3bbc9431f0ef94c0f |