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

Remove the hack with filename extension by fixing it correctly.

上级 30cf5d44
global-include *.txt
global-include *.c
global-include *.cu
global-include *.cuh
global-include *.sh
......
......@@ -190,6 +190,7 @@ def do_setup():
packages=find_packages(),
install_requires=['numpy>=1.5.0', 'scipy>=0.7.2'],
package_data={
'': ['*.txt', '*.rst', '*.cu', '*.cuh', '*.c', '*.sh', '*.pkl',
'': ['*.txt', '*.rst', '*.cu', '*.cuh', '*.c', '*.sh', '*.pkl',
'ChangeLog'],
'theano.misc': ['*.sh']
......
......@@ -52,11 +52,8 @@ except ImportError:
_logger.info("Compiling C code for scan")
dirname = 'scan_perform'
# 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], 'scan_module',
'scan_perform.c.txt')
'scan_perform.c')
code = open(cfile).read()
loc = os.path.join(config.compiledir, dirname)
if not os.path.exists(loc):
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论