提交 efca9be8 authored 作者: Frederic's avatar Frederic

Make Theano use the good link directory on windows with canopy.

上级 986e21f0
...@@ -1446,8 +1446,11 @@ def std_lib_dirs_and_libs(): ...@@ -1446,8 +1446,11 @@ def std_lib_dirs_and_libs():
libname = 'python' + python_version.replace('.', '') libname = 'python' + python_version.replace('.', '')
# Also add directory containing the Python library to the library # Also add directory containing the Python library to the library
# directories. # directories.
python_lib_dir = os.path.join(os.path.dirname(python_inc), 'libs') python_lib_dirs = [os.path.join(os.path.dirname(python_inc), 'libs')]
return [libname], [python_lib_dir] if "Canopy" in python_lib_dirs[0]:
# Canopy store libpython27.a and libmsccr90.a in this directory.
python_lib_dirs.append(os.path.join(sys.prefix, '..', 'libs'))
return [libname], python_lib_dirs
# Suppress -lpython2.x on OS X since the `-undefined dynamic_lookup` # Suppress -lpython2.x on OS X since the `-undefined dynamic_lookup`
# makes it unnecessary. # makes it unnecessary.
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论