Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Python > Compiling a CPython library on Mac OSX

Reply
Thread Tools

Compiling a CPython library on Mac OSX

 
 
Boris Boutillier
Guest
Posts: n/a
 
      12-12-2003
Hi all,

I'm trying to make a port of a python library written in C to Mac OsX,
is there some documentation to help in the process ? I m having trouble
with the creation of the shared library, and I'm not sure this is the way
it should be done.

Boris
 
Reply With Quote
 
 
 
 
Just
Guest
Posts: n/a
 
      12-12-2003
In article <>,
"Boris Boutillier" <> wrote:

> I'm trying to make a port of a python library written in C to Mac OsX,
> is there some documentation to help in the process ? I m having trouble
> with the creation of the shared library, and I'm not sure this is the way
> it should be done.


Does it come with a setup.py file? In that case: just follow the regular
instructions. Make sure you have the Apple developer tools installed.

Just
 
Reply With Quote
 
 
 
 
Boris Boutillier
Guest
Posts: n/a
 
      12-12-2003
On Fri, 12 Dec 2003 17:50:46 +0100, Just wrote:

> In article <>,
> "Boris Boutillier" <> wrote:
>
>> I'm trying to make a port of a python library written in C to Mac OsX,
>> is there some documentation to help in the process ? I m having trouble
>> with the creation of the shared library, and I'm not sure this is the way
>> it should be done.

>
> Does it come with a setup.py file? In that case: just follow the regular
> instructions. Make sure you have the Apple developer tools installed.
>

No at the moment this is not the case, this a personal extension I wrote
and I didn't made it a distutil extensions.

Boris

 
Reply With Quote
 
Just
Guest
Posts: n/a
 
      12-12-2003
In article <>,
"Boris Boutillier" <> wrote:

> > Does it come with a setup.py file? In that case: just follow the regular
> > instructions. Make sure you have the Apple developer tools installed.
> >

> No at the moment this is not the case, this a personal extension I wrote
> and I didn't made it a distutil extensions.


In that case: use distutils It's the easiest way to build C
extensions. A minimal setup.py is not hard to write.

Just
 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Installation on Mac OSX 10.6.8 doesn't create the folder: /System/Library/Frameworks/Python.framework/Versions/2.7/ kramer65 Python 1 04-02-2013 11:09 PM
Compiling modules in OSX, eg PyUSB? Dr Mephesto Python 7 03-21-2009 01:34 PM
Erros when compiling a CPP program which uses CPython API functions grbgooglefan Python 6 12-07-2007 11:05 AM
2007/11/07 EdgeCAM 12, SHIPFLOW 4.0, Microsoft Office Communicator 2007, Apple Mac OSX Server Leopard 10.5 for Mac, other ... ola@mail.gr NZ Computing 0 11-08-2007 05:49 AM
Mac OSX oddities (compiling Python plus tkinter) MichaelW Python 1 11-23-2005 01:44 PM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57