cython setup.py gives .o instead of .dll

Posted by alok1974 on Stack Overflow See other posts from Stack Overflow or by alok1974
Published on 2011-03-14T00:07:22Z Indexed on 2011/03/14 0:09 UTC
Read the original article Hit count: 198

Filed under:
|
|
|

Hi,

I am a newbie to cython, so pardon me if I am missing something obvious here. I am trying to build c extensions to be used in python for enhanced performance. I have fc.py module with a bunch of function and trying to generate a .dll through cython using dsutils and running on win64:

c:\python26\python c:\cythontest\setup.py build_ext --inplace

I have the dsutils.cfg in C:\Python26\Lib\distutils. As required the disutils.cfg has the following config settings:

[build]
compiler = mingw32

My startup.py looks like this:

from distutils.core import setup
from distutils.extension import Extension
from Cython.Distutils import build_ext

ext_modules = [Extension('fc', [r'C:\cythonTest\fc.pyx'])]

setup(
  name = 'FC Extensions',
  cmdclass = {'build_ext': build_ext},
  ext_modules = ext_modules
)

I have latest version mingw for target/host amdwin64 type builds. I have the latest version of cython for python26 for win64. Cython does give me an fc.c without errors, only a few warning for type conversions, which I will handle once I have it right. Further it produces fc.def an fc.o files Instead of giving a .dll. I get no errors. I find on threads that it will create the .so or .dll automatically as required, which is not happening.

© Stack Overflow or respective owner

Related posts about python

Related posts about dll