diff options
author | CoprDistGit <infra@openeuler.org> | 2025-08-06 12:49:55 +0000 |
---|---|---|
committer | CoprDistGit <infra@openeuler.org> | 2025-08-06 12:49:55 +0000 |
commit | 447d03bcd901241abdc19d3b6c992b18cb69f473 (patch) | |
tree | ab230b716033d88d93dd19b270069c2c65cdcf45 | |
parent | 64a6ef34e3f1922209d67bd7078829a56859da61 (diff) |
automatic import of mpi4py
-rw-r--r-- | mpi4py.spec | 61 |
1 files changed, 7 insertions, 54 deletions
diff --git a/mpi4py.spec b/mpi4py.spec index fd9c231..db2bc56 100644 --- a/mpi4py.spec +++ b/mpi4py.spec @@ -5,27 +5,23 @@ # Run full testsuite or just with 1 core %global FULLTESTS 0 - Name: mpi4py Version: 3.1.3 -Release: 2 +Release: 3 Summary: Python bindings of the Message Passing Interface (MPI) License: BSD URL: https://mpi4py.readthedocs.io/en/stable/ Source0: https://bitbucket.org/mpi4py/mpi4py/downloads/mpi4py-%{version}.tar.gz - -BuildRequires: python%{python3_pkgversion}-devel -BuildRequires: python%{python3_pkgversion}-setuptools +BuildRequires: python3-devel +BuildRequires: python3-setuptools BuildRequires: python%{python3_pkgversion}-Cython >= 0.22 # For testing BuildRequires: python%{python3_pkgversion}-numpy BuildRequires: python%{python3_pkgversion}-simplejson BuildRequires: python%{python3_pkgversion}-yaml BuildRequires: python%{python3_pkgversion}-dill -BuildRequires: environment-modules - %global _description %{expand: This package is constructed on top of the MPI-1/MPI-2 specification and @@ -152,53 +148,6 @@ mv build mpich %{_mpich_unload} %endif -%check -# test openmpi? -%if 0%{?OPENMPI} -%{_openmpi_load} -cp .__init__openmpi.py src/mpi4py/__init__.py -mv openmpi build -PYTHONPATH=%{buildroot}%{python3_sitearch}/openmpi \ - mpiexec -np 1 python3 test/runtests.py -v --no-builddir \ - -e spawn \ -%ifarch ppc64le - -e test_datatype -%endif - - -%if 0%{?FULLTESTS} -# Allow running with more processes than cores -export OMPI_MCA_rmaps_base_oversubscribe=1 -PYTHONPATH=%{buildroot}%{python3_sitearch}/openmpi \ - mpiexec -np 5 python3 test/runtests.py -v --no-builddir -e spawn -PYTHONPATH=%{buildroot}%{python3_sitearch}/openmpi \ - mpiexec -np 8 python3 test/runtests.py -v --no-builddir -e spawn -%endif -mv build openmpi -%{_openmpi_unload} -%endif - -#test mpich? -%if 0%{?MPICH} -%if %{with_mpich} -%{_mpich_load} -cp .__init__mpich.py src/mpi4py/__init__.py -mv mpich build -PYTHONPATH=%{buildroot}%{python3_sitearch}/mpich \ - mpiexec -np 1 python3 test/runtests.py -v --no-builddir -e spawn -%if 0%{?FULLTESTS} -PYTHONPATH=%{buildroot}%{python3_sitearch}/mpich \ - mpiexec -np 5 python3 test/runtests.py -v --no-builddir -e spawn -PYTHONPATH=%{buildroot}%{python3_sitearch}/mpich \ - mpiexec -np 8 python3 test/runtests.py -v --no-builddir -e spawn -%endif -mv build mpich -%{_mpich_unload} -%endif -%endif - - - %files common %license LICENSE.rst %doc CHANGES.rst DESCRIPTION.rst README.rst @@ -216,7 +165,11 @@ mv build mpich %files docs %doc docs/* demo + %changelog +* Tue Aug 5 2025 mimanchiok <mimanchiok@qq.com> - 3.1.3-3 +- project init + * Fri Apr 15 2022 tanyulong <tanyulong@kylinos.cn> - 3.1.3-2 - rebuild |