On Tue, Dec 07, 2004 at 07:55:09PM +0100, titouille wrote: > Hello everybody !! > > anyone has try to build ming0.3beta1 for python 2.3.3 under windows ?? > > Since three days, I try to build it with mingw32, and finally, I am > stopped with C declarations error in src/actioncompiler/swf4compiler.y >
I haven't tried under windows, but here is how I got it to compile under linux. Below is my setup.py -Jack """ This is the setup.py for ming-0.3beta1 Do the normal ming compile and then remove all the .o files copy this file to py_ext/ and run as a normal python instal, eg 'python setup.py install' Keep copying header files into this directory until it doesn't complain Done! """ files = [] dirs = ['../src/', '../src/blocks/', '../src/actioncompiler'] ignore = ['read.c', 'main.c'] for (dir) in dirs: for (file) in os.listdir(dir): if (file.endswith('.c') and file not in ignore): files.append('%s/%s' % (dir, file)) files.append('ming_wrap.c') setup(name="ming", py_modules=["ming", 'mingc'], ext_modules=[Extension(name="_mingc", sources=files, libraries=['gif', 'png', 'z'], include_dirs=dirs, )] ) -- http://mail.python.org/mailman/listinfo/python-list