Skip to content

Commit 1648d28

Browse files
committed
Do not link dynamically on readthedocs
1 parent 9c43eb5 commit 1648d28

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

setup.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -39,9 +39,7 @@
3939
class BuildZlibNGExt(build_ext):
4040
def build_extension(self, ext):
4141
# Add option to link dynamically for packaging systems such as conda.
42-
# Always link dynamically on readthedocs to simplify install.
43-
if (os.getenv("PYTHON_ZLIB_NG_LINK_DYNAMIC") is not None or
44-
os.environ.get("READTHEDOCS") is not None):
42+
if os.getenv("PYTHON_ZLIB_NG_LINK_DYNAMIC") is not None:
4543
# Check for zlib_ng include directories. This is useful when
4644
# installing in a conda environment.
4745
possible_prefixes = [sys.exec_prefix, sys.base_exec_prefix]

0 commit comments

Comments
 (0)