Skip to content

Commit 442a0e6

Browse files
authored
Merge branch 'main' into patch-2
2 parents cfa58cd + 10fc46a commit 442a0e6

1 file changed

Lines changed: 43 additions & 2 deletions

File tree

source/discussions/deploying-python-applications.rst

Lines changed: 43 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ Deploying Python applications
44
=============================
55

66
:Page Status: Incomplete
7-
:Last Reviewed: 2014-11-11
7+
:Last Reviewed: 2021-8-24
88

99
.. contents:: Contents
1010
:local:
@@ -83,9 +83,50 @@ Application bundles
8383

8484
FIXME
8585

86-
- py2exe/py2app/PEX
8786
- wheels kinda/sorta
8887

88+
Windows
89+
-------
90+
91+
py2exe
92+
^^^^^^
93+
94+
`py2exe <https://pypi.org/project/py2exe/>`__ is a distutils extension which
95+
allows to build standalone Windows executable programs (32-bit and 64-bit)
96+
from Python scripts. Python versions included in the official development
97+
cycle are supported (refers to `Status of Python branches`__). py2exe can
98+
build console executables and windows (GUI) executables. Building windows
99+
services, and DLL/EXE COM servers might work but it is not actively supported.
100+
The distutils extension is released under the MIT-licence and Mozilla
101+
Public License 2.0.
102+
103+
.. __: https://devguide.python.org/#status-of-python-branches
104+
105+
macOS
106+
-----
107+
108+
py2app
109+
^^^^^^
110+
111+
`py2app <https://pypi.org/project/py2app/>`__ is a Python setuptools
112+
command which will allow you to make standalone macOS application
113+
bundles and plugins from Python scripts. Note that py2app MUST be used
114+
on macOS to build applications, it cannot create Mac applications on other
115+
platforms. py2app is released under the MIT-license.
116+
117+
Unix (including Linux and macOS)
118+
-----------------------------------
119+
120+
pex
121+
^^^
122+
123+
`pex <https://pypi.org/project/pex/>`__ is a library for generating .pex
124+
(Python EXecutable) files which are executable Python environments in the
125+
spirit of virtualenvs. pex is an expansion upon the ideas outlined in :pep:`441`
126+
and makes the deployment of Python applications as simple as cp. pex files may
127+
even include multiple platform-specific Python distributions, meaning that a
128+
single pex file can be portable across Linux and macOS. pex is released under the
129+
Apache License 2.0.
89130

90131
Configuration management
91132
========================

0 commit comments

Comments
 (0)