diff --git a/setup.py b/setup.py index 724eb0a99..3f239e420 100755 --- a/setup.py +++ b/setup.py @@ -38,8 +38,13 @@ 'deploy': ['twine', 'setuptools', 'wheel'], } -with open('README.md', 'r') as f: - LONG_DESCRIPTION = f.read() +# building the docs on readthedocs fails with a FileNotFoundError +# https://github.com/IAMconsortium/pyam/issues/363 +try: + with open('README.md', 'r') as f: + LONG_DESCRIPTION = f.read() +except FileNotFoundError: + LONG_DESCRIPTION = '' # thank you https://stormpath.com/blog/building-simple-cli-interfaces-in-python class RunTests(Command):