mirror of https://gitlab.com/ita1024/waf.git
On windows, try $INCLUDEPY/../libs to detect the Python library path
This commit is contained in:
parent
7f1fdd36d5
commit
b1098d40a7
|
@ -416,9 +416,14 @@ def check_python_headers(conf, features='pyembed pyext'):
|
||||||
|
|
||||||
if not result:
|
if not result:
|
||||||
path = [os.path.join(dct['prefix'], "libs")]
|
path = [os.path.join(dct['prefix'], "libs")]
|
||||||
conf.to_log("\n\n# try again with -L$prefix/libs, and pythonXY name rather than pythonX.Y (win32)\n")
|
conf.to_log("\n\n# try again with -L$prefix/libs, and pythonXY rather than pythonX.Y (win32)\n")
|
||||||
result = conf.check(lib=name, uselib='PYEMBED', libpath=path, mandatory=False, msg='Checking for library %s in $prefix/libs' % name)
|
result = conf.check(lib=name, uselib='PYEMBED', libpath=path, mandatory=False, msg='Checking for library %s in $prefix/libs' % name)
|
||||||
|
|
||||||
|
if not result:
|
||||||
|
path = [os.path.normpath(os.path.join(dct['INCLUDEPY'], '..', 'libs'))]
|
||||||
|
conf.to_log("\n\n# try again with -L$INCLUDEPY/../libs, and pythonXY rather than pythonX.Y (win32)\n")
|
||||||
|
result = conf.check(lib=name, uselib='PYEMBED', libpath=path, mandatory=False, msg='Checking for library %s in $INCLUDEPY/../libs' % name)
|
||||||
|
|
||||||
if result:
|
if result:
|
||||||
break # do not forget to set LIBPATH_PYEMBED
|
break # do not forget to set LIBPATH_PYEMBED
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue