diff options
author | CoprDistGit <infra@openeuler.org> | 2024-12-13 03:12:49 +0000 |
---|---|---|
committer | CoprDistGit <infra@openeuler.org> | 2024-12-13 03:12:49 +0000 |
commit | 2b68e239965fb6b607bb1c64ff083725d5858dcc (patch) | |
tree | 1dc78511acb18a52a5b1ec37b4ff735a0889eab7 | |
parent | af8d13843d4ee5c4517d8a071c7ba62ca5a740f7 (diff) |
automatic import of lammps
-rw-r--r-- | lammps.spec | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/lammps.spec b/lammps.spec index f8abbbc..4c2140a 100644 --- a/lammps.spec +++ b/lammps.spec @@ -215,7 +215,6 @@ BuildRequires: python3-build %endif %build -mkdir -p .obj-%{_target_platform} && cd .obj-%{_target_platform} set +e . /etc/profile.d/modules.sh set -e @@ -224,7 +223,7 @@ set -e for mpi in '' mpich %{?with_openmpi:openmpi} ; do test -n "${mpi}" && module load mpi/${mpi}-%{_arch} #python wrapper isn't mpi specific - %{cmake3} .. \ + %{cmake3} \ -C cmake/presets/all_on.cmake \ -C cmake/presets/nolib.cmake \ %{cmake_blas_flags} \ @@ -266,7 +265,7 @@ set +e set -e for mpi in '' mpich %{?with_openmpi:openmpi} ; do - %make_install -C .obj-%{_target_platform} + %make_install done cd python @@ -291,7 +290,6 @@ set -e for mpi in '' mpich %{?with_openmpi:openmpi} ; do old_PYTHONPATH="${PYTHONPATH}" test -n "${mpi}" && module load mpi/${mpi}-%{_arch} && export PYTHONPATH="${MPI_PYTHON3_SITEARCH}:${PYTHONPATH}" - cd .obj-%{_target_platform} %ctest --output-on-failure %{?testargs} || true test -n "${mpi}" && module unload mpi/${mpi}-%{_arch} && export PYTHONPATH="${old_PYTHONPATH}" done |