提交 2dc31319 authored 作者: Frederic's avatar Frederic

Code symplification.

上级 f3f97d77
...@@ -242,15 +242,13 @@ SOMEPATH/Canopy_64bit/User/lib/python2.7/site-packages/numpy/distutils/system_in ...@@ -242,15 +242,13 @@ SOMEPATH/Canopy_64bit/User/lib/python2.7/site-packages/numpy/distutils/system_in
assert len(p2) == 1, ("Canopy changed the location of MKL", assert len(p2) == 1, ("Canopy changed the location of MKL",
p, p2, [os.listdir(os.path.join(p, sub)) p, p2, [os.listdir(os.path.join(p, sub))
for sub in p2]) for sub in p2])
if sys.platform == "linux2": p2 = os.path.join(p, p2[0], subsub)
p2 = os.path.join(p, p2[0], "lib")
assert os.path.exists(p2), "Canopy changed the location of MKL" assert os.path.exists(p2), "Canopy changed the location of MKL"
if sys.platform == "linux2":
return ' '.join( return ' '.join(
['-L%s' % p2] + ['-L%s' % p2] +
['-l%s' % l for l in blas_info['libraries']]) ['-l%s' % l for l in blas_info['libraries']])
elif sys.platform == 'win32': elif sys.platform == 'win32':
p2 = os.path.join(p, p2[0], "Scripts")
assert os.path.exists(p2), "Canopy changed the location of MKL"
return ' '.join( return ' '.join(
['-L%s' % p2] + ['-L%s' % p2] +
# Why on Windows, the library used are not the # Why on Windows, the library used are not the
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论