提交 0b97012e authored 作者: Frederic's avatar Frederic

Remove the second hack for .c.txt files.

上级 e1c60d1f
......@@ -76,10 +76,7 @@ except ImportError:
except ImportError:
_logger.info("Compiling new CVM")
dirname = 'lazylinker_ext'
# We use a .txt extensions as otherwise it don't get
# included when we create a package to send to pypi
# This happen even if we tell to include *.c files
cfile = os.path.join(theano.__path__[0], 'gof', 'lazylinker_c.c.txt')
cfile = os.path.join(theano.__path__[0], 'gof', 'lazylinker_c.c')
code = open(cfile).read()
loc = os.path.join(config.compiledir, dirname)
if not os.path.exists(loc):
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论