[Pyrex] Building Pyrex module with Linux

Robert Kern robert.kern at gmail.com
Wed May 9 04:17:39 UTC 2007


Mike Wyatt wrote:
> I'd like to build the modules on my new Ubuntu box.  I made a trivial
> little Pyrex script that I'm trying to build with distutils.  I copied
> and modified Setup.py from the Demos folder.  I'm using Pyrex 0.9.5.1a
> and whatever the default installation of GCC is for Ubuntu 7.04.
> 
> When I try to run the setup script (i.e. "python setup.py build"), I get
> a ton of errors.  Below you can see the content of my .pyx script, my
> setup.py script, and the error messages I get when I attempt to build
> setup.py.
> 
> It looks like GCC can't find Python.h.  I'm not sure what to do about
> that, though.  I'm pretty new to Linux, and I was hoping that this setup
> script would help me avoid most of these kind of issues.

Make sure you have the python2.5-dev package installed. It has the header files.

-- 
Robert Kern

"I have come to believe that the whole world is an enigma, a harmless enigma
 that is made terrible by our own mad attempt to interpret it as though it had
 an underlying truth."
  -- Umberto Eco




More information about the Pyrex mailing list