Re: Update Windows binaries (no pywin32 sub-problem)



As far as I remember my thoughts about pywin32 on msys after reading 
https://github.com/Alexpux/MINGW-packages/issues/751
shows that "it is not ready for msys".

Root of a problem is in a fact that pywin32 source code contains some visual-studio-specific parts and can't 
be compiled with mingw.
And visual studio build uses malloc/free from library that is used by visual studio (ucrtbase.dll i think). 
The version stored in pip repo is or official python for windows binary (which is compiled by VS2015).

But mingws' python is compiled with mingw and uses malloc/free from corresponding library (msvcrt.dll i 
think).

So I'm not sure there is simple way to use pywin32 with mingw64's python without changing pywin32 source code.
--
Vasily

Thanks Vasily.

I did have one more thing I tried
$ wget --no-verbose 
https://files.pythonhosted.org/packages/d0/f7/56e35902d32299020cf9136264ca102ff0b03c0555621b469c825bc10d08/pypiwin32-220-cp36-none-win_amd64.whl
 && python3 -m pip install pypiwin32-220-cp36-none-win_amd64.whl
pypiwin32-220-cp36-none-win_amd64.whl is not a supported wheel on this platform.

I tried the 32 bit version too. Python version is 3.6.2, so I'm not sure why it won't let me use that wheel.

On Sat, Apr 28, 2018 at 3:34 PM, Vasily Galkin <galkin-vv yandex ru> wrote:

I'm very sorry by not mentioning this earlier but pywin32 is NOT hard dependency for building meld 
installer, it's an *optional* dependency of cxFreeze.

In the pygobject-win32 build it is only used for writing version info into exe file headers, which is 
useful, but not required at all.

So building installer without it would be quite fine!

The bad thing about msys2 - is the random-hangs bug https://gitlab.gnome.org/GNOME/meld/issues/174

Oh, one last thing I forgot to mention is that there's currently no package for pywin32 in the MSYS2 
repos either.



On Sat, Apr 28, 2018 at 3:19 PM, Keegan Witt <keeganwitt gmail com> wrote:



I'm having trouble getting pywin32 installed in MSYS2. When I try to install with pip, I get errors$ 
python3 -m pip install pypiwin32==219

Collecting pypiwin32==219

Using cached 
https://files.pythonhosted.org/packages/2b/ca/5c086c18de8f70222787b3e824e755b68d99272531522e77bb381d4f60c8/pypiwin32-219.zip

Complete output from command python setup.py egg_info:

Traceback (most recent call last):

File "<string>", line 1, in <module>

File "/tmp/pip-install-d9xe2c9w/pypiwin32/setup.py", line 121

print "Building pywin32", pywin32_version

^

SyntaxError: Missing parentheses in call to 'print'



----------------------------------------

Command "python setup.py egg_info" failed with error code 1 in /tmp/pip-install-d9xe2c9w/pypiwin32/



$ python3 -m pip install pypiwin32==223



Collecting pypiwin32==223

Using cached 
https://files.pythonhosted.org/packages/d0/1b/2f292bbd742e369a100c91faa0483172cd91a1a422a6692055ac920946c5/pypiwin32-223-py3-none-any.whl

Collecting pywin32>=223 (from pypiwin32==223)

Could not find a version that satisfies the requirement pywin32>=223 (from pypiwin32==223) (from 
versions: )

No matching distribution found for pywin32>=223 (from pypiwin32==223)



Downloading and installing outside pip isn't an option because distutils doesn't support silent installs 
(https://github.com/mhammond/pywin32/issues/845). If you run the command locally, you can see it pops up 
the GUI installer.

$ wget --no-verbose --output-document=pywin32.exe 
https://github.com/mhammond/pywin32/releases/download/b223/pywin32-223.win-amd64-py3.6.exe && 
./pywin32.exe && rm pywin32.exe



We could try compiling pywin32 from source, but it looks like it might be complicated.



On Wed, Mar 28, 2018 at 12:54 AM, Keegan Witt <keeganwitt gmail com> wrote:



When I do python --version, I get "Python 3.6.2" (and that's the version I see pacman downloaded). I 
think maybe the AIO installer is installing some stuff I don't have in pacman yet.





[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]