部署python应用程序

页面状态

不完整

上次审阅时间

2014-11-11

概述

支持多种硬件平台

FIXME

Meaning: x86, x64, ARM, others?

For Python-only distributions, it *should* be straightforward to deploy on all
platforms where Python can run.

For distributions with binary extensions, deployment is major headache.  Not only
must the extensions be built on all the combinations of operating system and
hardware platform, but they must also be tested, preferably on continuous
integration platforms.  The issues are similar to the "multiple Python
versions" section above, not sure whether this should be a separate section.
Even on Windows x64, both the 32 bit and 64 bit versions of Python enjoy
significant usage.

操作系统包装和安装程序

FIXME

- Building rpm/debs for projects
- Building rpms/debs for whole virtualenvs
- Building macOS installers for Python projects
- Building Android APKs with Kivy+P4A or P4A & Buildozer

Windows

FIXME

- Building Windows installers for Python projects

皮恩斯主义者

Pynsist 是一个工具,它将python程序和python解释器捆绑到一个基于nsis的安装程序中。在大多数情况下,打包只要求用户选择Python解释器的版本并声明程序的依赖项。该工具为Windows下载指定的python解释器,并将其与所有依赖项打包到单个Windows可执行安装程序中。

安装程序在用户系统上安装或更新python解释器,该解释器可以独立于打包程序使用。程序本身可以从安装程序放在“开始”菜单中的快捷方式启动。卸载程序会使用户的python安装保持原样。

Pynsist的一大优势是Windows软件包可以构建在Linux上。在 documentation . 该工具是根据麻省理工学院的许可证发放的。

应用程序包

FIXME

- py2exe/py2app/PEX
- wheels kinda/sorta

配置管理

FIXME

puppet
salt
chef
ansible
fabric