Description: Do not assume that python*-config is a Python script; just call it as an executable. Author: Martin Pitt Bug: https://bugzilla.samba.org/show_bug.cgi?id=9503 Index: samba4-4.0.0~rc5+dfsg1/buildtools/wafadmin/Tools/python.py =================================================================== --- samba4-4.0.0~rc5+dfsg1.orig/buildtools/wafadmin/Tools/python.py 2012-10-02 10:24:39.000000000 +0200 +++ samba4-4.0.0~rc5+dfsg1/buildtools/wafadmin/Tools/python.py 2012-12-13 18:20:20.522129093 +0100 @@ -259,7 +259,7 @@ includes = [] if python_config: - for incstr in Utils.cmd_output("%s %s --includes" % (python, python_config)).strip().split(): + for incstr in Utils.cmd_output("%s --includes" % python_config).strip().split(): # strip the -I or /I if (incstr.startswith('-I') or incstr.startswith('/I')):