From 11411fe78441e6e390c53ebe5d85311f4f1d04cc Mon Sep 17 00:00:00 2001 From: Elliott Sales de Andrade Date: Sat, 16 Mar 2019 02:59:15 -0400 Subject: [PATCH 2/2] DOC: Don't print out conda/pip environment. Signed-off-by: Elliott Sales de Andrade --- doc/conf.py | 8 -------- 1 file changed, 8 deletions(-) diff --git a/doc/conf.py b/doc/conf.py index d4328dbf..23928bd1 100644 --- a/doc/conf.py +++ b/doc/conf.py @@ -16,7 +16,6 @@ import datetime import inspect import os import pathlib -import subprocess import sys from contextlib import suppress from textwrap import dedent, indent @@ -35,13 +34,6 @@ allowed_failures = set() print("python exec:", sys.executable) print("sys.path:", sys.path) -if "CONDA_DEFAULT_ENV" in os.environ or "conda" in sys.executable: - print("conda environment:") - subprocess.run([os.environ.get("CONDA_EXE", "conda"), "list"]) -else: - print("pip environment:") - subprocess.run([sys.executable, "-m", "pip", "list"]) - print(f"xarray: {xarray.__version__}, {xarray.__file__}") with suppress(ImportError): -- 2.47.0