PyWin32 installer question

Paul Moore p.f.moore at gmail.com
Thu Dec 28 12:15:23 EST 2017


When I took a quick look at the code, it seemed to be based on a
pretty old version of Python. What version are you using? If it's 2.7
(or better still, Python 3!) then you should have pip available. In
which case you may be better off using pypiwin32, which is a
rebundling of pywin32 as a wheel. "python -m pip install pypiwin21"
should work for you. You may need to force the version to be 219, as
there's only Python 3.6 wheels for version 220 (do this as "python -m
pip install pypiwin32==219") - but I don't think you'll need this, pip
should limit itself to compatible wheels.

Unfortunately, pywin32 is one of the worst extensions to install, as
the project doesn't supply official wheels, and some of the COM stuff
needs registration, which in the wininst script is handled by a
post-install step, but I've no idea how you do that with a wheel - you
may need to ask the project maintainers for advice.

Paul

On 27 December 2017 at 14:58, Skip Montanaro <skip.montanaro at gmail.com> wrote:
> I'm fiddling around with Appveyor, trying to build a Windows installer
> for SpamBayes. This is complicated by two facts:
>
> 1. I don't know squat about Windows.
>
> 2. I don't have access to a Windows command line.
>
> Consequently, every new attempt requires a change to appveyor.yml and
> a git push command. Rather slow going. My latest Appveyor build number
> is 59. Most of the changes were simple fixes for syntax errors.
>
> I got to the point where I (finally!) was able to successfully
> download the appropriate pywin32 installer, but executing it just
> hangs. I sort of assume it's asking os.devnull for something. Alas, I
> couldn't find any sort of command line flags for the installer itself
> in the pywin32 code. I've tried
>
> pywin32.exe /h
>
> but that just sits there (ignores that flag?) and
>
> pywin32.exe /?
>
> which produced some inscrutable output.
>
> Is there some way to coax it into giving me some help and exiting?
>
> Thanks,
>
> Skip
> --
> https://mail.python.org/mailman/listinfo/python-list



More information about the Python-list mailing list