Skip to content

Commit 1b21eaf

Browse files
committed
{Add clause for readthedocs
1 parent bf3107e commit 1b21eaf

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

setup.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,9 @@ def build_extension(self, ext):
4343
return
4444

4545
# Add option to link dynamically for packaging systems such as conda.
46-
if os.getenv("PYTHON_ISAL_LINK_DYNAMIC") is not None:
46+
# Always link dynamically on readthedocs to simplify install.
47+
if (os.getenv("PYTHON_ISAL_LINK_DYNAMIC") is not None or
48+
os.environ.get("READTHEDOCS") is not None):
4749
# Check for isa-l include directories. This is useful when
4850
# installing in a conda environment.
4951
possible_prefixes = [sys.exec_prefix, sys.base_exec_prefix]

0 commit comments

Comments
 (0)