Streamlining the code a little bit
This commit is contained in:
15
setup.py
15
setup.py
@ -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:
|
||||
|
||||
Reference in New Issue
Block a user