FAQ
Hi Folks,

I am learning Extending Python, by testing the demo script of
Programming Python. In the book, a makefile for Linux is there, but I
am using Windows currently. I wish somebody would help me to get a
makefile for Windows, my makefile.linux is as below:

PYDIR= c:\Python25
PY = $(PYDIR)

hello.so: hello.c
gcc hello.c -g -I$(PY)/include -I$(PY) -fpic -share -o
hello.so
clean:
rm hello.so core



Thanks a lot!


Muddy Colder

Search Discussions

  • Scott David Daniels at Feb 12, 2009 at 9:40 pm

    Muddy Coder wrote:
    Hi Folks,

    I am learning Extending Python, by testing the demo script of
    Programming Python. In the book, a makefile for Linux is there, but I
    am using Windows currently. I wish somebody would help me to get a
    makefile for Windows, my makefile.linux is as below:
    Use distutils, and write a setup.py. You will want to use mingw32.
    Searching for "building python25 C extensions mingw32" should point you
    right.

    --Scott David Daniels
    Scott.Daniels at Acm.Org

Related Discussions

Discussion Navigation
viewthread | post
Discussion Overview
grouppython-list @
categoriespython
postedFeb 12, '09 at 6:11p
activeFeb 12, '09 at 9:40p
posts2
users2
websitepython.org

People

Translate

site design / logo © 2023 Grokbase