We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8d8bc12 commit 5dc5082Copy full SHA for 5dc5082
setup.py
@@ -19,6 +19,7 @@
19
# SOFTWARE.
20
21
import os
22
+import sys
23
from pathlib import Path
24
25
from setuptools import Extension, find_packages, setup
@@ -29,6 +30,10 @@
29
30
CONDA_PREFIX = os.environ.get("CONDA_PREFIX")
31
if CONDA_PREFIX:
32
EXTENSION_OPTS["include_dirs"] = [os.path.join(CONDA_PREFIX, "include")]
33
+if os.environ.get("READTHEDOCS"):
34
+ # Readthedocs uses a conda environment but does not activate it.
35
+ EXTENSION_OPTS["include_dirs"].append(
36
+ os.path.join(sys.exec_prefix, "include"))
37
38
setup(
39
name="isal",
0 commit comments