[apologies if this appears twice, I sent this last night, but it  
doesn't appear to have appeared on the list...]

I'm having a odd problem with distutils that I'm not sure I  
understand. Here is the background information:

Arch: i386
OS: 10.4.9
Python: 2.5.1
swig: 1.3.31

I'm trying to build and install a wrapper around an already existing C 
++ library I wrote a while ago and I'm using distutils to handle the  
whole thing for me. here is my setup.py:


from distutils.core import setup, Extension

module1 = Extension('_GLFT',
                     library_dirs = ['/usr/local/lib', '/System/ 
Library/Frameworks/OpenGL.framework/Versions/Current/Libraries'],
                     libraries = ['GLFT', 'GL', 'freetype'],
                     include_dirs= ['/usr/include/freetype2','/usr/ 
local/include/GLFT','/usr/local/include', '/usr/local/include/ 
freetype2'],
                     sources=['GLFT.i'],
                     swig_opts=['-c++'],
                     language='c++')

setup(name='GLFT',
       version='1.0',
       description='This is a wrapper around libGLFT',
       options={'build_ext':{'swig_opts':'-c++'}},
       platforms=['i386'],
       ext_modules=[module1])



On Linux, I use python setup.py install and everything installs fine.  
On OSX, swig runs fine, all of the files appear to be built, but  
something seems to happen in the installation phase. The _GLFT.so  
module gets installed and the egg info, but the generated GLFT.py is  
left behind. Can anyone tell me why that might be and how I can fix it?

-Black

_______________________________________________
Pythonmac-SIG maillist  -  Pythonmac-SIG@python.org
http://mail.python.org/mailman/listinfo/pythonmac-sig

Reply via email to