提交 0fa004e1 authored 作者: Michael Osthege's avatar Michael Osthege 提交者: Brandon T. Willard

Replace custom locking mechanism with filelock

Closes #203
上级 a2f9752f
......@@ -87,7 +87,7 @@ def main():
cache = get_module_cache(init_args=dict(do_refresh=False))
cache.clear_old()
elif sys.argv[1] == "unlock":
theano.compile.compilelock.force_unlock()
theano.compile.compilelock.force_unlock(config.compiledir)
print("Lock successfully removed!")
elif sys.argv[1] == "purge":
theano.compile.compiledir.compiledir_purge()
......
......@@ -57,7 +57,7 @@ if __name__ == "__main__":
license=LICENSE,
platforms=PLATFORMS,
packages=find_packages(exclude=["tests.*"]),
install_requires=["numpy>=1.9.1", "scipy>=0.14"],
install_requires=["numpy>=1.9.1", "scipy>=0.14", "filelock"],
package_data={
"": [
"*.txt",
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论