HowTo Use Cython on a Windows XP Box?

Paul McGuire ptmcg at austin.rr.com
Sat Sep 1 08:00:34 CEST 2007


On Sep 1, 12:13 am, John Machin <sjmac... at lexicon.net> wrote:
> On Sep 1, 1:40 pm, Paul McGuire <pt... at austin.rr.com> wrote:
>
>
>
>
>
> > On Aug 31, 9:06 pm, David Lees <debl2NoS... at verizon.net> wrote:
>
> > > August 31, 2007
>
> > > I just downloaded the current Cython release and have no problem running
> > > the cpython.py translator on the demo code.  But when I try compiling, I
> > > get an error complaining that my version of Python (which is the current
> > > 2.5.1 downloaded from python.org) was compiled with Visual C++ 2003.  I
> > > only have Visual C++ 2005 on my machine and am unable to find a download
> > > of 2003 on the Microsoft site (no big surprise).  I have never built
> > > Python from source.  Is it necessary or can someone suggest an alternative?
>
> > > TIA
>
> > > david lees
>
> > Unless you are customizing Python (and you can accomplish a *lot*
> > without doing so), it is not necessary to build Python from source.
> > Download one of the pre-built Windows binaries and install it, or get
> > the Win Python distribution from ActiveState and install that.  Then
> > start writing your own Python demo scripts.
>
> Paul, AFAICT the OP is referring not to CPython, but to Cython, which
> is a Pyrex fork. Seehttp://www.cython.org/
>
> Building CPython from source is likely to be a red herring. The OP's
> question appears to be "How do I, on Windows, compile C code generated
> by Cython into a pyd that will play happily with the standard-issue
> python.exe and python25.dll?", and is probably best directed to one of
> the 3 forums mentioned on the above-referenced page.
>
> HTH,
> John- Hide quoted text -
>
> - Show quoted text -

Thanks, I thought "Cython" was a typo of "CPython".

Glad the OP found a better-informed resource.

-- Paul




More information about the Python-list mailing list