提交 c24b9572 authored 作者: ruslanagit's avatar ruslanagit

Add support for spaces in paths

Make theano support programs and packages installed under paths which include spaces (such as 'Program Files')
上级 243d7434
...@@ -324,8 +324,8 @@ class NVCC_compiler(Compiler): ...@@ -324,8 +324,8 @@ class NVCC_compiler(Compiler):
cmd.extend('-I%s' % idir for idir in include_dirs) cmd.extend('-I%s' % idir for idir in include_dirs)
cmd.extend(['-o', lib_filename]) cmd.extend(['-o', lib_filename])
cmd.append(os.path.split(cppfilename)[-1]) cmd.append(os.path.split(cppfilename)[-1])
cmd.extend(['-L%s' % ldir for ldir in lib_dirs]) cmd.extend(['-L"%s"' % ldir for ldir in lib_dirs])
cmd.extend(['-l%s' % l for l in libs]) cmd.extend(['-l"%s"' % l for l in libs])
if sys.platform == 'darwin': if sys.platform == 'darwin':
# This tells the compiler to use the already-loaded python # This tells the compiler to use the already-loaded python
# symbols (which should always be the right ones). # symbols (which should always be the right ones).
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论