Skip to content

Commit 7164898

Browse files
committed
Streamlining the code a little bit
1 parent 1472063 commit 7164898

File tree

1 file changed

+4
-11
lines changed

1 file changed

+4
-11
lines changed

setup.py

Lines changed: 4 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -19,17 +19,10 @@
1919
reqs = []
2020
setup_reqs = []
2121

22-
# ReadTheDocs and AppVeyor will break if we do not handle the separately
23-
is_rtd = False
24-
is_appveyor = False
25-
is_azure = False
26-
if "READTHEDOCS" in os.environ:
27-
is_rtd = os.environ["READTHEDOCS"]
28-
if "APPVEYOR" in os.environ:
29-
is_appveyor = os.environ["APPVEYOR"]
30-
if "CONDA_PY" in os.environ:
31-
is_azure = True
32-
print(os.environ)
22+
# ReadTheDocs, AppVeyor and Azure builds will break when trying to instal pip deps in a conda env
23+
is_rtd = "READTHEDOCS" in os.environ
24+
is_appveyor = "APPVEYOR" in os.environ
25+
is_azure = "CONDA_PY" in os.environ
3326

3427
# Only include the installation dependencies if we are not running on RTD or AppVeyor
3528
if not is_rtd and not is_appveyor and not is_azure:

0 commit comments

Comments
 (0)