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

Remove the second hack for .c.txt files.

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