Repository: spack/spack

Issue:
Installation issue: py-mpi4py
### Steps to reproduce the issue

`spack install py-mpi4py@2.0.0`
```console
==> Installing py-mpi4py-2.0.0-2tgseyilbjiterck3j5du77eegosfpcp
==> No binary for py-mpi4py-2.0.0-2tgseyilbjiterck3j5du77eegosfpcp found: installing from source
==> Fetching https://mirror.spack.io/_source-cache/archive/65/6543a05851a7aa1e6d165e673d422ba24e45c41e4221f0993fe1e5924a00cb81.tar.gz
==> No patches needed for py-mpi4py
==> py-mpi4py: Executing phase: 'install'
==> Error: ProcessError: Command exited with status 1:
    '/gpfs/softs/spack/opt/spack/linux-centos7-cascadelake/gcc-9.2.0/python-3.7.6-vnnmplx6op3dqmaxx5pkkfepfbctftkf/bin/python3.7' '-m' 'pip' '-vvv' '--no-input' '--no-cache-dir' '--disable-pip-version-check' 'install' '--no-deps' '--ignore-installed' '--no-build-isolation' '--no-warn-script-location' '--no-index' '--prefix=/gpfs/softs/pdi-training/spack/opt/spack/linux-centos7-cascadelake/gcc-9.2.0/py-mpi4py-2.0.0-2tgseyilbjiterck3j5du77eegosfpcp' '--install-option=--mpicc=/gpfs/softs/spack/opt/spack/linux-centos7-cascadelake/gcc-9.2.0/intel-mpi-2019.8.254-5qpjevfwt75a33eq4ssteze7pc2ppyki/compilers_and_libraries_2020.2.254/linux/mpi/intel64/bin/mpicc -shared' '.'

1 error found in build log:
     11    Created temporary directory: /tmp/pip-install-cnm7rfiv
     12    Processing /tmp/user/spack-stage/spack-stage-py-mpi4py-2.0.0-2tgseyilbjiterck3j5du77eegosfpcp/spack-src
     13      Added file:///tmp/user/spack-stage/spack-stage-py-mpi4py-2.0.0-2tgseyilbjiterck3j5du77eegosfpcp/spack-src to build tracker '/tmp/pip-req-tracker-iniz9b
           _k'
     14      Running setup.py (path:/tmp/user/spack-stage/spack-stage-py-mpi4py-2.0.0-2tgseyilbjiterck3j5du77eegosfpcp/spack-src/setup.py) egg_info for package from
            file:///tmp/user/spack-stage/spack-stage-py-mpi4py-2.0.0-2tgseyilbjiterck3j5du77eegosfpcp/spack-src
     15      Created temporary directory: /tmp/pip-pip-egg-info-q4llv1bw
     16      Preparing metadata (setup.py): started
  >> 17    /gpfs/softs/pdi-training/spack/opt/spack/linux-centos7-cascadelake/gcc-9.2.0/py-pip-21.3.1-axb3rzunuon2renmwzd5i7x47byeqqxt/lib/python3.7/site-packages/pip
           /_internal/commands/install.py:245: UserWarning: Disabling all use of wheels due to the use of --build-option / --global-option / --install-option.
     18      cmdoptions.check_install_build_global(options)
     19      Running command python setup.py egg_info
     20      running egg_info
     21      creating /tmp/pip-pip-egg-info-q4llv1bw/mpi4py.egg-info
     22      writing /tmp/pip-pip-egg-info-q4llv1bw/mpi4py.egg-info/PKG-INFO
     23      writing dependency_links to /tmp/pip-pip-egg-info-q4llv1bw/mpi4py.egg-info/dependency_links.txt

See build log for details:
  /tmp/user/spack-stage/spack-stage-py-mpi4py-2.0.0-2tgseyilbjiterck3j5du77eegosfpcp/spack-build-out.txt
```


### Information on your system

`spack debug report`
```console
* **Spack:** 0.17.1-971-3cf5df7e3b
* **Python:** 3.6.8
* **Platform:** linux-centos7-cascadelake
* **Concretizer:** clingo
* ```

### Additional information

`cat /tmp/user/spack-stage/spack-stage-py-mpi4py-2.0.0-2tgseyilbjiterck3j5du77eegosfpcp/spack-build-out.txt`
```console
==> py-mpi4py: Executing phase: 'install'
==> [2022-02-03-13:02:10.792271] '/gpfs/softs/spack/opt/spack/linux-centos7-cascadelake/gcc-9.2.0/python-3.7.6-vnnmplx6op3dqmaxx5pkkfepfbctftkf/bin/python3.7' '-m' 'pip' '-vvv' '--no-input' '--no-cache-dir' '--disable-pip-version-check' 'install' '--no-deps' '--ignore-installed' '--no-build-isolation' '--no-warn-script-location' '--no-index' '--prefix=/gpfs/softs/pdi-training/spack/opt/spack/linux-centos7-cascadelake/gcc-9.2.0/py-mpi4py-2.0.0-2tgseyilbjiterck3j5du77eegosfpcp' '--install-option=--mpicc=/gpfs/softs/spack/opt/spack/linux-centos7-cascadelake/gcc-9.2.0/intel-mpi-2019.8.254-5qpjevfwt75a33eq4ssteze7pc2ppyki/compilers_and_libraries_2020.2.254/linux/mpi/intel64/bin/mpicc -shared' '.'
Using pip 21.3.1 from /gpfs/softs/pdi-training/spack/opt/spack/linux-centos7-cascadelake/gcc-9.2.0/py-pip-21.3.1-axb3rzunuon2renmwzd5i7x47byeqqxt/lib/python3.7/site-packages/pip (python 3.7)
Non-user install due to --prefix or --target option
Ignoring indexes: https://pypi.org/simple
Created temporary directory: /tmp/pip-ephem-wheel-cache-vh913ioh
Created temporary directory: /tmp/pip-req-tracker-iniz9b_k
Initialized build tracking at /tmp/pip-req-tracker-iniz9b_k
Created build tracker: /tmp/pip-req-tracker-iniz9b_k
Entered build tracker: /tmp/pip-req-tracker-iniz9b_k
Created temporary directory: /tmp/pip-install-cnm7rfiv
Processing /tmp/user/spack-stage/spack-stage-py-mpi4py-2.0.0-2tgseyilbjiterck3j5du77eegosfpcp/spack-src
  Added file:///tmp/user/spack-stage/spack-stage-py-mpi4py-2.0.0-2tgseyilbjiterck3j5du77eegosfpcp/spack-src to build tracker '/tmp/pip-req-tracker-iniz9b_k'
  Running setup.py (path:/tmp/user/spack-stage/spack-stage-py-mpi4py-2.0.0-2tgseyilbjiterck3j5du77eegosfpcp/spack-src/setup.py) egg_info for package from file:///tmp/user/spack-stage/spack-stage-py-mpi4py-2.0.0-2tgseyilbjiterck3j5du77eegosfpcp/spack-src
  Created temporary directory: /tmp/pip-pip-egg-info-q4llv1bw
  Preparing metadata (setup.py): started
/gpfs/softs/pdi-training/spack/opt/spack/linux-centos7-cascadelake/gcc-9.2.0/py-pip-21.3.1-axb3rzunuon2renmwzd5i7x47byeqqxt/lib/python3.7/site-packages/pip/_internal/commands/install.py:245: UserWarning: Disabling all use of wheels due to the use of --build-option / --global-option / --install-option.
  cmdoptions.check_install_build_global(options)
  Running command python setup.py egg_info
  running egg_info
  creating /tmp/pip-pip-egg-info-q4llv1bw/mpi4py.egg-info
  writing /tmp/pip-pip-egg-info-q4llv1bw/mpi4py.egg-info/PKG-INFO
  writing dependency_links to /tmp/pip-pip-egg-info-q4llv1bw/mpi4py.egg-info/dependency_links.txt
  writing top-level names to /tmp/pip-pip-egg-info-q4llv1bw/mpi4py.egg-info/top_level.txt
  writing manifest file '/tmp/pip-pip-egg-info-q4llv1bw/mpi4py.egg-info/SOURCES.txt'
  reading manifest file '/tmp/pip-pip-egg-info-q4llv1bw/mpi4py.egg-info/SOURCES.txt'
  reading manifest template 'MANIFEST.in'
  no previously-included directories found matching 'misc'
  no previously-included directories found matching 'conf/conda-recipes'
  no previously-included directories found matching 'conf/appveyor'
  no previously-included directories found matching 'conf/jenkins'
  no previously-included directories found matching 'conf/travis'
  adding license file 'LICENSE.rst'
  writing manifest file '/tmp/pip-pip-egg-info-q4llv1bw/mpi4py.egg-info/SOURCES.txt'
  Preparing metadata (setup.py): finished with status 'done'
  Source in /tmp/user/spack-stage/spack-stage-py-mpi4py-2.0.0-2tgseyilbjiterck3j5du77eegosfpcp/spack-src has version 2.0.0, which satisfies requirement mpi4py==2.0.0 from file:///tmp/user/spack-stage/spack-stage-py-mpi4py-2.0.0-2tgseyilbjiterck3j5du77eegosfpcp/spack-src
  Removed mpi4py==2.0.0 from file:///tmp/user/spack-stage/spack-stage-py-mpi4py-2.0.0-2tgseyilbjiterck3j5du77eegosfpcp/spack-src from build tracker '/tmp/pip-req-tracker-iniz9b_k'
Created temporary directory: /tmp/pip-unpack-ygfmmc9a
Skipping wheel build for mpi4py, due to binaries being disabled for it.
Installing collected packages: mpi4py
  Created temporary directory: /tmp/pip-record-501f_7eo
    Running setup.py install for mpi4py: started
    Running command /gpfs/softs/spack/opt/spack/linux-centos7-cascadelake/gcc-9.2.0/python-3.7.6-vnnmplx6op3dqmaxx5pkkfepfbctftkf/bin/python3.7 -u -c 'import io, os, sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/user/spack-stage/spack-stage-py-mpi4py-2.0.0-2tgseyilbjiterck3j5du77eegosfpcp/spack-src/setup.py'"'"'; __file__='"'"'/tmp/user/spack-stage/spack-stage-py-mpi4py-2.0.0-2tgseyilbjiterck3j5du77eegosfpcp/spack-src/setup.py'"'"';f = getattr(tokenize, '"'"'open'"'"', open)(__file__) if os.path.exists(__file__) else io.StringIO('"'"'from setuptools import setup; setup()'"'"');code = f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' install --record /tmp/pip-record-501f_7eo/install-record.txt --single-version-externally-managed --prefix /gpfs/softs/pdi-training/spack/opt/spack/linux-centos7-cascadelake/gcc-9.2.0/py-mpi4py-2.0.0-2tgseyilbjiterck3j5du77eegosfpcp --compile --install-headers /gpfs/softs/pdi-training/spack/opt/spack/linux-centos7-cascadelake/gcc-9.2.0/py-mpi4py-2.0.0-2tgseyilbjiterck3j5du77eegosfpcp/include/python3.7m/mpi4py '--mpicc=/gpfs/softs/spack/opt/spack/linux-centos7-cascadelake/gcc-9.2.0/intel-mpi-2019.8.254-5qpjevfwt75a33eq4ssteze7pc2ppyki/compilers_and_libraries_2020.2.254/linux/mpi/intel64/bin/mpicc -shared'
    usage: setup.py [global_opts] cmd1 [cmd1_opts] [cmd2 [cmd2_opts] ...]
       or: setup.py --help [cmd1 cmd2 ...]
       or: setup.py --help-commands
       or: setup.py cmd --help

    error: option --mpicc not recognized
    Running setup.py install for mpi4py: finished with status 'error'
ERROR: Command errored out with exit status 1: /gpfs/softs/spack/opt/spack/linux-centos7-cascadelake/gcc-9.2.0/python-3.7.6-vnnmplx6op3dqmaxx5pkkfepfbctftkf/bin/python3.7 -u -c 'import io, os, sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/user/spack-stage/spack-stage-py-mpi4py-2.0.0-2tgseyilbjiterck3j5du77eegosfpcp/spack-src/setup.py'"'"'; __file__='"'"'/tmp/user/spack-stage/spack-stage-py-mpi4py-2.0.0-2tgseyilbjiterck3j5du77eegosfpcp/spack-src/setup.py'"'"';f = getattr(tokenize, '"'"'open'"'"', open)(__file__) if os.path.exists(__file__) else io.StringIO('"'"'from setuptools import setup; setup()'"'"');code = f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' install --record /tmp/pip-record-501f_7eo/install-record.txt --single-version-externally-managed --prefix /gpfs/softs/pdi-training/spack/opt/spack/linux-centos7-cascadelake/gcc-9.2.0/py-mpi4py-2.0.0-2tgseyilbjiterck3j5du77eegosfpcp --compile --install-headers /gpfs/softs/pdi-training/spack/opt/spack/linux-centos7-cascadelake/gcc-9.2.0/py-mpi4py-2.0.0-2tgseyilbjiterck3j5du77eegosfpcp/include/python3.7m/mpi4py '--mpicc=/gpfs/softs/spack/opt/spack/linux-centos7-cascadelake/gcc-9.2.0/intel-mpi-2019.8.254-5qpjevfwt75a33eq4ssteze7pc2ppyki/compilers_and_libraries_2020.2.254/linux/mpi/intel64/bin/mpicc -shared' Check the logs for full command output.
Exception information:
Traceback (most recent call last):
  File "/gpfs/softs/pdi-training/spack/opt/spack/linux-centos7-cascadelake/gcc-9.2.0/py-pip-21.3.1-axb3rzunuon2renmwzd5i7x47byeqqxt/lib/python3.7/site-packages/pip/_internal/req/req_install.py", line 840, in install
    req_description=str(self.req),
  File "/gpfs/softs/pdi-training/spack/opt/spack/linux-centos7-cascadelake/gcc-9.2.0/py-pip-21.3.1-axb3rzunuon2renmwzd5i7x47byeqqxt/lib/python3.7/site-packages/pip/_internal/operations/install/legacy.py", line 114, in install
    raise LegacyInstallFailure from e
pip._internal.operations.install.legacy.LegacyInstallFailure

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/gpfs/softs/pdi-training/spack/opt/spack/linux-centos7-cascadelake/gcc-9.2.0/py-pip-21.3.1-axb3rzunuon2renmwzd5i7x47byeqqxt/lib/python3.7/site-packages/pip/_internal/cli/base_command.py", line 164, in exc_logging_wrapper
    status = run_func(*args)
  File "/gpfs/softs/pdi-training/spack/opt/spack/linux-centos7-cascadelake/gcc-9.2.0/py-pip-21.3.1-axb3rzunuon2renmwzd5i7x47byeqqxt/lib/python3.7/site-packages/pip/_internal/cli/req_command.py", line 205, in wrapper
    return func(self, options, args)
  File "/gpfs/softs/pdi-training/spack/opt/spack/linux-centos7-cascadelake/gcc-9.2.0/py-pip-21.3.1-axb3rzunuon2renmwzd5i7x47byeqqxt/lib/python3.7/site-packages/pip/_internal/commands/install.py", line 413, in run
    pycompile=options.compile,
  File "/gpfs/softs/pdi-training/spack/opt/spack/linux-centos7-cascadelake/gcc-9.2.0/py-pip-21.3.1-axb3rzunuon2renmwzd5i7x47byeqqxt/lib/python3.7/site-packages/pip/_internal/req/__init__.py", line 81, in install_given_reqs
    pycompile=pycompile,
  File "/gpfs/softs/pdi-training/spack/opt/spack/linux-centos7-cascadelake/gcc-9.2.0/py-pip-21.3.1-axb3rzunuon2renmwzd5i7x47byeqqxt/lib/python3.7/site-packages/pip/_internal/req/req_install.py", line 844, in install
    raise exc.__cause__
  File "/gpfs/softs/pdi-training/spack/opt/spack/linux-centos7-cascadelake/gcc-9.2.0/py-pip-21.3.1-axb3rzunuon2renmwzd5i7x47byeqqxt/lib/python3.7/site-packages/pip/_internal/operations/install/legacy.py", line 104, in install
    cwd=unpacked_source_directory,
  File "/gpfs/softs/pdi-training/spack/opt/spack/linux-centos7-cascadelake/gcc-9.2.0/py-pip-21.3.1-axb3rzunuon2renmwzd5i7x47byeqqxt/lib/python3.7/site-packages/pip/_internal/utils/subprocess.py", line 286, in runner
    spinner=spinner,
  File "/gpfs/softs/pdi-training/spack/opt/spack/linux-centos7-cascadelake/gcc-9.2.0/py-pip-21.3.1-axb3rzunuon2renmwzd5i7x47byeqqxt/lib/python3.7/site-packages/pip/_internal/utils/subprocess.py", line 254, in call_subprocess
    raise InstallationSubprocessError(proc.returncode, command_desc)
pip._internal.exceptions.InstallationSubprocessError: Command errored out with exit status 1: /gpfs/softs/spack/opt/spack/linux-centos7-cascadelake/gcc-9.2.0/python-3.7.6-vnnmplx6op3dqmaxx5pkkfepfbctftkf/bin/python3.7 -u -c 'import io, os, sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/user/spack-stage/spack-stage-py-mpi4py-2.0.0-2tgseyilbjiterck3j5du77eegosfpcp/spack-src/setup.py'"'"'; __file__='"'"'/tmp/user/spack-stage/spack-stage-py-mpi4py-2.0.0-2tgseyilbjiterck3j5du77eegosfpcp/spack-src/setup.py'"'"';f = getattr(tokenize, '"'"'open'"'"', open)(__file__) if os.path.exists(__file__) else io.StringIO('"'"'from setuptools import setup; setup()'"'"');code = f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' install --record /tmp/pip-record-501f_7eo/install-record.txt --single-version-externally-managed --prefix /gpfs/softs/pdi-training/spack/opt/spack/linux-centos7-cascadelake/gcc-9.2.0/py-mpi4py-2.0.0-2tgseyilbjiterck3j5du77eegosfpcp --compile --install-headers /gpfs/softs/pdi-training/spack/opt/spack/linux-centos7-cascadelake/gcc-9.2.0/py-mpi4py-2.0.0-2tgseyilbjiterck3j5du77eegosfpcp/include/python3.7m/mpi4py '--mpicc=/gpfs/softs/spack/opt/spack/linux-centos7-cascadelake/gcc-9.2.0/intel-mpi-2019.8.254-5qpjevfwt75a33eq4ssteze7pc2ppyki/compilers_and_libraries_2020.2.254/linux/mpi/intel64/bin/mpicc -shared' Check the logs for full command output.
Removed build tracker: '/tmp/pip-req-tracker-iniz9b_k'
```

`cat /tmp/user/spack-stage/spack-stage-py-mpi4py-2.0.0-2tgseyilbjiterck3j5du77eegosfpcp/spack-build-env.txt `
```console
BASH_ENV=/opt/ohpc/admin/lmod/lmod/init/bash; export BASH_ENV
BASH_ENV_SET=true; export BASH_ENV_SET
function _spack_shell_wrapper() {  for var in LD_LIBRARY_PATH DYLD_LIBRARY_PATH DYLD_FALLBACK_LIBRARY_PATH;
 do
 eval "if [ -n \"\${${var}-}\" ]; then export SPACK_$var=\${${var}}; fi";
 done;
 if [ -n "${ZSH_VERSION:-}" ]; then
 emulate -L sh;
 fi;
 _sp_flags="";
 while [ ! -z ${1+x} ] && [ "${1#-}" != "${1}" ]; do
 _sp_flags="$_sp_flags $1";
 shift;
 done;
 if [ -n "$_sp_flags" ] && [ "${_sp_flags#*h}" != "${_sp_flags}" ] || [ "${_sp_flags#*V}" != "${_sp_flags}" ]; then
 command spack $_sp_flags "$@";
 return;
 fi;
 _sp_subcommand="";
 if [ ! -z ${1+x} ]; then
 _sp_subcommand="$1";
 shift;
 fi;
 case $_sp_subcommand in 
 "cd")
 _sp_arg="";
 if [ -n "$1" ]; then
 _sp_arg="$1";
 shift;
 fi;
 if [ "$_sp_arg" = "-h" ] || [ "$_sp_arg" = "--help" ]; then
 command spack cd -h;
 else
 LOC="$(spack location $_sp_arg "$@")";
 if [ -d "$LOC" ]; then
 cd "$LOC";
 else
 return 1;
 fi;
 fi;
 return
 ;;
 "env")
 _sp_arg="";
 if [ -n "$1" ]; then
 _sp_arg="$1";
 shift;
 fi;
 if [ "$_sp_arg" = "-h" ] || [ "$_sp_arg" = "--help" ]; then
 command spack env -h;
 else
 case $_sp_arg in 
 activate)
 _a=" $@";
 if [ -z ${1+x} ] || [ "${_a#* --sh}" != "$_a" ] || [ "${_a#* --csh}" != "$_a" ] || [ "${_a#* -h}" != "$_a" ] || [ "${_a#* --help}" != "$_a" ]; then
 command spack env activate "$@";
 else
 stdout="$(command spack $_sp_flags env activate --sh "$@")" || return;
 eval "$stdout";
 fi
 ;;
 deactivate)
 _a=" $@";
 if [ "${_a#* --sh}" != "$_a" ] || [ "${_a#* --csh}" != "$_a" ]; then
 command spack env deactivate "$@";
 else
 if [ -n "$*" ]; then
 command spack env deactivate -h;
 else
 stdout="$(command spack $_sp_flags env deactivate --sh)" || return;
 eval "$stdout";
 fi;
 fi
 ;;
 *)
 command spack env $_sp_arg "$@"
 ;;
 esac;
 fi;
 return
 ;;
 "load" | "unload")
 _a=" $@";
 if [ "${_a#* --sh}" != "$_a" ] || [ "${_a#* --csh}" != "$_a" ] || [ "${_a#* -h}" != "$_a" ] || [ "${_a#* --list}" != "$_a" ] || [ "${_a#* --help}" != "$_a" ]; then
 command spack $_sp_flags $_sp_subcommand "$@";
 else
 stdout="$(command spack $_sp_flags $_sp_subcommand --sh "$@")" || return;
 eval "$stdout";
 fi
 ;;
 *)
 command spack $_sp_flags $_sp_subcommand "$@"
 ;;
 esac
}; export -f _spack_shell_wrapper
function ml() {  eval $($LMOD_DIR/ml_cmd "$@")
}; export -f ml
function module() {  eval $($LMOD_CMD bash "$@") && eval $(${LMOD_SETTARG_CMD:-:} -s sh)
}; export -f module
function spack() {  : this is a shell function from: /softs/pdi-training/spack/share/spack/setup-env.sh;
 : the real spack script is here: /softs/pdi-training/spack/bin/spack;
 _spack_shell_wrapper "$@";
 return $?
}; export -f spack
CC=/gpfs/softs/pdi-training/spack/lib/spack/env/gcc/gcc; export CC
CMAKE_PREFIX_PATH=/gpfs/softs/pdi-training/spack/opt/spack/linux-centos7-cascadelake/gcc-9.2.0/py-wheel-0.37.0-jtxyxhnotduprl7rd6ay5tvdl5meixgb:/gpfs/softs/pdi-training/spack/opt/spack/linux-centos7-cascadelake/gcc-9.2.0/py-setuptools-59.4.0-fcvklgnez7hx3vd64vg7ltioc4drau3e:/gpfs/softs/pdi-training/spack/opt/spack/linux-centos7-cascadelake/gcc-9.2.0/py-pip-21.3.1-axb3rzunuon2renmwzd5i7x47byeqqxt:/gpfs/softs/spack/opt/spack/linux-centos7-cascadelake/gcc-9.2.0/python-3.7.6-vnnmplx6op3dqmaxx5pkkfepfbctftkf:/gpfs/softs/spack/opt/spack/linux-centos7-cascadelake/gcc-9.2.0/sqlite-3.30.1-yc53tixlu34kfunmqoszfvxbqajpltrv:/gpfs/softs/spack/opt/spack/linux-centos7-cascadelake/gcc-9.2.0/openssl-1.1.1d-65kkyaqv2eaevivveh7u23yyiud6pruc:/gpfs/softs/spack/opt/spack/linux-centos7-cascadelake/gcc-9.2.0/libffi-3.2.1-stbgh6bisieffc4hbivfm4nb2m7v5vle:/gpfs/softs/spack/opt/spack/linux-centos7-cascadelake/gcc-9.2.0/gettext-0.20.1-l2nvowddh7yxt2cmmv4jhbfgqhzrly63:/gpfs/softs/spack/opt/spack/linux-centos7-cascadelake/gcc-9.2.0/tar-1.32-5aqoi2myh5om6pyewqqx3ezssmhkad7e:/gpfs/softs/spack/opt/spack/linux-centos7-cascadelake/gcc-9.2.0/libxml2-2.9.9-cpatapvhr3dc7hvriujjioozufsccg2a:/gpfs/softs/spack/opt/spack/linux-centos7-cascadelake/gcc-9.2.0/zlib-1.2.11-ndmeluphsrq2cxkfdmxg4wma6w4hknqs:/gpfs/softs/spack/opt/spack/linux-centos7-cascadelake/gcc-9.2.0/xz-5.2.4-5ifshq5gh72jv4kpohem2jeit634dnof:/gpfs/softs/spack/opt/spack/linux-centos7-cascadelake/gcc-9.2.0/libiconv-1.16-vfegwsn4i6jlfbqmwp7neqhvuge7xpuj:/gpfs/softs/spack/opt/spack/linux-centos7-cascadelake/gcc-9.2.0/gdbm-1.18.1-f3tsc7rft4mlznpjy3wa6p4eq6yth6jb:/gpfs/softs/spack/opt/spack/linux-centos7-cascadelake/gcc-9.2.0/readline-8.0-xpowgp2r72q3i2j6kgcoif76ipuo63ni:/gpfs/softs/spack/opt/spack/linux-centos7-cascadelake/gcc-9.2.0/ncurses-6.1-zn435gjfgouwf7nnydv2p4ykb2oruyeh:/gpfs/softs/spack/opt/spack/linux-centos7-cascadelake/gcc-9.2.0/expat-2.2.9-s2gi2w7lirfz6neypwifp7dw72nzel5u:/gpfs/softs/spack/opt/spack/linux-centos7-cascadelake/gcc-9.2.0/libbsd-0.10.0-siu7inpctnxeo6iafrwqse7gy3f7fzni:/gpfs/softs/spack/opt/spack/linux-centos7-cascadelake/gcc-9.2.0/bzip2-1.0.8-4q7b53ijm66myaeiq3qpi4qn5iy22aeb:/gpfs/softs/spack/opt/spack/linux-centos7-cascadelake/gcc-9.2.0/intel-mpi-2019.8.254-5qpjevfwt75a33eq4ssteze7pc2ppyki; export CMAKE_PREFIX_PATH
CXX=/gpfs/softs/pdi-training/spack/lib/spack/env/gcc/g++; export CXX
EDITOR=nano; export EDITOR
F77=/gpfs/softs/pdi-training/spack/lib/spack/env/gcc/gfortran; export F77
FC=/gpfs/softs/pdi-training/spack/lib/spack/env/gcc/gfortran; export FC
HISTCONTROL=ignoredups; export HISTCONTROL
HISTSIZE=1000; export HISTSIZE
HOME=/gpfs/users/user; export HOME
HOSTNAME=ruche01.cluster; export HOSTNAME
INTEL_LICENSE_FILE=28518@ruche-adm01; export INTEL_LICENSE_FILE
I_MPI_CC=/gpfs/softs/pdi-training/spack/lib/spack/env/gcc/gcc; export I_MPI_CC
I_MPI_CXX=/gpfs/softs/pdi-training/spack/lib/spack/env/gcc/g++; export I_MPI_CXX
I_MPI_F77=/gpfs/softs/pdi-training/spack/lib/spack/env/gcc/gfortran; export I_MPI_F77
I_MPI_F90=/gpfs/softs/pdi-training/spack/lib/spack/env/gcc/gfortran; export I_MPI_F90
I_MPI_FC=/gpfs/softs/pdi-training/spack/lib/spack/env/gcc/gfortran; export I_MPI_FC
I_MPI_ROOT=/gpfs/softs/spack/opt/spack/linux-centos7-cascadelake/gcc-9.2.0/intel-mpi-2019.8.254-5qpjevfwt75a33eq4ssteze7pc2ppyki/compilers_and_libraries_2020.2.254/linux/mpi; export I_MPI_ROOT
LANG=en_US.UTF-8; export LANG
LC_ALL=C; export LC_ALL
LC_COLLATE=fr_FR.UTF-8; export LC_COLLATE
LC_CTYPE=fr_FR.UTF-8; export LC_CTYPE
LC_MEASUREMENT=fr_FR.UTF-8; export LC_MEASUREMENT
LC_MONETARY=fr_FR.UTF-8; export LC_MONETARY
LC_NUMERIC=fr_FR.UTF-8; export LC_NUMERIC
LC_TIME=fr_FR.UTF-8; export LC_TIME
LDCXXSHARED='/gpfs/softs/pdi-training/spack/lib/spack/env/gcc/g++ -shared'; export LDCXXSHARED
LDSHARED='/gpfs/softs/pdi-training/spack/lib/spack/env/gcc/gcc -shared -L/gpfs/softs/spack/opt/spack/linux-centos7-cascadelake/gcc-9.2.0/sqlite-3.30.1-yc53tixlu34kfunmqoszfvxbqajpltrv/lib -L/gpfs/softs/spack/opt/spack/linux-centos7-cascadelake/gcc-9.2.0/zlib-1.2.11-ndmeluphsrq2cxkfdmxg4wma6w4hknqs/lib -L/gpfs/softs/spack/opt/spack/linux-centos7-cascadelake/gcc-9.2.0/bzip2-1.0.8-4q7b53ijm66myaeiq3qpi4qn5iy22aeb/lib -L/gpfs/softs/spack/opt/spack/linux-centos7-cascadelake/gcc-9.2.0/ncurses-6.1-zn435gjfgouwf7nnydv2p4ykb2oruyeh/lib -L/gpfs/softs/spack/opt/spack/linux-centos7-cascadelake/gcc-9.2.0/expat-2.2.9-s2gi2w7lirfz6neypwifp7dw72nzel5u/lib -L/gpfs/softs/spack/opt/spack/linux-centos7-cascadelake/gcc-9.2.0/openssl-1.1.1d-65kkyaqv2eaevivveh7u23yyiud6pruc/lib -L/gpfs/softs/spack/opt/spack/linux-centos7-cascadelake/gcc-9.2.0/gettext-0.20.1-l2nvowddh7yxt2cmmv4jhbfgqhzrly63/lib -L/gpfs/softs/spack/opt/spack/linux-centos7-cascadelake/gcc-9.2.0/xz-5.2.4-5ifshq5gh72jv4kpohem2jeit634dnof/lib -L/gpfs/softs/spack/opt/spack/linux-centos7-cascadelake/gcc-9.2.0/libffi-3.2.1-stbgh6bisieffc4hbivfm4nb2m7v5vle/lib64 -L/gpfs/softs/spack/opt/spack/linux-centos7-cascadelake/gcc-9.2.0/readline-8.0-xpowgp2r72q3i2j6kgcoif76ipuo63ni/lib -L/gpfs/softs/spack/opt/spack/linux-centos7-cascadelake/gcc-9.2.0/gdbm-1.18.1-f3tsc7rft4mlznpjy3wa6p4eq6yth6jb/lib'; export LDSHARED
LESSOPEN='||/usr/bin/lesspipe.sh %s'; export LESSOPEN
LMOD_CMD=/opt/ohpc/admin/lmod/lmod/libexec/lmod; export LMOD_CMD
LMOD_COLORIZE=no; export LMOD_COLORIZE
LMOD_DIR=/opt/ohpc/admin/lmod/lmod/libexec; export LMOD_DIR
LMOD_EXACT_MATCH=1; export LMOD_EXACT_MATCH
LMOD_FULL_SETTARG_SUPPORT=no; export LMOD_FULL_SETTARG_SUPPORT
LMOD_IGNORE_CACHE=1; export LMOD_IGNORE_CACHE
LMOD_PKG=/opt/ohpc/admin/lmod/lmod; export LMOD_PKG
LMOD_PREPEND_BLOCK=normal; export LMOD_PREPEND_BLOCK
LMOD_SETTARG_CMD=:; export LMOD_SETTARG_CMD
LMOD_SETTARG_FULL_SUPPORT=no; export LMOD_SETTARG_FULL_SUPPORT
LMOD_VERSION=8.0.6; export LMOD_VERSION
LM_LICENSE_FILE=27000@ruche-adm01; export LM_LICENSE_FILE
LOGNAME=user; export LOGNAME
LS_COLORS='rs=0:di=38;5;27:ln=38;5;51:mh=44;38;5;15:pi=40;38;5;11:so=38;5;13:do=38;5;5:bd=48;5;232;38;5;11:cd=48;5;232;38;5;3:or=48;5;232;38;5;9:mi=05;48;5;232;38;5;15:su=48;5;196;38;5;15:sg=48;5;11;38;5;16:ca=48;5;196;38;5;226:tw=48;5;10;38;5;16:ow=48;5;10;38;5;21:st=48;5;21;38;5;15:ex=38;5;34:*.tar=38;5;9:*.tgz=38;5;9:*.arc=38;5;9:*.arj=38;5;9:*.taz=38;5;9:*.lha=38;5;9:*.lz4=38;5;9:*.lzh=38;5;9:*.lzma=38;5;9:*.tlz=38;5;9:*.txz=38;5;9:*.tzo=38;5;9:*.t7z=38;5;9:*.zip=38;5;9:*.z=38;5;9:*.Z=38;5;9:*.dz=38;5;9:*.gz=38;5;9:*.lrz=38;5;9:*.lz=38;5;9:*.lzo=38;5;9:*.xz=38;5;9:*.bz2=38;5;9:*.bz=38;5;9:*.tbz=38;5;9:*.tbz2=38;5;9:*.tz=38;5;9:*.deb=38;5;9:*.rpm=38;5;9:*.jar=38;5;9:*.war=38;5;9:*.ear=38;5;9:*.sar=38;5;9:*.rar=38;5;9:*.alz=38;5;9:*.ace=38;5;9:*.zoo=38;5;9:*.cpio=38;5;9:*.7z=38;5;9:*.rz=38;5;9:*.cab=38;5;9:*.jpg=38;5;13:*.jpeg=38;5;13:*.gif=38;5;13:*.bmp=38;5;13:*.pbm=38;5;13:*.pgm=38;5;13:*.ppm=38;5;13:*.tga=38;5;13:*.xbm=38;5;13:*.xpm=38;5;13:*.tif=38;5;13:*.tiff=38;5;13:*.png=38;5;13:*.svg=38;5;13:*.svgz=38;5;13:*.mng=38;5;13:*.pcx=38;5;13:*.mov=38;5;13:*.mpg=38;5;13:*.mpeg=38;5;13:*.m2v=38;5;13:*.mkv=38;5;13:*.webm=38;5;13:*.ogm=38;5;13:*.mp4=38;5;13:*.m4v=38;5;13:*.mp4v=38;5;13:*.vob=38;5;13:*.qt=38;5;13:*.nuv=38;5;13:*.wmv=38;5;13:*.asf=38;5;13:*.rm=38;5;13:*.rmvb=38;5;13:*.flc=38;5;13:*.avi=38;5;13:*.fli=38;5;13:*.flv=38;5;13:*.gl=38;5;13:*.dl=38;5;13:*.xcf=38;5;13:*.xwd=38;5;13:*.yuv=38;5;13:*.cgm=38;5;13:*.emf=38;5;13:*.axv=38;5;13:*.anx=38;5;13:*.ogv=38;5;13:*.ogx=38;5;13:*.aac=38;5;45:*.au=38;5;45:*.flac=38;5;45:*.mid=38;5;45:*.midi=38;5;45:*.mka=38;5;45:*.mp3=38;5;45:*.mpc=38;5;45:*.ogg=38;5;45:*.ra=38;5;45:*.wav=38;5;45:*.axa=38;5;45:*.oga=38;5;45:*.spx=38;5;45:*.xspf=38;5;45:'; export LS_COLORS
MAIL=/var/spool/mail/user; export MAIL
MANPATH=/gpfs/users/user/man:/usr/share/man; export MANPATH
MODULEPATH=/gpfs/softs/modules/modulefiles/compilers:/gpfs/softs/modules/modulefiles/debuggers_and_profilers:/gpfs/softs/modules/modulefiles/languages:/gpfs/softs/modules/modulefiles/libraries:/gpfs/softs/modules/modulefiles/other:/gpfs/softs/modules/modulefiles/softwares:/gpfs/softs/modules/modulefiles/tools; export MODULEPATH
MODULESHOME=/opt/ohpc/admin/lmod/lmod; export MODULESHOME
MPICC=/gpfs/softs/spack/opt/spack/linux-centos7-cascadelake/gcc-9.2.0/intel-mpi-2019.8.254-5qpjevfwt75a33eq4ssteze7pc2ppyki/compilers_and_libraries_2020.2.254/linux/mpi/intel64/bin/mpicc; export MPICC
MPICXX=/gpfs/softs/spack/opt/spack/linux-centos7-cascadelake/gcc-9.2.0/intel-mpi-2019.8.254-5qpjevfwt75a33eq4ssteze7pc2ppyki/compilers_and_libraries_2020.2.254/linux/mpi/intel64/bin/mpicxx; export MPICXX
MPIF77=/gpfs/softs/spack/opt/spack/linux-centos7-cascadelake/gcc-9.2.0/intel-mpi-2019.8.254-5qpjevfwt75a33eq4ssteze7pc2ppyki/compilers_and_libraries_2020.2.254/linux/mpi/intel64/bin/mpif77; export MPIF77
MPIF90=/gpfs/softs/spack/opt/spack/linux-centos7-cascadelake/gcc-9.2.0/intel-mpi-2019.8.254-5qpjevfwt75a33eq4ssteze7pc2ppyki/compilers_and_libraries_2020.2.254/linux/mpi/intel64/bin/mpif90; export MPIF90
PATH=/gpfs/softs/pdi-training/spack/opt/spack/linux-centos7-cascadelake/gcc-9.2.0/py-wheel-0.37.0-jtxyxhnotduprl7rd6ay5tvdl5meixgb/bin:/gpfs/softs/pdi-training/spack/opt/spack/linux-centos7-cascadelake/gcc-9.2.0/py-pip-21.3.1-axb3rzunuon2renmwzd5i7x47byeqqxt/bin:/gpfs/softs/spack/opt/spack/linux-centos7-cascadelake/gcc-9.2.0/python-3.7.6-vnnmplx6op3dqmaxx5pkkfepfbctftkf/bin:/gpfs/softs/spack/opt/spack/linux-centos7-cascadelake/gcc-9.2.0/python-3.7.6-vnnmplx6op3dqmaxx5pkkfepfbctftkf/bin:/gpfs/softs/spack/opt/spack/linux-centos7-cascadelake/gcc-9.2.0/intel-mpi-2019.8.254-5qpjevfwt75a33eq4ssteze7pc2ppyki/compilers_and_libraries_2020.2.254/linux/mpi/intel64/bin:/gpfs/softs/spack/opt/spack/linux-centos7-cascadelake/gcc-9.2.0/intel-mpi-2019.8.254-5qpjevfwt75a33eq4ssteze7pc2ppyki/bin:/gpfs/softs/pdi-training/spack/lib/spack/env/gcc:/gpfs/softs/pdi-training/spack/lib/spack/env/case-insensitive:/gpfs/softs/pdi-training/spack/lib/spack/env:/softs/pdi-training/spack/bin:/gpfs/users/user/bin:/usr/lib64/qt-3.3/bin:/usr/lpp/mmfs/bin:/gpfs/softs/opt/bin:/usr/local/bin:/usr/bin:/usr/local/sbin:/usr/sbin:/gpfs/users/user/.local/bin:/gpfs/users/user/bin; export PATH
PKG_CONFIG_PATH=/gpfs/softs/spack/opt/spack/linux-centos7-cascadelake/gcc-9.2.0/python-3.7.6-vnnmplx6op3dqmaxx5pkkfepfbctftkf/lib/pkgconfig:/gpfs/softs/spack/opt/spack/linux-centos7-cascadelake/gcc-9.2.0/sqlite-3.30.1-yc53tixlu34kfunmqoszfvxbqajpltrv/lib/pkgconfig:/gpfs/softs/spack/opt/spack/linux-centos7-cascadelake/gcc-9.2.0/openssl-1.1.1d-65kkyaqv2eaevivveh7u23yyiud6pruc/lib/pkgconfig:/gpfs/softs/spack/opt/spack/linux-centos7-cascadelake/gcc-9.2.0/libffi-3.2.1-stbgh6bisieffc4hbivfm4nb2m7v5vle/lib/pkgconfig:/gpfs/softs/spack/opt/spack/linux-centos7-cascadelake/gcc-9.2.0/libxml2-2.9.9-cpatapvhr3dc7hvriujjioozufsccg2a/lib/pkgconfig:/gpfs/softs/spack/opt/spack/linux-centos7-cascadelake/gcc-9.2.0/zlib-1.2.11-ndmeluphsrq2cxkfdmxg4wma6w4hknqs/lib/pkgconfig:/gpfs/softs/spack/opt/spack/linux-centos7-cascadelake/gcc-9.2.0/xz-5.2.4-5ifshq5gh72jv4kpohem2jeit634dnof/lib/pkgconfig:/gpfs/softs/spack/opt/spack/linux-centos7-cascadelake/gcc-9.2.0/readline-8.0-xpowgp2r72q3i2j6kgcoif76ipuo63ni/lib/pkgconfig:/gpfs/softs/spack/opt/spack/linux-centos7-cascadelake/gcc-9.2.0/ncurses-6.1-zn435gjfgouwf7nnydv2p4ykb2oruyeh/lib/pkgconfig:/gpfs/softs/spack/opt/spack/linux-centos7-cascadelake/gcc-9.2.0/expat-2.2.9-s2gi2w7lirfz6neypwifp7dw72nzel5u/lib/pkgconfig:/gpfs/softs/spack/opt/spack/linux-centos7-cascadelake/gcc-9.2.0/libbsd-0.10.0-siu7inpctnxeo6iafrwqse7gy3f7fzni/lib/pkgconfig:/gpfs/users/user/lib/pkgconfig; export PKG_CONFIG_PATH
#PWD=/gpfs/users/user; export PWD
PYTHONHOME=/gpfs/softs/spack/opt/spack/linux-centos7-cascadelake/gcc-9.2.0/python-3.7.6-vnnmplx6op3dqmaxx5pkkfepfbctftkf; export PYTHONHOME
PYTHONPATH=/gpfs/softs/pdi-training/spack/opt/spack/linux-centos7-cascadelake/gcc-9.2.0/py-pip-21.3.1-axb3rzunuon2renmwzd5i7x47byeqqxt/lib/python3.7/site-packages:/gpfs/softs/pdi-training/spack/opt/spack/linux-centos7-cascadelake/gcc-9.2.0/py-wheel-0.37.0-jtxyxhnotduprl7rd6ay5tvdl5meixgb/lib/python3.7/site-packages:/gpfs/softs/pdi-training/spack/opt/spack/linux-centos7-cascadelake/gcc-9.2.0/py-setuptools-59.4.0-fcvklgnez7hx3vd64vg7ltioc4drau3e/lib/python3.7/site-packages:/gpfs/softs/pdi-training/spack/opt/spack/linux-centos7-cascadelake/gcc-9.2.0/py-mpi4py-2.0.0-2tgseyilbjiterck3j5du77eegosfpcp/lib/python3.7/site-packages; export PYTHONPATH
QTDIR=/usr/lib64/qt-3.3; export QTDIR
QTINC=/usr/lib64/qt-3.3/include; export QTINC
QTLIB=/usr/lib64/qt-3.3/lib; export QTLIB
QT_GRAPHICSSYSTEM_CHECKED=1; export QT_GRAPHICSSYSTEM_CHECKED
SHELL=/bin/bash; export SHELL
SHLVL=1; export SHLVL
SPACK_CC=/gpfs/softs/spack/opt/spack/linux-centos7-haswell/gcc-4.8.5/gcc-9.2.0-k4debouieljbsurbrr2w755davwl6xsu/bin/gcc; export SPACK_CC
SPACK_CC_RPATH_ARG=-Wl,-rpath,; export SPACK_CC_RPATH_ARG
SPACK_COMPILER_IMPLICIT_RPATHS=/gpfs/softs/spack/opt/spack/linux-centos7-haswell/gcc-4.8.5/gcc-9.2.0-k4debouieljbsurbrr2w755davwl6xsu/lib/gcc/x86_64-pc-linux-gnu/9.2.0:/gpfs/softs/spack/opt/spack/linux-centos7-haswell/gcc-4.8.5/gcc-9.2.0-k4debouieljbsurbrr2w755davwl6xsu/lib64; export SPACK_COMPILER_IMPLICIT_RPATHS
SPACK_COMPILER_SPEC=gcc@9.2.0; export SPACK_COMPILER_SPEC
SPACK_CXX=/gpfs/softs/spack/opt/spack/linux-centos7-haswell/gcc-4.8.5/gcc-9.2.0-k4debouieljbsurbrr2w755davwl6xsu/bin/g++; export SPACK_CXX
SPACK_CXX_RPATH_ARG=-Wl,-rpath,; export SPACK_CXX_RPATH_ARG
SPACK_DEBUG_LOG_DIR=/gpfs/users/user; export SPACK_DEBUG_LOG_DIR
SPACK_DEBUG_LOG_ID=py-mpi4py-2tgseyi; export SPACK_DEBUG_LOG_ID
SPACK_DTAGS_TO_ADD=--disable-new-dtags; export SPACK_DTAGS_TO_ADD
SPACK_DTAGS_TO_STRIP=--enable-new-dtags; export SPACK_DTAGS_TO_STRIP
SPACK_ENV_PATH=/gpfs/softs/pdi-training/spack/lib/spack/env:/gpfs/softs/pdi-training/spack/lib/spack/env/case-insensitive:/gpfs/softs/pdi-training/spack/lib/spack/env/gcc; export SPACK_ENV_PATH
SPACK_F77=/gpfs/softs/spack/opt/spack/linux-centos7-haswell/gcc-4.8.5/gcc-9.2.0-k4debouieljbsurbrr2w755davwl6xsu/bin/gfortran; export SPACK_F77
SPACK_F77_RPATH_ARG=-Wl,-rpath,; export SPACK_F77_RPATH_ARG
SPACK_FC=/gpfs/softs/spack/opt/spack/linux-centos7-haswell/gcc-4.8.5/gcc-9.2.0-k4debouieljbsurbrr2w755davwl6xsu/bin/gfortran; export SPACK_FC
SPACK_FC_RPATH_ARG=-Wl,-rpath,; export SPACK_FC_RPATH_ARG
SPACK_INCLUDE_DIRS=/gpfs/softs/spack/opt/spack/linux-centos7-cascadelake/gcc-9.2.0/python-3.7.6-vnnmplx6op3dqmaxx5pkkfepfbctftkf/include/python3.7m:/gpfs/softs/spack/opt/spack/linux-centos7-cascadelake/gcc-9.2.0/sqlite-3.30.1-yc53tixlu34kfunmqoszfvxbqajpltrv/include:/gpfs/softs/spack/opt/spack/linux-centos7-cascadelake/gcc-9.2.0/openssl-1.1.1d-65kkyaqv2eaevivveh7u23yyiud6pruc/include:/gpfs/softs/spack/opt/spack/linux-centos7-cascadelake/gcc-9.2.0/libffi-3.2.1-stbgh6bisieffc4hbivfm4nb2m7v5vle/lib/libffi-3.2.1/include:/gpfs/softs/spack/opt/spack/linux-centos7-cascadelake/gcc-9.2.0/gettext-0.20.1-l2nvowddh7yxt2cmmv4jhbfgqhzrly63/include:/gpfs/softs/spack/opt/spack/linux-centos7-cascadelake/gcc-9.2.0/libxml2-2.9.9-cpatapvhr3dc7hvriujjioozufsccg2a/include/libxml2:/gpfs/softs/spack/opt/spack/linux-centos7-cascadelake/gcc-9.2.0/libxml2-2.9.9-cpatapvhr3dc7hvriujjioozufsccg2a/include:/gpfs/softs/spack/opt/spack/linux-centos7-cascadelake/gcc-9.2.0/zlib-1.2.11-ndmeluphsrq2cxkfdmxg4wma6w4hknqs/include:/gpfs/softs/spack/opt/spack/linux-centos7-cascadelake/gcc-9.2.0/xz-5.2.4-5ifshq5gh72jv4kpohem2jeit634dnof/include:/gpfs/softs/spack/opt/spack/linux-centos7-cascadelake/gcc-9.2.0/libiconv-1.16-vfegwsn4i6jlfbqmwp7neqhvuge7xpuj/include:/gpfs/softs/spack/opt/spack/linux-centos7-cascadelake/gcc-9.2.0/gdbm-1.18.1-f3tsc7rft4mlznpjy3wa6p4eq6yth6jb/include:/gpfs/softs/spack/opt/spack/linux-centos7-cascadelake/gcc-9.2.0/readline-8.0-xpowgp2r72q3i2j6kgcoif76ipuo63ni/include:/gpfs/softs/spack/opt/spack/linux-centos7-cascadelake/gcc-9.2.0/ncurses-6.1-zn435gjfgouwf7nnydv2p4ykb2oruyeh/include:/gpfs/softs/spack/opt/spack/linux-centos7-cascadelake/gcc-9.2.0/expat-2.2.9-s2gi2w7lirfz6neypwifp7dw72nzel5u/include:/gpfs/softs/spack/opt/spack/linux-centos7-cascadelake/gcc-9.2.0/libbsd-0.10.0-siu7inpctnxeo6iafrwqse7gy3f7fzni/include:/gpfs/softs/spack/opt/spack/linux-centos7-cascadelake/gcc-9.2.0/bzip2-1.0.8-4q7b53ijm66myaeiq3qpi4qn5iy22aeb/include:/gpfs/softs/spack/opt/spack/linux-centos7-cascadelake/gcc-9.2.0/intel-mpi-2019.8.254-5qpjevfwt75a33eq4ssteze7pc2ppyki/compilers_and_libraries_2020.2.254/linux/mpi/intel64/include; export SPACK_INCLUDE_DIRS
SPACK_LD_LIBRARY_PATH=/gpfs/users/user/lib; export SPACK_LD_LIBRARY_PATH
SPACK_LINKER_ARG=-Wl,; export SPACK_LINKER_ARG
SPACK_LINK_DIRS=/gpfs/softs/spack/opt/spack/linux-centos7-cascadelake/gcc-9.2.0/python-3.7.6-vnnmplx6op3dqmaxx5pkkfepfbctftkf/lib:/gpfs/softs/spack/opt/spack/linux-centos7-cascadelake/gcc-9.2.0/sqlite-3.30.1-yc53tixlu34kfunmqoszfvxbqajpltrv/lib:/gpfs/softs/spack/opt/spack/linux-centos7-cascadelake/gcc-9.2.0/openssl-1.1.1d-65kkyaqv2eaevivveh7u23yyiud6pruc/lib:/gpfs/softs/spack/opt/spack/linux-centos7-cascadelake/gcc-9.2.0/libffi-3.2.1-stbgh6bisieffc4hbivfm4nb2m7v5vle/lib64:/gpfs/softs/spack/opt/spack/linux-centos7-cascadelake/gcc-9.2.0/libffi-3.2.1-stbgh6bisieffc4hbivfm4nb2m7v5vle/lib:/gpfs/softs/spack/opt/spack/linux-centos7-cascadelake/gcc-9.2.0/gettext-0.20.1-l2nvowddh7yxt2cmmv4jhbfgqhzrly63/lib:/gpfs/softs/spack/opt/spack/linux-centos7-cascadelake/gcc-9.2.0/libxml2-2.9.9-cpatapvhr3dc7hvriujjioozufsccg2a/lib:/gpfs/softs/spack/opt/spack/linux-centos7-cascadelake/gcc-9.2.0/zlib-1.2.11-ndmeluphsrq2cxkfdmxg4wma6w4hknqs/lib:/gpfs/softs/spack/opt/spack/linux-centos7-cascadelake/gcc-9.2.0/xz-5.2.4-5ifshq5gh72jv4kpohem2jeit634dnof/lib:/gpfs/softs/spack/opt/spack/linux-centos7-cascadelake/gcc-9.2.0/libiconv-1.16-vfegwsn4i6jlfbqmwp7neqhvuge7xpuj/lib:/gpfs/softs/spack/opt/spack/linux-centos7-cascadelake/gcc-9.2.0/gdbm-1.18.1-f3tsc7rft4mlznpjy3wa6p4eq6yth6jb/lib:/gpfs/softs/spack/opt/spack/linux-centos7-cascadelake/gcc-9.2.0/readline-8.0-xpowgp2r72q3i2j6kgcoif76ipuo63ni/lib:/gpfs/softs/spack/opt/spack/linux-centos7-cascadelake/gcc-9.2.0/ncurses-6.1-zn435gjfgouwf7nnydv2p4ykb2oruyeh/lib:/gpfs/softs/spack/opt/spack/linux-centos7-cascadelake/gcc-9.2.0/expat-2.2.9-s2gi2w7lirfz6neypwifp7dw72nzel5u/lib:/gpfs/softs/spack/opt/spack/linux-centos7-cascadelake/gcc-9.2.0/libbsd-0.10.0-siu7inpctnxeo6iafrwqse7gy3f7fzni/lib:/gpfs/softs/spack/opt/spack/linux-centos7-cascadelake/gcc-9.2.0/bzip2-1.0.8-4q7b53ijm66myaeiq3qpi4qn5iy22aeb/lib:/gpfs/softs/spack/opt/spack/linux-centos7-cascadelake/gcc-9.2.0/intel-mpi-2019.8.254-5qpjevfwt75a33eq4ssteze7pc2ppyki/compilers_and_libraries_2020.2.254/linux/mpi/intel64/lib:/gpfs/softs/spack/opt/spack/linux-centos7-cascadelake/gcc-9.2.0/intel-mpi-2019.8.254-5qpjevfwt75a33eq4ssteze7pc2ppyki/compilers_and_libraries_2020.2.254/linux/mpi/intel64/lib/release:/gpfs/softs/spack/opt/spack/linux-centos7-cascadelake/gcc-9.2.0/intel-mpi-2019.8.254-5qpjevfwt75a33eq4ssteze7pc2ppyki/compilers_and_libraries_2020.2.254/linux/mpi/intel64/lib/debug_mt:/gpfs/softs/spack/opt/spack/linux-centos7-cascadelake/gcc-9.2.0/intel-mpi-2019.8.254-5qpjevfwt75a33eq4ssteze7pc2ppyki/compilers_and_libraries_2020.2.254/linux/mpi/intel64/lib/release_mt:/gpfs/softs/spack/opt/spack/linux-centos7-cascadelake/gcc-9.2.0/intel-mpi-2019.8.254-5qpjevfwt75a33eq4ssteze7pc2ppyki/compilers_and_libraries_2020.2.254/linux/mpi/intel64/lib/debug:/gpfs/softs/spack/opt/spack/linux-centos7-cascadelake/gcc-9.2.0/intel-mpi-2019.8.254-5qpjevfwt75a33eq4ssteze7pc2ppyki/compilers_and_libraries_2020.2.254/linux/mpi/intel64/libfabric/lib; export SPACK_LINK_DIRS
SPACK_PYTHON=/usr/bin/python3; export SPACK_PYTHON
SPACK_ROOT=/softs/pdi-training/spack; export SPACK_ROOT
SPACK_RPATH_DIRS=/gpfs/softs/pdi-training/spack/opt/spack/linux-centos7-cascadelake/gcc-9.2.0/py-mpi4py-2.0.0-2tgseyilbjiterck3j5du77eegosfpcp/lib:/gpfs/softs/pdi-training/spack/opt/spack/linux-centos7-cascadelake/gcc-9.2.0/py-mpi4py-2.0.0-2tgseyilbjiterck3j5du77eegosfpcp/lib64:/gpfs/softs/spack/opt/spack/linux-centos7-cascadelake/gcc-9.2.0/python-3.7.6-vnnmplx6op3dqmaxx5pkkfepfbctftkf/lib:/gpfs/softs/spack/opt/spack/linux-centos7-cascadelake/gcc-9.2.0/sqlite-3.30.1-yc53tixlu34kfunmqoszfvxbqajpltrv/lib:/gpfs/softs/spack/opt/spack/linux-centos7-cascadelake/gcc-9.2.0/openssl-1.1.1d-65kkyaqv2eaevivveh7u23yyiud6pruc/lib:/gpfs/softs/spack/opt/spack/linux-centos7-cascadelake/gcc-9.2.0/libffi-3.2.1-stbgh6bisieffc4hbivfm4nb2m7v5vle/lib64:/gpfs/softs/spack/opt/spack/linux-centos7-cascadelake/gcc-9.2.0/libffi-3.2.1-stbgh6bisieffc4hbivfm4nb2m7v5vle/lib:/gpfs/softs/spack/opt/spack/linux-centos7-cascadelake/gcc-9.2.0/gettext-0.20.1-l2nvowddh7yxt2cmmv4jhbfgqhzrly63/lib:/gpfs/softs/spack/opt/spack/linux-centos7-cascadelake/gcc-9.2.0/libxml2-2.9.9-cpatapvhr3dc7hvriujjioozufsccg2a/lib:/gpfs/softs/spack/opt/spack/linux-centos7-cascadelake/gcc-9.2.0/zlib-1.2.11-ndmeluphsrq2cxkfdmxg4wma6w4hknqs/lib:/gpfs/softs/spack/opt/spack/linux-centos7-cascadelake/gcc-9.2.0/xz-5.2.4-5ifshq5gh72jv4kpohem2jeit634dnof/lib:/gpfs/softs/spack/opt/spack/linux-centos7-cascadelake/gcc-9.2.0/libiconv-1.16-vfegwsn4i6jlfbqmwp7neqhvuge7xpuj/lib:/gpfs/softs/spack/opt/spack/linux-centos7-cascadelake/gcc-9.2.0/gdbm-1.18.1-f3tsc7rft4mlznpjy3wa6p4eq6yth6jb/lib:/gpfs/softs/spack/opt/spack/linux-centos7-cascadelake/gcc-9.2.0/readline-8.0-xpowgp2r72q3i2j6kgcoif76ipuo63ni/lib:/gpfs/softs/spack/opt/spack/linux-centos7-cascadelake/gcc-9.2.0/ncurses-6.1-zn435gjfgouwf7nnydv2p4ykb2oruyeh/lib:/gpfs/softs/spack/opt/spack/linux-centos7-cascadelake/gcc-9.2.0/expat-2.2.9-s2gi2w7lirfz6neypwifp7dw72nzel5u/lib:/gpfs/softs/spack/opt/spack/linux-centos7-cascadelake/gcc-9.2.0/libbsd-0.10.0-siu7inpctnxeo6iafrwqse7gy3f7fzni/lib:/gpfs/softs/spack/opt/spack/linux-centos7-cascadelake/gcc-9.2.0/bzip2-1.0.8-4q7b53ijm66myaeiq3qpi4qn5iy22aeb/lib:/gpfs/softs/spack/opt/spack/linux-centos7-cascadelake/gcc-9.2.0/intel-mpi-2019.8.254-5qpjevfwt75a33eq4ssteze7pc2ppyki/compilers_and_libraries_2020.2.254/linux/mpi/intel64/lib:/gpfs/softs/spack/opt/spack/linux-centos7-cascadelake/gcc-9.2.0/intel-mpi-2019.8.254-5qpjevfwt75a33eq4ssteze7pc2ppyki/compilers_and_libraries_2020.2.254/linux/mpi/intel64/lib/release:/gpfs/softs/spack/opt/spack/linux-centos7-cascadelake/gcc-9.2.0/intel-mpi-2019.8.254-5qpjevfwt75a33eq4ssteze7pc2ppyki/compilers_and_libraries_2020.2.254/linux/mpi/intel64/lib/debug_mt:/gpfs/softs/spack/opt/spack/linux-centos7-cascadelake/gcc-9.2.0/intel-mpi-2019.8.254-5qpjevfwt75a33eq4ssteze7pc2ppyki/compilers_and_libraries_2020.2.254/linux/mpi/intel64/lib/release_mt:/gpfs/softs/spack/opt/spack/linux-centos7-cascadelake/gcc-9.2.0/intel-mpi-2019.8.254-5qpjevfwt75a33eq4ssteze7pc2ppyki/compilers_and_libraries_2020.2.254/linux/mpi/intel64/lib/debug:/gpfs/softs/spack/opt/spack/linux-centos7-cascadelake/gcc-9.2.0/intel-mpi-2019.8.254-5qpjevfwt75a33eq4ssteze7pc2ppyki/compilers_and_libraries_2020.2.254/linux/mpi/intel64/libfabric/lib; export SPACK_RPATH_DIRS
SPACK_SHORT_SPEC='py-mpi4py@2.0.0%gcc@9.2.0 arch=linux-centos7-cascadelake/2tgseyi'; export SPACK_SHORT_SPEC
SPACK_SYSTEM_DIRS=/bin:/usr/bin:/usr/local/bin:/bin64:/usr/bin64:/usr/local/bin64:/include:/usr/include:/usr/local/include:/lib:/usr/lib:/usr/local/lib:/lib64:/usr/lib64:/usr/local/lib64:/:/usr:/usr/local; export SPACK_SYSTEM_DIRS
SPACK_TARGET_ARGS='-march=cascadelake -mtune=cascadelake'; export SPACK_TARGET_ARGS
SSH_AUTH_SOCK=/tmp/ssh-VMBH9x7HkU/agent.104305; export SSH_AUTH_SOCK
SSH_CLIENT='82.66.87.140 48522 22'; export SSH_CLIENT
SSH_CONNECTION='82.66.87.140 48522 129.175.109.2 22'; export SSH_CONNECTION
SSH_TTY=/dev/pts/76; export SSH_TTY
TERM=xterm-256color; export TERM
USER=user; export USER
WORKDIR=/gpfs/workdir/user; export WORKDIR
XDG_DATA_DIRS=/gpfs/users/user/share:/usr/local/share:/usr/share; export XDG_DATA_DIRS
XDG_RUNTIME_DIR=/run/user/1192; export XDG_RUNTIME_DIR
XDG_SESSION_ID=26908; export XDG_SESSION_ID
_ModuleTable001_=X01vZHVsZVRhYmxlXz17WyJNVHZlcnNpb24iXT0zLFsiY19yZWJ1aWxkVGltZSJdPWZhbHNlLFsiY19zaG9ydFRpbWUiXT1mYWxzZSxkZXB0aFQ9e30sZmFtaWx5PXt9LG1UPXt9LG1wYXRoQT17fSx9; export _ModuleTable001_
_ModuleTable_Sz_=1; export _ModuleTable_Sz_
```

@adamjstewart

### General information

- [X] I have run `spack debug report` and reported the version of Spack/Python/Platform
- [X] I have run `spack maintainers <name-of-the-package>` and **@mentioned** any maintainers
- [X] I have uploaded the build log and environment files
- [X] I have searched the issues of this repo and believe this is not a duplicate


Discussion:
I believe this issue exists since PR #27798 was merged
Interesting, this flag works for newer versions of `py-mpi4py` but not older versions. I'll take a look and see when what versions support it.
Comparing 0b2507053e58ef4058631c10e5d9bf7ea2222c20 and 3540f8200a536434946492d60b5e56b302112305 confirms that the issue appeared with PR https://github.com/spack/spack/pull/27798
Yes, we previously ran:
```console
$ python setup.py build --mpicc=...
$ python setup.py install
```
After #27798, we run `pip install`, which runs:
```console
$ python setup.py install --mpicc=...
```
At least in older versions of mpi4py, the `--mpicc` flag is only valid for the build phase, not the install phase. In newer versions of mpi4py, the `--mpicc` flag doesn't seem to break anything, but it's also unclear if it's actually being used. I guess I can try removing it and see if it affects the build at all. There's also an `MPICC` env var we could try instead.

Resolving patch:
diff --git a/var/spack/repos/builtin/packages/py-mpi4py/package.py b/var/spack/repos/builtin/packages/py-mpi4py/package.py
--- a/var/spack/repos/builtin/packages/py-mpi4py/package.py
+++ b/var/spack/repos/builtin/packages/py-mpi4py/package.py
@@ -32,6 +32,7 @@ class PyMpi4py(PythonPackage):
     depends_on('py-cython@0.27.0:', when='@master', type='build')
     depends_on('py-3to2', when='@3.1: ^python@:2', type='build')
 
+    @when('@3.1:')
     def install_options(self, spec, prefix):
         return ['--mpicc=%s -shared' % spec['mpi'].mpicc]
 


Test patch: