Skip to content

Commit

Permalink
Trying to fix RTD.
Browse files Browse the repository at this point in the history
  • Loading branch information
tmcclintock committed Apr 25, 2019
1 parent ceee229 commit cce041f
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion cluster_toolkit/__init__.py
Expand Up @@ -15,7 +15,9 @@
# Some installation (e.g. Travis with python 3.x)
# name this e.g. _cluster_toolkit.cpython-34m.so,
# so if the normal name doesn't exist, look for something else.
if not os.path.exists(lib_file):
# Note: we ignore this if we are building the docs on RTD
on_rtd = os.environ.get('READTHEDOCS', None) == 'True'
if not os.path.exists(lib_file) and not on_rtd:
alt_files = glob.glob(os.path.join(os.path.dirname(__file__),'_cluster_toolkit*.so'))
if len(alt_files) == 0:
raise IOError("No file '_cluster_toolkit.so' found in %s"%cluster_toolkit_dir)
Expand Down

0 comments on commit cce041f

Please sign in to comment.