Is it possible to defaulty configure MPI with pip?

Dear developers,

I have to use ngsolve on a hpc cluster. However, due to their strict regulation, it is hard to make from source to turn on the MPI functions. Would it be possible for you to include -DUSE_MPI=ON as a default setting for pip install?

Many thanks for your attention.

Best,
Chuning

Can you modify the setup.py by changing line 67 to

_cmake_args = [
    f'-DNETGEN_DIR={netgen_dir}',
    '-DUSE_SUPERBUILD:BOOL=ON',
    '-DCMAKE_BUILD_TYPE=Release',
    '-DBUILD_FOR_CONDA=ON',
    '-DUSE_MPI=ON',
    '-DBUILD_STUB_FILES=OFF',
    f'-DUSE_UMFPACK={use_umfpack}',
    f'-DNGSOLVE_VERSION_PYTHON={version}',
]

and then run locally pip install .

I tried but it did not work. Thanks anyway!

What error are you getting ? Maybe we can figure this out :slight_smile: