Streamlining the code a little bit

This commit is contained in:
Jeremy Wright
2022-05-20 21:40:52 -04:00
parent 1472063947
commit 7164898aa0

View File

@ -19,17 +19,10 @@ version = "2.1"
reqs = []
setup_reqs = []
# ReadTheDocs and AppVeyor will break if we do not handle the separately
is_rtd = False
is_appveyor = False
is_azure = False
if "READTHEDOCS" in os.environ:
is_rtd = os.environ["READTHEDOCS"]
if "APPVEYOR" in os.environ:
is_appveyor = os.environ["APPVEYOR"]
if "CONDA_PY" in os.environ:
is_azure = True
print(os.environ)
# ReadTheDocs, AppVeyor and Azure builds will break when trying to instal pip deps in a conda env
is_rtd = "READTHEDOCS" in os.environ
is_appveyor = "APPVEYOR" in os.environ
is_azure = "CONDA_PY" in os.environ
# Only include the installation dependencies if we are not running on RTD or AppVeyor
if not is_rtd and not is_appveyor and not is_azure: