diff options
| -rw-r--r-- | docs/conf.py | 13 | ||||
| -rw-r--r-- | docs/requirements.txt | 2 |
2 files changed, 8 insertions, 7 deletions
diff --git a/docs/conf.py b/docs/conf.py index 28f86da4..f7d02303 100644 --- a/docs/conf.py +++ b/docs/conf.py @@ -18,14 +18,17 @@ # add these directories to sys.path here. If the directory is relative to the # documentation root, use os.path.abspath to make it absolute, like shown here. - -# hack to run the bootstrap script so that jaraco.packaging.sphinx -# can invoke setup.py import subprocess import sys import os -proj_root = os.path.join(os.path.dirname(__file__), os.path.pardir) -subprocess.check_call([sys.executable, 'bootstrap.py'], cwd=proj_root) + + +# hack to run the bootstrap script so that jaraco.packaging.sphinx +# can invoke setup.py +'READTHEDOCS' in os.environ and subprocess.check_call( + [sys.executable, 'bootstrap.py'], + cwd=os.path.join(os.path.dirname(__file__), os.path.pardir), +) # -- General configuration ----------------------------------------------------- diff --git a/docs/requirements.txt b/docs/requirements.txt index 2138c884..7333dedd 100644 --- a/docs/requirements.txt +++ b/docs/requirements.txt @@ -1,5 +1,3 @@ sphinx rst.linker>=1.9 jaraco.packaging>=3.2 - -setuptools>=34 |
