Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit e61f365

Browse files
author
Thomas Heller
committed
Document the available command line flags for bdist_wininst, which are
avaliable in the Python 2.2 branch. I've left out some flags which are more thought for debugging, if someone needs them, he can always look at the output of --help. I'm sure Fred will make some adjustments, so I'll only mark this as a 2.2 bugfix candidate. There are more options available in the current CVS bdist_wininst, I will document them after this is in.
1 parent 36343f6 commit e61f365

1 file changed

Lines changed: 29 additions & 15 deletions

File tree

Doc/dist/dist.tex

Lines changed: 29 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1265,14 +1265,14 @@ \subsection{Creating RPM packages}
12651265
\subsection{Creating Windows Installers}
12661266
\label{creating-wininst}
12671267

1268-
Executable installers are the natural format for binary
1269-
distributions on Windows. They display a nice graphical user interface,
1270-
display some information about the module distribution to be installed taken
1268+
Executable installers are the natural format for binary distributions
1269+
on Windows. They display a nice graphical user interface, display
1270+
some information about the module distribution to be installed taken
12711271
from the metadata in the setup script, let the user select a few
1272-
(currently maybe too few) options, and start or cancel the installation.
1272+
options, and start or cancel the installation.
12731273

1274-
Since the metadata is taken from the setup script, creating
1275-
Windows installers is usually as easy as running:
1274+
Since the metadata is taken from the setup script, creating Windows
1275+
installers is usually as easy as running:
12761276

12771277
\begin{verbatim}
12781278
python setup.py bdist_wininst
@@ -1284,22 +1284,36 @@ \subsection{Creating Windows Installers}
12841284
python setup.py bdist --formats=wininst
12851285
\end{verbatim}
12861286

1287-
If you have a pure module distribution (only containing pure
1288-
Python modules and packages), the resulting installer will be
1289-
version independent and have a name like \file{foo-1.0.win32.exe}.
1290-
These installers can even be created on \UNIX{} or MacOS platforms.
1287+
If you have a pure module distribution (only containing pure Python
1288+
modules and packages), the resulting installer will be version
1289+
independent and have a name like \file{foo-1.0.win32.exe}. These
1290+
installers can even be created on \UNIX{} or MacOS platforms.
12911291

12921292
If you have a non-pure distribution, the extensions can only be
12931293
created on a Windows platform, and will be Python version dependent.
12941294
The installer filename will reflect this and now has the form
1295-
\file{foo-1.0.win32-py2.0.exe}. You have to create a separate installer
1295+
\file{foo-1.0.win32-py2.0.exe}. You have to create a separate installer
12961296
for every Python version you want to support.
12971297

12981298
The installer will try to compile pure modules into bytecode after
1299-
installation on the target system in normal and optimizing mode.
1300-
If you don't want this to happen for some reason, you can run
1301-
the bdist_wininst command with the \longprogramopt{no-target-compile} and/or
1302-
the \longprogramopt{no-target-optimize} option.
1299+
installation on the target system in normal and optimizing mode. If
1300+
you don't want this to happen for some reason, you can run the
1301+
bdist_wininst command with the \longprogramopt{no-target-compile}
1302+
and/or the \longprogramopt{no-target-optimize} option.
1303+
1304+
By default the installer will display the cool Python powered logo
1305+
when it is run, but you can also supply your own bitmap which must be
1306+
a Windows .bmp file with the \longprogramopt{bitmap} option.
1307+
1308+
The installer will also display a large title on the desktop
1309+
background window when it is run, which is constructed from the name
1310+
of your distribution and the version number. This can be changed to
1311+
another text by using the \longprogramopt{title} option.
1312+
1313+
The installer file will be written to the ``distribution directory''
1314+
--- normally \file{dist/}, but customizable with the
1315+
\longprogramopt{dist-dir} option.
1316+
13031317

13041318
\section{Examples}
13051319
\label{examples}

0 commit comments

Comments
 (0)