Christopher Barker wrote: > newbie73 wrote: >> I installed v 2.5 of MacPython from python.org. I am able to build lots of >> other packages using this setup, where packages are installed here: >> /Library/Python/2.5/site-packages >> >> I cannot, however, find the include directories for the macpython >> installation. Can anybody help me locate where they would be? I am trying >> to follow the example in the swig.org tutorial > > the SWIG tutorial is out of date -- the "right" way to compile > extensions for python is to use the distutils -- distutils will figure > out all the paths, flags, etc for you. The latest version of the SWIG > docs has instructions: > > http://www.swig.org/Doc1.3/Python.html#Python_nn6 > > Or look at various distutils instructions.
Or, if you really need to know where it is, you can just ask Python: python -c "import sys,os; print os.path.join(sys.prefix, 'include/python%s' % sys.version[:3])" ;-) -- Robin Dunn Software Craftsman http://wxPython.org Java give you jitters? Relax with wxPython! _______________________________________________ Pythonmac-SIG maillist - Pythonmac-SIG@python.org http://mail.python.org/mailman/listinfo/pythonmac-sig