Skip to content

Commit

Permalink
Deprecate bdist_wininst .exe installers (#1939)
Browse files Browse the repository at this point in the history
  • Loading branch information
mhammond committed Oct 22, 2022
1 parent 0ea1c66 commit da977e7
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 5 deletions.
4 changes: 4 additions & 0 deletions CHANGES.txt
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,13 @@ All changes can be found via git - eg, for all changes afer a build:
or
https://github.com/mhammond/pywin32/compare/b3xx...main

As of build 305, installation .exe files have been deprecated; see
https://mhammond.github.io/pywin32_installers.html.

Coming in build 305, as yet unreleased
--------------------------------------
* Installation .exe files were deprecated.

* @kxrob put a lot of work towards removing use of the deprecated Unicode
API so we can build on Python 3.12. This should be largely invisible, but
please report any unintended consequences.
Expand Down
8 changes: 3 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -33,14 +33,12 @@ closed. For such issues, please email the
note that you must be subscribed to the list before posting.

## Binaries
By far the easiest way to use pywin32 is to grab binaries from the [most recent release](https://github.com/mhammond/pywin32/releases)

Note that there are no 32-bit binary installers for 3.10 and later - see
[this github issue](https://github.com/mhammond/pywin32/issues/1805)
[Binary releases are deprecated.](https://mhammond.github.io/pywin32_installers.html)
While they are still provided, [find them here](https://github.com/mhammond/pywin32/releases)

## Installing via PIP

You can install pywin32 via pip:
You should install pywin32 via pip:
> pip install pywin32
If you encounter any problems when upgrading (eg, "module not found" errors or similar), you
Expand Down
9 changes: 9 additions & 0 deletions pywin32_postinstall.py
Original file line number Diff line number Diff line change
Expand Up @@ -579,6 +579,15 @@ def install(lib_dir):
pass
print("The pywin32 extensions were successfully installed.")

if is_bdist_wininst:
# Open a web page with info about the .exe installers being deprecated.
import webbrowser

try:
webbrowser.open("https://mhammond.github.io/pywin32_installers.html")
except webbrowser.Error:
print("Please visit https://mhammond.github.io/pywin32_installers.html")


def uninstall(lib_dir):
# First ensure our system modules are loaded from pywin32_system, so
Expand Down

0 comments on commit da977e7

Please sign in to comment.