1
0
mirror of https://github.com/spaam/svtplay-dl.git synced 2024-11-27 13:44:14 +01:00

setup: we only need the security extras for <2.7.9

We need those packages for SNI support.
This commit is contained in:
Johan Andersson 2016-01-07 20:15:08 +01:00
parent 1ddaad7beb
commit 424a74ea5b

View File

@ -9,13 +9,20 @@ srcdir = os.path.join(os.path.dirname(os.path.abspath(__file__)), "lib/")
sys.path.insert(0, srcdir)
import svtplay_dl
deps = []
if sys.version_info[0] == 2 and sys.version_info[1] <= 7 and sys.version_info[1] < 9:
deps.append("requests[security]>=2.0.0")
else:
deps.append(["requests>=2.0.0"])
setup(
name = "svtplay-dl",
version = svtplay_dl.__version__,
packages = find_packages(
'lib',
exclude=["tests", "*.tests", "*.tests.*"]),
install_requires=["requests>=2.0.0"],
install_requires=deps,
package_dir = {'': 'lib'},
scripts = ['bin/svtplay-dl'],