[Pyrex] Pyrex w/ MinGW

Mike Wyatt mwyatt at wi.rr.com
Tue Oct 24 04:08:27 UTC 2006


Okay, I made a stupid mistake.  I forgot to use the Pyrex module to 
compile my .pyx files into .c files.  Everything seems to work fine now.

---------------------------------
It's been a while since I installed Pyrex on my desktop, and I'm having 
some issues getting it working on my laptop.  I followed these directions:

http://wiki.python.org/moin/PyrexOnWindows

Below is the setup.py file used to build the extensions, and the result 
of running the script.  Any thoughts on why I'm getting that error?

*1) setup.py*

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

setup(
    name = "PyrexGuide",
    ext_modules=[
        Extension("matrix", ["matrix.pyx"], library_dirs=["C:\\Program 
Files\\MinGW\\lib"], libraries=["opengl32"]),
        Extension("vector", ["vector.pyx"], library_dirs=["C:\\Program 
Files\\MinGW\\lib"], libraries=["GlU32"]),
        Extension("quaternion", ["quaternion.pyx"], 
library_dirs=["C:\\Program Files\\MinGW\\lib"])
    ],
    cmdclass = {'build_ext': build_ext}
)

*2)  Running setup.py*
C:\development\workspace\Math3D>python.exe setup.py build_ext install
running build_ext
building 'matrix' extension
C:\Program Files\MinGW\bin\gcc.exe -mno-cygwin -mdll -O -Wall 
"-Ic:\program file
s\python24\include" "-Ic:\program files\python24\PC" -c matrix.c -o 
build\temp.w
in32-2.4\Release\matrix.o
gcc: matrix.c: No such file or directory
gcc: no input files
error: command 'gcc' failed with exit status 1

C:\development\workspace\Math3D>pause
Press any key to continue . . .
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.copyleft.no/pipermail/pyrex/attachments/20061024/9a42a9d0/attachment-0001.html 
-------------- next part --------------
An embedded message was scrubbed...
From: Mike Wyatt <mwyatt at wi.rr.com>
Subject: Pyrex w/ MinGW
Date: Mon, 23 Oct 2006 22:24:49 -0500
Size: 4253
Url: http://lists.copyleft.no/pipermail/pyrex/attachments/20061024/9a42a9d0/attachment-0001.mht 


More information about the Pyrex mailing list