@@ -96,9 +96,6 @@ The available formats for built distributions are:
96
96
+-------------+------------------------------+---------+
97
97
| ``sdux `` | HP-UX :program: `swinstall ` | |
98
98
+-------------+------------------------------+---------+
99
- | ``wininst `` | self-extracting ZIP file for | \( 4) |
100
- | | Windows | |
101
- +-------------+------------------------------+---------+
102
99
| ``msi `` | Microsoft Installer. | |
103
100
+-------------+------------------------------+---------+
104
101
@@ -141,14 +138,9 @@ generated by each, are:
141
138
+--------------------------+-------------------------------------+
142
139
| :command: `bdist_rpm ` | rpm, srpm |
143
140
+--------------------------+-------------------------------------+
144
- | :command: `bdist_wininst ` | wininst |
145
- +--------------------------+-------------------------------------+
146
141
| :command: `bdist_msi ` | msi |
147
142
+--------------------------+-------------------------------------+
148
143
149
- .. note ::
150
- bdist_wininst is deprecated since Python 3.8.
151
-
152
144
.. note ::
153
145
bdist_msi is deprecated since Python 3.9.
154
146
@@ -190,8 +182,7 @@ The former allows you to specify RPM-specific options; the latter allows you to
190
182
easily specify multiple formats in one run. If you need to do both, you can
191
183
explicitly specify multiple :command: `bdist_\* ` commands and their options::
192
184
193
- python setup.py bdist_rpm --packager="John Doe <[email protected] >" \
194
- bdist_wininst --target-version="2.0"
185
+ python setup.py bdist_rpm --packager="John Doe <[email protected] >"
195
186
196
187
Creating RPM packages is driven by a :file: `.spec ` file, much as using the
197
188
Distutils is driven by the setup script. To make your life easier, the
@@ -299,61 +290,6 @@ file winds up deep in the "build tree," in a temporary directory created by
299
290
.. % to the \file{.spec} file.)
300
291
301
292
302
- .. _creating-wininst :
303
-
304
- Creating Windows Installers
305
- ===========================
306
-
307
- .. warning ::
308
- bdist_wininst is deprecated since Python 3.8.
309
-
310
- .. warning ::
311
- bdist_msi is deprecated since Python 3.9.
312
-
313
- Executable installers are the natural format for binary distributions on
314
- Windows. They display a nice graphical user interface, display some information
315
- about the module distribution to be installed taken from the metadata in the
316
- setup script, let the user select a few options, and start or cancel the
317
- installation.
318
-
319
- Since the metadata is taken from the setup script, creating Windows installers
320
- is usually as easy as running::
321
-
322
- python setup.py bdist_wininst
323
-
324
- or the :command: `bdist ` command with the :option: `!--formats ` option::
325
-
326
- python setup.py bdist --formats=wininst
327
-
328
- If you have a pure module distribution (only containing pure Python modules and
329
- packages), the resulting installer will be version independent and have a name
330
- like :file: `foo-1.0.win32.exe `. Note that creating ``wininst `` binary
331
- distributions in only supported on Windows systems.
332
-
333
- If you have a non-pure distribution, the extensions can only be created on a
334
- Windows platform, and will be Python version dependent. The installer filename
335
- will reflect this and now has the form :file: `foo-1.0.win32-py2.0.exe `. You
336
- have to create a separate installer for every Python version you want to
337
- support.
338
-
339
- The installer will try to compile pure modules into :term: `bytecode ` after installation
340
- on the target system in normal and optimizing mode. If you don't want this to
341
- happen for some reason, you can run the :command: `bdist_wininst ` command with
342
- the :option: `!--no-target-compile ` and/or the :option: `!--no-target-optimize `
343
- option.
344
-
345
- By default the installer will display the cool "Python Powered" logo when it is
346
- run, but you can also supply your own 152x261 bitmap which must be a Windows
347
- :file: `.bmp ` file with the :option: `!--bitmap ` option.
348
-
349
- The installer will also display a large title on the desktop background window
350
- when it is run, which is constructed from the name of your distribution and the
351
- version number. This can be changed to another text by using the
352
- :option: `!--title ` option.
353
-
354
- The installer file will be written to the "distribution directory" --- normally
355
- :file: `dist/ `, but customizable with the :option: `!--dist-dir ` option.
356
-
357
293
.. _cross-compile-windows :
358
294
359
295
Cross-compiling on Windows
@@ -370,10 +306,7 @@ For example, on a 32bit version of Windows, you could execute::
370
306
371
307
python setup.py build --plat-name=win-amd64
372
308
373
- to build a 64bit version of your extension. The Windows Installers also
374
- support this option, so the command::
375
-
376
- python setup.py build --plat-name=win-amd64 bdist_wininst
309
+ to build a 64bit version of your extension.
377
310
378
311
would create a 64bit installation executable on your 32bit version of Windows.
379
312
@@ -462,18 +395,3 @@ built-in functions in the installation script.
462
395
and *iconindex * is the index of the icon in the file *iconpath *. Again, for
463
396
details consult the Microsoft documentation for the :class: `IShellLink `
464
397
interface.
465
-
466
-
467
- Vista User Access Control (UAC)
468
- ===============================
469
-
470
- Starting with Python 2.6, bdist_wininst supports a :option: `!--user-access-control `
471
- option. The default is 'none' (meaning no UAC handling is done), and other
472
- valid values are 'auto' (meaning prompt for UAC elevation if Python was
473
- installed for all users) and 'force' (meaning always prompt for elevation).
474
-
475
- .. note ::
476
- bdist_wininst is deprecated since Python 3.8.
477
-
478
- .. note ::
479
- bdist_msi is deprecated since Python 3.9.
0 commit comments