diff options
author | CoprDistGit <infra@openeuler.org> | 2025-08-07 01:30:00 +0000 |
---|---|---|
committer | CoprDistGit <infra@openeuler.org> | 2025-08-07 01:30:00 +0000 |
commit | 11921c86c79d75e004cf5f6c11d8ba7fe18f6c6c (patch) | |
tree | 1622dcaaf8e4a84c965fdd8d51df3840e2d3605b | |
parent | 51b38ae670e415e0667595ac3377d4618c4f2341 (diff) |
automatic import of mpi4py
-rw-r--r-- | .gitignore | 1 | ||||
-rw-r--r-- | mpi4py.spec | 47 | ||||
-rw-r--r-- | sources | 2 |
3 files changed, 16 insertions, 34 deletions
@@ -1 +1,2 @@ /mpi4py-3.1.3.tar.gz +/mpi4py-4.0.1.tar.gz diff --git a/mpi4py.spec b/mpi4py.spec index e7318f9..c53a85f 100644 --- a/mpi4py.spec +++ b/mpi4py.spec @@ -2,27 +2,22 @@ %global MPICH 1 %global OPENMPI 1 -# Run full testsuite or just with 1 core %global FULLTESTS 0 Name: mpi4py -Version: 3.1.3 -Release: 3 +Version: 4.0.1 +Release: 1 Summary: Python bindings of the Message Passing Interface (MPI) -License: BSD +License: BSD-2-Clause URL: https://mpi4py.readthedocs.io/en/stable/ -Source0: https://bitbucket.org/mpi4py/mpi4py/downloads/mpi4py-%{version}.tar.gz - -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 +Source0: https://github.com/mpi4py/mpi4py/archive/%{version}/%{name}-%{version}.tar.gz + +ExcludeArch: %{ix86} + +BuildRequires: python%{python3_pkgversion}-devel +BuildRequires: python%{python3_pkgversion}-setuptools +BuildRequires: python3-cython %global _description %{expand: This package is constructed on top of the MPI-1/MPI-2 specification and @@ -59,7 +54,6 @@ Provides: python%{python3_pkgversion}-mpi4py-runtime = %{version}-%{releas This package contains %{name} compiled against Open MPI. - %if %{with_mpich} %package -n python%{python3_pkgversion}-mpi4py-mpich BuildRequires: mpich-devel @@ -85,38 +79,29 @@ This package contains the license file shared between the subpackages of %{name} %prep %autosetup -p1 %{?commit:-n %{name}-%{name}-%{shortcommit}} -# delete docs/source -# this is just needed to generate docs/* rm -r docs/source -# work around "wrong-file-end-of-line-encoding" for file in $(find | grep runtests.bat); do sed -i 's/\r//' $file done -# Save current src/__init__.py for mpich cp src/mpi4py/__init__.py .__init__mpich.py cp src/mpi4py/__init__.py .__init__openmpi.py -# Remove precythonized C sources -rm $(grep -rl '/\* Generated by Cython') - +python3 conf/cythonize.py %build -# Build parallel versions: set compiler variables to MPI wrappers export CC=mpicc export CXX=mpicxx -# Build OpenMPI version %{_openmpi_load} -ompi_info +%{_libdir}/openmpi/bin/ompi_info cp .__init__openmpi.py src/mpi4py/__init__.py %py3_build mv build openmpi %{_openmpi_unload} %if %{with_mpich} -# Build mpich version %{_mpich_load} cp .__init__mpich.py src/mpi4py/__init__.py %py3_build @@ -127,7 +112,6 @@ mv build mpich %install -# Install OpenMPI version %{_openmpi_load} cp .__init__openmpi.py src/mpi4py/__init__.py mv openmpi build @@ -138,7 +122,6 @@ mv build openmpi %{_openmpi_unload} %if %{with_mpich} -# Install MPICH version %{_mpich_load} cp .__init__mpich.py src/mpi4py/__init__.py mv mpich build @@ -168,11 +151,9 @@ mv build mpich %changelog -* Tue Aug 5 2025 mimanchiok <mimanchiok@qq.com> - 3.1.3-3 -- project init - +* Tue Aug 5 2025 mimanchiok <mimanchiok@qq.com> - 4.0.1-1 +- Update to 4.0.1 * Fri Apr 15 2022 tanyulong <tanyulong@kylinos.cn> - 3.1.3-2 - rebuild - * Thu Mar 24 2022 tanyulong <tanyulong@kylinos.cn> - 3.1.3-1 - init package for openEuler @@ -1 +1 @@ -e6d0644a2a3c7aa5119825d35ebeb8ee mpi4py-3.1.3.tar.gz +9932100dbc8568bd9fe134324dab4377 mpi4py-4.0.1.tar.gz |