[pywin32-bugs] [ pywin32-Bugs-3107919 ] install with mingw issue
OLD project page for the Python extensions for Windows
Brought to you by:
mhammond
From: SourceForge.net <no...@so...> - 2010-11-12 13:15:41
|
Bugs item #3107919, was opened at 2010-11-12 14:15 Message generated for change (Tracker Item Submitted) made by fleutotg You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=551954&aid=3107919&group_id=78018 Please note that this message will contain a full copy of the comment thread, including the initial issue submission, for this request, not just the latest update. Category: installation Group: None Status: Open Resolution: None Priority: 5 Private: No Submitted By: gauthier fleutot (fleutotg) Assigned to: Nobody/Anonymous (nobody) Summary: install with mingw issue Initial Comment: I try installing pywin32-214 on a winXP-SP3 machine. No visual studio 2003 installed. setup.py install stops with the following error: error: Python was built with Visual Studio 2003; extensions must be built with a compiler than can generate compatible binaries. Visual Studio 2003 was not found on this system. If you have Cygwin installed, you can try compiling with MingW32, by passing "-c mingw32" to setup.py. Since I have mingw installed I tried: setup.py build -c mingw32 The result is: Building pywin32 2.5.214.0 running build running build_py running build_ext Traceback (most recent call last): File "setup.py", line 2152, in <module> ('', ('pywin32.pth',)), File "C:\Program\python25\lib\distutils\core.py", line 151, in setup dist.run_commands() File "C:\Program\python25\lib\distutils\dist.py", line 974, in run_commands self.run_command(cmd) File "C:\Program\python25\lib\distutils\dist.py", line 994, in run_command cmd_obj.run() File "setup.py", line 596, in run build.run(self) File "C:\Program\python25\lib\distutils\command\build.py", line 112, in run self.run_command(cmd_name) File "C:\Program\python25\lib\distutils\cmd.py", line 333, in run_command self.distribution.run_command(command) File "C:\Program\python25\lib\distutils\dist.py", line 994, in run_command cmd_obj.run() File "C:\Program\python25\lib\distutils\command\build_ext.py", line 290, in ru n self.build_extensions() File "setup.py", line 872, in build_extensions self.build_extension(ext) File "setup.py", line 1065, in build_extension why = self._why_cant_build_extension(ext) File "setup.py", line 760, in _why_cant_build_extension raise RuntimeError("Can't find a version in Windows.h") RuntimeError: Can't find a version in Windows.h I tried to define WINVER and _WIN32_WINNT in c:\MinGw\include\Windows.h, to 0x0502, but it did not help. I read somewhere that there were a binary that can be used, but couldn't find it. ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=551954&aid=3107919&group_id=78018 |