Skip to content

Commit

Permalink
setup.py: Force requests 1.x on Python <2.6.3.
Browse files Browse the repository at this point in the history
  • Loading branch information
chrippa committed Nov 15, 2013
1 parent ed40325 commit 0ebafa7
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion setup.py
Expand Up @@ -4,7 +4,7 @@
from sys import version_info, path as sys_path
from os.path import abspath, dirname, join

deps = ["requests>=1.0,<3.0"]
deps = []
packages = ["livestreamer",
"livestreamer.stream",
"livestreamer.plugin",
Expand All @@ -19,6 +19,12 @@
(version_info[0] == 3 and version_info[1] < 2):
deps.append("argparse")

# requests 2.0 does not work correctly on Python <2.6.3
if (version_info[0] == 2 and version_info[1] == 6 and version_info[2] < 3):
deps.append("requests>=1.0,<2.0")
else:
deps.append("requests>=1.0,<3.0")


srcdir = join(dirname(abspath(__file__)), "src/")
sys_path.insert(0, srcdir)
Expand Down

0 comments on commit 0ebafa7

Please sign in to comment.