Yevgen Muntyan - 2014-06-18

Code which finds the python directories is here: https://bitbucket.org/medit/medit/src/9a939f3f31de867326b3c5904a7ce550e6594024/m4/moo-python.m4?at=default

I suppose the problem is this:

      PYTHON_LIBS=`$PYTHON -c "from distutils.sysconfig import *; \
                               from string import join; \
                               print '-L' + PREFIX + '/lib', \
                               '-lpython';"`$py_version

and it should use some other variable instead of PREFIX.