提交 43d64f26 编写于 作者: H Hao Liu

setup.py: Set zip_safe flag to false

In module avocado.core.plugins.builtin, There is a calling of
os.listdir() to iterate files in the installed python directory.

If avocado is installed in an .egg file which is compressed, it will
fail to load because that path does not really exists.

To avoid this failure, this patch set zip_safe to False explicitly.
So setuptools will install package to a real directory instead of a
zipped .egg file.
Signed-off-by: NHao Liu <hliu@redhat.com>
上级 7044cc09
......@@ -124,4 +124,5 @@ if __name__ == '__main__':
data_files=get_data_files(),
scripts=['scripts/avocado',
'scripts/avocado-rest-client'],
zip_safe=False,
test_suite='selftests')
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册