编译打包collective.zopeedit 为windows 发行版

编译打包collective.zopeedit 为windows 发行版

collective.zopeedit 最新版本的windows发行版仅仅支持python2

编译打包前的准备:

  • 选择windows8以上的平台
  • 下载并安装最后的python2版   python -m pip install --upgrade pip
  • 安装Python for Windows Extensions:pywin32    pip install pywin32
  • 安装pyinstaller    pip install -U pyinstaller==3.6
  • 安装InnoSetup   http://www.jrsoftware.org/isinfo.php

注意:上述 cmd命令行命令应以管理员身份 运行。

编译打包:

1、安装 collective.zopeedit  pip install collective.zopeedit

2、切换到这个包的根目录:

> pyinstaller ZopeEdit.spec

在InnoSetup 中打开:collective/zopeedit/win32/setup.iss ,然后选择“Compile”
输出的可执行文件在:collective/zopeedit/win32/Output

设置