Hi all,

I have been battling this for a bit.  I am trying to compile the meld3 
(http://www.plope.com/software/meld3) Python extension under Windows 2003 
(Python 2.5 final MinGW (MinGW-5.1.3.exe).

I settled on the method outlined at 
http://wiki.python.org/moin/PyrexOnWindows for compiling Python extensions 
on Windows (and followed those directions).  Unfortunately, this is the 
output I received on my first attempt (which is better than nothing I guess 
:-)):

C:\meld3-0.6>python setup. py install
running install
running build
running build_py
creating build
creating build\lib.win32-2.5
creating build\lib.win32-2.5\meld3
copying meld3\ clearsilverprofile.py -> build\lib.win32-2.5\meld3
copying meld3\example. py -> build\lib.win32-2.5\meld3
copying meld3\meld3.py -> build\lib.win32- 2.5\meld3
copying meld3\melddiff.py -> build\lib.win32-2.5\meld3
copying meld3\meldprofile.py -> build\lib.win32-2.5\meld3
copying meld3\setup.py -> build\lib.win32-2.5\meld3
copying meld3\testclone.py -> build\lib.win32-2.5\meld3
copying meld3\test_getiterator. py -> build\lib.win32-2.5\meld3
copying meld3\test_meld3.py -> build\lib.win32- 2.5\meld3
copying meld3\zptprofile.py -> build\lib.win32-2.5\meld3
copying meld3\__init__.py -> build\lib.win32-2.5\meld3
running build_ext
building 'meld3/cmeld3' extension
creating build\temp.win32- 2.5
creating build\temp.win32-2.5\Release
creating build\temp.win32-2.5\Release\meld3
C:\MinGW\bin\gcc.exe - mno-cygwin -mdll -O -Wall -IC:\Python25\include -IC 
:\Python25\PC -c meld3/cmeld3.c -o 
build\temp.win32-2.5\Release\meld3\cmeld3.o
writing build\temp.win32-2.5\Release\meld3\cmeld3.def
C:\MinGW\bin\gcc.exe -mno -cygwin -shared -s 
build\temp.win32-2.5\Release\meld3\cmeld3.o 
build\temp.win32-2.5\Release\meld3\cmeld3.def -LC:\Python25\libs 
-LC:\Python25\PCBuild -lpython25 -lmsvcr71 -o 
build\lib.win32-2.5\meld3/cmeld3.pyd
Cannot export initmeld3/cmeld3: symbol not defined
collect2: ld returned 1 exit status
error: command 'gcc ' failed with exit status 1


When I opened build\temp.win32-2.5\Release\meld3\cmeld3.def, I found:

LIBRARY cmeld3.pyd
EXPORTS
initmeld3/cmeld3

When I changed the last line from "initmeld3/cmeld3" to "initcmeld3" (adding 
a "c" and dropping the "/cmeld3") like so:

LIBRARY cmeld3.pyd
EXPORTS
initcmeld3

and reran the compile command manually:

C:\MinGW\bin\gcc.exe -mno-cygwin -shared -s 
build\temp.win32-2.5\Release\meld3\cmeld3.o 
build\temp.win32-2.5\Release\meld3\cmeld3.def -LC:\Python25\libs 
-LC:\Python25\PCBuild -lpython25 -lmsvcr71 -o 
build\lib.win32-2.5\meld3/cmeld3.pyd

..it compiled cmeld.pyd.

I then reran python "setup.py install" and got:

C:\meld3-0.6>python setup.py install
running install
running build
running build_py
running build_ext
running install_lib
creating C:\Python25\Lib\site-packages\meld3
copying build\lib.win32-2.5\meld3\clearsilverprofile.py -> 
C:\Python25\Lib\site-packages\meld3
copying build\lib.win32-2.5\meld3\cmeld3.pyd -> 
C:\Python25\Lib\site-packages\meld3
copying build\lib.win32-2.5\meld3\example.py -> 
C:\Python25\Lib\site-packages\meld3
copying build\lib.win32-2.5\meld3\meld3.py -> 
C:\Python25\Lib\site-packages\meld3
copying build\lib.win32-2.5\meld3\melddiff.py -> 
C:\Python25\Lib\site-packages\meld3
copying build\lib.win32-2.5\meld3\meldprofile.py -> 
C:\Python25\Lib\site-packages\meld3
copying build\lib.win32- 2.5\meld3\setup.py -> 
C:\Python25\Lib\site-packages\meld3
copying build\lib.win32-2.5\meld3\testclone.py -> 
C:\Python25\Lib\site-packages\meld3
copying build\lib.win32-2.5\meld3\test_getiterator.py -> 
C:\Python25\Lib\site-packages\meld3
copying build\lib.win32-2.5\meld3\test_meld3.py -> 
C:\Python25\Lib\site-packages\meld3
copying build\lib.win32-2.5\meld3\zptprofile.py -> 
C:\Python25\Lib\site-packages\meld3
copying build\lib.win32-2.5\meld3\__init__.py -> 
C:\Python25\Lib\site-packages\meld3
byte-compiling C:\Python25\Lib\site-packages\meld3\clearsilverprofile.py to 
clearsilverprofile.pyc
byte-compiling C:\Python25\Lib\site-packages\meld3\example.py to example.pyc
byte-compiling C:\Python25\Lib\site-packages\meld3\meld3.py to meld3.pyc
byte-compiling C:\Python25\Lib\site-packages\meld3\melddiff.py to 
melddiff.pyc
byte-compiling C:\Python25\Lib\site-packages\meld3\meldprofile.py to 
meldprofile.pyc
byte-compiling C:\Python25\Lib\site-packages\meld3\setup.py to setup.pyc
byte-compiling C:\Python25\Lib\site-packages\meld3\testclone.py to 
testclone.pyc

byte-compiling C:\Python25\Lib\site-packages\meld3\test_getiterator.py to 
test_getiterator.pyc
byte-compiling C:\Python25\Lib\site-packages\meld3\test_meld3.py to 
test_meld3.pyc
byte-compiling C:\Python25\Lib\site-packages\meld3\zptprofile.py to 
zptprofile.pyc
byte-compiling C:\Python25\Lib\site-packages\meld3\__init__.py to 
__init__.pyc
running install_egg_info
Writing C:\Python25\Lib\site-packages\meld3-0.6-py2.5.egg-info


Is this a bug in Python disutils?  Any thoughts?

Thanks,
Jason

_________________________________________________________________
Get live scores and news about your team: Add the Live.com Football Page  
http://www.live.com/?addtemplate=football

_______________________________________________
Python-win32 mailing list
Python-win32@python.org
http://mail.python.org/mailman/listinfo/python-win32

Reply via email to