We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 104a5d5 commit 6238148Copy full SHA for 6238148
docs/conf.py
@@ -19,10 +19,18 @@
19
#
20
import os
21
import sys
22
+from pathlib import Path
23
from typing import Dict
24
25
import sphinx_autosummary_accessors
26
27
+# A workaround that sets the "ESMFMKFILE" env variable for the Read The Docs
28
+# build to work. Read The Docs does not activate the conda environment which
29
+# causes "ESMFMKFILE" to not be set (required by `esmpy` and `xesmf`).
30
+# Source: https://github.com/conda-forge/esmf-feedstock/issues/91
31
+if os.environ.get("READTHEDOCS") and "ESMFMKFILE" not in os.environ:
32
+ os.environ["ESMFMKFILE"] = str(Path(os.__file__).parent.parent / "esmf.mk")
33
+
34
sys.path.insert(0, os.path.abspath("..")) # noqa: I001, I003
35
import xcdat # noqa: I001, E402
36
0 commit comments