ming for python

Jack Diederich jack at performancedrivers.com
Wed Dec 8 20:28:20 CET 2004

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


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

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))

      py_modules=["ming", 'mingc'],
                             libraries=['gif', 'png', 'z'],

More information about the Python-list mailing list