requirements.txt: Add conditional pyliblzma-req-install

pyliblzma is not required in python >= 3.3, and backports.lzma
works for all versions prior to that one. Let's update
the requirements.txt file to only install that backport
when necessary.
Signed-off-by: NLucas Meneghel Rodrigues <lookkas@gmail.com>
上级 60be0d3c
......@@ -32,7 +32,11 @@ try:
import lzma
LZMA_CAPABLE = True
except ImportError:
LZMA_CAPABLE = False
try:
from backports import lzma
LZMA_CAPABLE = True
except ImportError:
LZMA_CAPABLE = False
class ArchiveException(Exception):
......
......@@ -26,7 +26,11 @@ try:
import lzma
LZMA_CAPABLE = True
except ImportError:
LZMA_CAPABLE = False
try:
from backports import lzma
LZMA_CAPABLE = True
except ImportError:
LZMA_CAPABLE = False
from HTMLParser import HTMLParser
......
# Avocado functional requirements
# .tar.xz support (avocado.utils.archive)
pyliblzma>=0.5.3
backports.lzma>=0.0.10; python_version < '3.3'
# REST client (avocado.core.restclient)
requests>=1.2.3
# six is a stevedore depedency, but we also use it directly
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册