Archived

This forum has been archived. Please start a new discussion on GitHub.

Patch to autodetect python include und lib directories on Linux and Mac OS X

Hi,

attached is a patch to py/config/Make.rules. It should be applied in the Ice root directory, for example:
/opt/Ice-3.3.0$ patch -p0 < pythondetect.txt

The patch uses distutils to determine the location of the Python include and lib directories.

The patch works on Linux and should work on Mac OS X. It expects a python (or a $PYTHON_VERSION) executable in the path.

Comments

  • Haven't tried this out, but it sounds like an interesting solution. Thanks.