Compiling a CPython library on Mac OSX

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Boris Boutillier

    #1

    Compiling a CPython library on Mac OSX

    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
  • Just

    #2
    Re: Compiling a CPython library on Mac OSX

    In article <pan.2003.12.12 .16.44.08.10165 1@arteris.net>,
    "Boris Boutillier" <boris.boutilli er@arteris.net> wrote:
    [color=blue]
    > 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.[/color]

    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

    Comment

    • Boris Boutillier

      #3
      Re: Compiling a CPython library on Mac OSX

      On Fri, 12 Dec 2003 17:50:46 +0100, Just wrote:
      [color=blue]
      > In article <pan.2003.12.12 .16.44.08.10165 1@arteris.net>,
      > "Boris Boutillier" <boris.boutilli er@arteris.net> wrote:
      >[color=green]
      >> 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.[/color]
      >
      > 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.
      >[/color]
      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

      Comment

      • Just

        #4
        Re: Compiling a CPython library on Mac OSX

        In article <pan.2003.12.12 .16.53.55.73839 3@arteris.net>,
        "Boris Boutillier" <boris.boutilli er@arteris.net> wrote:
        [color=blue][color=green]
        > > 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.
        > >[/color]
        > No at the moment this is not the case, this a personal extension I wrote
        > and I didn't made it a distutil extensions.[/color]

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

        Just

        Comment

        Working...