Ticket #165 (closed defect: fixed)
windows: easy_install fails without even if mingw is available
| Reported by: | ThurnerRupert | Owned by: | cmlenz |
|---|---|---|---|
| Priority: | major | Milestone: | 0.6 |
| Component: | Serialization | Version: | devel |
| Keywords: | _speedups windows | Cc: |
Description
there is two problems:
- out of the box install fails with
C:\tmp>easy_install http://svn.edgewall.org/repos/genshi/trunk/ Downloading http://svn.edgewall.org/repos/genshi/trunk/ Doing subversion checkout from http://svn.edgewall.org/repos/genshi/trunk/ to c:\data\profiles\a867180\locals~1\temp\easy_install-eubo20\trunk svn: PROPFIND request failed on '/repos/edgewall/tools/doc' svn: PROPFIND of '/repos/edgewall/tools/doc': 403 Forbidden (https://svn.edgewall.org) Processing trunk Running setup.py -q bdist_egg --dist-dir c:\data\profiles\a867180\locals~1\temp\easy_install-eubo20\trunk\egg-dist-tmp-vm2flo warning: no files found matching 'doc\api\*.*' warning: no files found matching 'doc\*.html' error: Setup script exited with 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. C:\tmp>easy_install -c mingw32 http://svn.edgewall.org/repos/genshi/trunk/ usage: easy_install-script.py [options] requirement_or_url ... or: easy_install-script.py --help error: option -c not recognized
- if you do it in steps with mingw it fails also
- svn co http://svn.edgewall.org/repos/genshi/trunk/ genshi-trunk
- add the following to setup.cfg:
[build] compiler=mingw32
creating build\temp.win32-2.5\Release\genshi c:\apps\mingw\bin\gcc.exe -mno-cygwin -mdll -O -Wall -Ic:\apps\python25\include -Ic:\apps\python25\PC -c genshi/_speedups.c -o build\temp.win32-2.5\Release\genshi\_speedups.o genshi/_speedups.c:535: warning: 'MarkupType' defined locally after being referenced with dllimport linkage writing build\temp.win32-2.5\Release\genshi\_speedups.def c:\apps\mingw\bin\gcc.exe -mno-cygwin -shared -s build\temp.win32-2.5\Release\genshi\_speedups.o build\temp.win32-2.5\Release\genshi\_speedups.def -Lc:\apps\python25\libs -Lc :\apps\python25\PCBuild -lpython25 -lmsvcr71 -o build\lib.win32-2.5\genshi\_speedups.pyd build\temp.win32-2.5\Release\genshi\_speedups.o:_speedups.c:(.text+0x179): undefined reference to `_imp__MarkupType' build\temp.win32-2.5\Release\genshi\_speedups.o:_speedups.c:(.text+0x180): undefined reference to `_imp__MarkupType' build\temp.win32-2.5\Release\genshi\_speedups.o:_speedups.c:(.text+0x260): undefined reference to `_imp__MarkupType' build\temp.win32-2.5\Release\genshi\_speedups.o:_speedups.c:(.text+0x408): undefined reference to `_imp__MarkupType' build\temp.win32-2.5\Release\genshi\_speedups.o:_speedups.c:(.text+0x7a9): undefined reference to `_imp__MarkupType' build\temp.win32-2.5\Release\genshi\_speedups.o:_speedups.c:(.text+0x7f4): more undefined references to `_imp__MarkupType' follow collect2: ld returned 1 exit status ********************************************************************** WARNING: An optional C extension could not be compiled, speedups will not be available. ********************************************************************** creating build\bdist.win32
Attachments
Change History
Note: See
TracTickets for help on using
tickets.

