aboutsummaryrefslogtreecommitdiffstats
path: root/sources/pyside6/doc/deployment/deployment-py2exe.rst
blob: 6ca09a826f930e172e0e4b3cce1ecfc3a9ef6abf (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|project| & py2exe
##################

Deploying an application using py2exe requires writing a small ``setup.py`` file.
It is explained in the `Tutorial <http://www.py2exe.org/index.cgi/Tutorial>`_.

py2exe is not generally aware of Qt. It merely copies the dependent libraries
of the application to the ``dist`` directory, so, the plugins, QML imports
and translations of Qt are missing.

The latter need to be copied manually after running py2exe.
This can be achieved by running the ``windeployqt`` tool
from the Qt SDK on the Qt libraries present in the ``dist`` directory,
for example::

   windeployqt dist\\Qt6Widgets.dll