diff --git a/readthedocs.yml b/.readthedocs.yml similarity index 76% rename from readthedocs.yml rename to .readthedocs.yml index 9fa1d8d82..0de45d085 100644 --- a/readthedocs.yml +++ b/.readthedocs.yml @@ -12,13 +12,8 @@ sphinx: # Optionally build your docs in additional formats such as PDF and ePub formats: [] -# Optionally set the version of Python and requirements required to build your docs -python: - version: 3.7 - conda: environment: environment.yml submodules: include: all - recursive: true diff --git a/source/conf.py b/source/conf.py index 79cab716d..43243f799 100644 --- a/source/conf.py +++ b/source/conf.py @@ -314,6 +314,23 @@ :format: html """ +def print_stats(): + def run_cmd(cmd): + import subprocess + print("--------------------------------------------------------------") + print("CMD: ", cmd) + subprocess.check_call(cmd, stdout=sys.stdout, stderr=sys.stderr, shell=True) + print("--------------------------------------------------------------") + + run_cmd("which conda") + run_cmd("which python3") + run_cmd("which pip") + run_cmd("which pip3") + run_cmd("conda list") + run_cmd("pip list") + +print_stats() + ### BREATHE ### from pathlib import Path