Building C extensions

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Paolo Pantaleo

    #1

    Building C extensions

    Well I'm just courious: if I want to buid a C extension, I shoul use
    the same compiler that has been used to build python (right?). Since
    python has been built using Visual C, how can I build an extension if
    I don't have Visual Studio?

    PAolo
  • casevh@comcast.net

    #2
    Re: Building C extensions


    Paolo Pantaleo wrote:
    Well I'm just courious: if I want to buid a C extension, I shoul use
    the same compiler that has been used to build python (right?). Since
    python has been built using Visual C, how can I build an extension if
    I don't have Visual Studio?
    >
    PAolo
    Use mingw32. It should work fine for most extensions.

    For example, see

    and the followup messages.

    casevh

    Comment

    • JW

      #3
      Re: Building C extensions

      On Mon, 06 Nov 2006 14:03:54 +0100, Paolo Pantaleo wants to build a C
      extension (presumably for Windows):

      A few months ago, I suffered the same misfortune of needing to port a
      pyrex-generated extension to Windows. I'm sure it's easier than I made
      it, but have a look at the thread:

      http://tinyurl.com/yb4bps

      If you're developing under Windows (you poor fellow!), you may actually
      have a slightly easier time than did I.

      Jim Wilson
      Gainesville, FL

      Comment

      • Martin v. Löwis

        #4
        Re: Building C extensions

        Paolo Pantaleo schrieb:
        Well I'm just courious: if I want to buid a C extension, I shoul use
        the same compiler that has been used to build python (right?). Since
        python has been built using Visual C, how can I build an extension if
        I don't have Visual Studio?
        If you don't have mingw32, either, you can't build the extension module.
        You need to get a supported compiler. If you don't have one, find
        somebody who builds the extension for you.

        Regards,
        Martin

        Comment

        Working...