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 0ebef8a commit 3c127f1Copy full SHA for 3c127f1
setup.py
@@ -14,13 +14,21 @@
14
import mpi4py
15
import json
16
from packaging import version
17
+import shutil
18
19
open_kwargs = {'encoding': 'utf-8'}
20
21
+if 'CC' not in os.environ:
22
+ # environment variable CC is not set
23
+ # check if command 'mpicc' is available in PATH
24
+ path = shutil.which("mpicc")
25
+ if path is None:
26
+ raise RuntimeError("Error: could not find an mpicc, please set it in environment variable CC")
27
+ os.environ["CC"] = path
28
+
29
PnetCDF_dir = os.environ.get('PNETCDF_DIR')
30
pnc_config = None
31
-
32
try:
33
if pnc_config is None:
34
if PnetCDF_dir is not None:
0 commit comments