[Pyrex] Pyrex on Mac OS X
Bob Ippolito
bob at redivi.com
Mon Nov 22 09:03:50 CET 2004
On Nov 22, 2004, at 9:44 AM, Justin Walker wrote:
>
> On Nov 21, 2004, at 23:09, Bob Ippolito wrote:
>
>>
>> On Nov 22, 2004, at 7:19 AM, Justin Walker wrote:
> [snip]
>> You're not compiling it correctly. You shouldn't do such things by
>> hand, use distutils. I think in this case, the linker flags (-bundle
>> -framework Python) should have been towards the end. Also, -fPIC
>> shouldn't be necessary as it is the default unless you're using
>> -fast...
>
> Yeah; most of this was just cobbled together from someone else's work
> on Linux. I'm jumping into the middle, without much knowledge of the
> whole process.
>
> I should have mentioned that I noticed the refs to distutils in the
> earlier discussion, and I just located some discussion on the Python
> website. However that doc is oriented to putting together a
> distribution; I just want to compile :-}. Is there specific
> information on this floating around, or should I spend some time
> looking at <http://www.python.org/doc/current/dist/dist.html>?
There's no difference between "just compiling" and putting together a
distribution. Constructing a distutils setup.py is rather trivial so
long as you have simple requirements. Pyrex even ships with a
distutils extension for taking pyx files "directly" to Python
extensions. See The Pyrex Guide <http://ldots.org/pyrex-guide/> for
examples.
-bob
More information about the Pyrex
mailing list