ming for python

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • titouille

    ming for python

    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

    If anyone has build with success ming (mingc.pyd) for python 2.3.3, can
    he please send me this file, or explain what I do to build it
    successfully ??

    I have downloaded all software who are needed (bison, flex, mingw
    developer Studio to have make, dlltool, etc...) But finally, I'm not
    sure that I can compile theses sources with mingw...

    I have followed instructions on

    - http://www.u-blog.net/corailnumerique/2003/12/17 (in french, it's my
    mother tongue...) and
    -



    but no results...

    If anyone has a solution, please help me :)


    Thierry
  • Michel Claveau - abstraction méta-galactique non t

    #2
    Re: ming for python

    Ha ! Ha ! Tu tentes la coup de l'émigration ?
    J'espère que ça marchera...
    --
    Michel Claveau



    Comment

    • Jack Diederich

      #3
      Re: ming for python

      On Tue, Dec 07, 2004 at 07:55:09PM +0100, titouille wrote:[color=blue]
      > 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
      >[/color]

      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('m ing_wrap.c')
      setup(name="min g",
      py_modules=["ming", 'mingc'],
      ext_modules=[Extension(name= "_mingc",
      sources=files,
      libraries=['gif', 'png', 'z'],
      include_dirs=di rs,
      )]
      )

      Comment

      Working...