Read about our upcoming Code of Conduct on this issue

Commit 034246ec authored by Ashwin Vishnu's avatar Ashwin Vishnu
Browse files

Allow configuring `MPICXX` environment variable for compiling extensions,...

Allow configuring `MPICXX` environment variable for compiling extensions, while preserving `mpicxx` as default
parent b7f540550bb9
......@@ -223,7 +223,7 @@ def make_ext_from_objs(ext_file, obj_files, lib_dirs=None, libraries=None,
if w not in ['-g']]
if can_import_mpi4py:
command[0] = 'mpicxx'
command[0] = os.getenv('MPICXX', 'mpicxx')
else:
command[0] = cxx.split()[0]
......
......@@ -163,7 +163,7 @@ else:
base_names = [name for name in base_names if 'mpi' not in name]
CXX = None
else:
CXX = 'mpicxx'
CXX = os.getenv('MPICXX', 'mpicxx')
if mpi4py.__version__[0] < '2':
raise ValueError('Please upgrade to mpi4py >= 2.0')
include_dirs.add(mpi4py.get_include())
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment