From c107d5fa7f7a7fb7693d9c4285e86d2ded6d79b7 Mon Sep 17 00:00:00 2001 From: Will Date: Tue, 20 Mar 2018 21:08:01 -0400 Subject: [PATCH] [V3 Docs] Really fix it this time (#1444) --- setup.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/setup.py b/setup.py index 84456a0e8..021b5985a 100644 --- a/setup.py +++ b/setup.py @@ -9,6 +9,7 @@ from setuptools import find_packages IS_TRAVIS = 'TRAVIS' in os.environ IS_DEPLOYING = 'DEPLOYING' in os.environ +IS_RTD = 'READTHEDOCS' in os.environ dep_links = ['https://github.com/Rapptz/discord.py/tarball/rewrite#egg=discord.py-1.0'] if IS_TRAVIS: @@ -28,8 +29,8 @@ def get_requirements(): except ValueError: pass - if IS_DEPLOYING or not IS_TRAVIS: - requirements.append('discord.py>=1.0.0a0') # Because RTD + if IS_DEPLOYING or not (IS_TRAVIS or IS_RTD): + requirements.append('discord.py>=1.0.0a0') if sys.platform.startswith("linux"): requirements.append("distro") return requirements