提交 154549a2 编写于 作者: Y Yanan Fu

avocado/setup.py:

    python 2.6 require stevedore>=1.8.0,<=1.10.0
    but,there is no constraint condition in setup.py,
    it will cause vt-bootstrap failed with python 2.6.
    So define the stevedore version conditionally on
    the current python version

issue:
    https://github.com/avocado-framework/avocado/issues/1613Signed-off-by: NYanan Fu <yfu@redhat.com>
上级 e6e74796
......@@ -24,6 +24,11 @@ from setuptools import setup, find_packages
VERSION = open('VERSION', 'r').read().strip()
VIRTUAL_ENV = hasattr(sys, 'real_prefix')
if sys.version_info[:2] >= (2, 7):
stevedore_version = 'stevedore>=1.8.0'
else:
stevedore_version = 'stevedore>=1.8.0,<=1.10.0'
def get_dir(system_path=None, virtual_path=None):
"""
......@@ -170,4 +175,4 @@ if __name__ == '__main__':
zip_safe=False,
test_suite='selftests',
python_requires='>=2.6',
install_requires=['stevedore'])
install_requires=[stevedore_version])
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册