Accepting request 719974 from home:TheBlackCat:branches:devel:languages:python:numeric
+ Fix handling of readonly buffers in support for Python 2 legacy buffer interface. The issue triggers only when using a buffer-like object that is readonly and does not export the new Python 3 buffer interface. + Fix build issues with Open MPI 4.0.x series related to removal of many MPI-1 symbols deprecated in MPI-2 and removed in MPI-3. + Minor documentation fixes. OBS-URL: https://build.opensuse.org/request/show/719974 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:numeric/python-mpi4py?expand=0&rev=9
This commit is contained in:
committed by
Git OBS Bridge
parent
698bd37dd7
commit
a6bcb4d70a
8
_constraints
Normal file
8
_constraints
Normal file
@@ -0,0 +1,8 @@
|
||||
<constraints>
|
||||
<hardware>
|
||||
<memory>
|
||||
<size unit="G">4</size>
|
||||
</memory>
|
||||
<processors>2</processors>
|
||||
</hardware>
|
||||
</constraints>
|
||||
@@ -1,3 +0,0 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:6549a5b81931303baf6600fa2e3bc04d8bd1d5c82f3c21379d0d64a9abcca851
|
||||
size 1428612
|
||||
3
mpi4py-3.0.2.tar.gz
Normal file
3
mpi4py-3.0.2.tar.gz
Normal file
@@ -0,0 +1,3 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:f8d629d1e3e3b7b89cb99d0e3bc5505e76cc42089829807950d5c56606ed48e0
|
||||
size 1429331
|
||||
@@ -1,3 +1,17 @@
|
||||
-------------------------------------------------------------------
|
||||
Wed Jul 31 02:30:19 UTC 2019 - Todd R <toddrme2178@gmail.com>
|
||||
|
||||
- Update to 3.0.2
|
||||
* Bug fixes:
|
||||
+ Fix handling of readonly buffers in support for Pytho
|
||||
2 legacy buffer interface. The issue triggers only when using
|
||||
a buffer-like object that is readonly and does not export
|
||||
the new Python 3 buffer interface.
|
||||
+ Fix build issues with Open MPI 4.0.x series related to
|
||||
removal of many MPI-1 symbols deprecated in MPI-2 and removed
|
||||
in MPI-3.
|
||||
+ Minor documentation fixes.
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Wed Feb 27 01:36:38 UTC 2019 - Bernhard Wiedemann <bwiedemann@suse.com>
|
||||
|
||||
|
||||
@@ -18,12 +18,12 @@
|
||||
|
||||
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
|
||||
%if 0%{?sle_version} && 0%{?sle_version} < 150000
|
||||
%define mpiver openmpi
|
||||
%define mpiver openmpi
|
||||
%else
|
||||
%define mpiver openmpi2
|
||||
%endif
|
||||
Name: python-mpi4py
|
||||
Version: 3.0.1
|
||||
Version: 3.0.2
|
||||
Release: 0
|
||||
Summary: MPI for Python
|
||||
License: BSD-2-Clause
|
||||
@@ -31,13 +31,16 @@ Group: Development/Libraries/Python
|
||||
URL: https://bitbucket.org/mpi4py/mpi4py
|
||||
Source: https://files.pythonhosted.org/packages/source/m/mpi4py/mpi4py-%{version}.tar.gz
|
||||
BuildRequires: %{mpiver}
|
||||
BuildRequires: %{mpiver}-config
|
||||
BuildRequires: %{mpiver}-devel
|
||||
BuildRequires: %{python_module Cython}
|
||||
BuildRequires: %{python_module devel}
|
||||
BuildRequires: %{python_module numpy}
|
||||
BuildRequires: %{python_module setuptools}
|
||||
BuildRequires: fdupes
|
||||
BuildRequires: python-rpm-macros
|
||||
Requires: %{mpiver}
|
||||
Requires: %{mpiver}-config
|
||||
%python_subpackages
|
||||
|
||||
%description
|
||||
@@ -70,17 +73,17 @@ This package supports:
|
||||
* passive target syncronization: start/complete & post/wait
|
||||
* active target syncronization: lock & unlock
|
||||
|
||||
%package devel
|
||||
%package devel
|
||||
Summary: Development files for %{name}
|
||||
Group: Development/Libraries/Python
|
||||
Requires: %{name} = %{version}
|
||||
Requires: %{name}-common-devel = %{version}
|
||||
Requires: python-devel
|
||||
|
||||
%description devel
|
||||
%description devel
|
||||
Development libraries and headers needed to build packages using %{name}.
|
||||
|
||||
%package -n %{name}-common-devel
|
||||
%package -n %{name}-common-devel
|
||||
Summary: Shared development files for %{name}
|
||||
Group: Development/Libraries/Python
|
||||
Requires: %{mpiver}-devel
|
||||
@@ -93,7 +96,7 @@ for both python2 and python3.
|
||||
You normally do not need to install this directly, it will be pulled in by
|
||||
the python-specific devel package.
|
||||
|
||||
%package -n %{name}-doc
|
||||
%package -n %{name}-doc
|
||||
Summary: Documentation for %{name}
|
||||
Group: Documentation/Other
|
||||
Provides: %{python_module mpi4py-doc = %{version}}
|
||||
@@ -110,9 +113,11 @@ sed -i 's/\r$//' docs/usrman/objects.inv
|
||||
source %{_libdir}/mpi/gcc/%{mpiver}/bin/mpivars.sh
|
||||
|
||||
export CFLAGS="%{optflags} -fno-strict-aliasing"
|
||||
%python_build
|
||||
export LANG=en_US.UTF-8
|
||||
%{python_build --force}
|
||||
|
||||
%install
|
||||
export LANG=en_US.UTF-8
|
||||
%python_install
|
||||
|
||||
# De-duplicate includes and also put them in a more generally-accessible location.
|
||||
@@ -128,10 +133,19 @@ cp -r docs %{buildroot}%{_docdir}%{name}/
|
||||
cp -r demo %{buildroot}%{_docdir}%{name}/
|
||||
%fdupes %{buildroot}%{_docdir}%{name}
|
||||
|
||||
mkdir -p %{buildroot}%{_rpmmacrodir}
|
||||
cat >> %{buildroot}%{_rpmmacrodir}/macros.mpi4py <<EOL
|
||||
mpi4py_mpi_ver %{mpiver}
|
||||
EOL
|
||||
|
||||
%check
|
||||
export PYTHONDONTWRITEBYTECODE=1
|
||||
export LANG=en_US.UTF-8
|
||||
export OMPI_MCA_rmaps_base_oversubscribe=yes
|
||||
rm -rf build _build.*
|
||||
%{python_expand export PYTHONPATH=%{buildroot}%{$python_sitearch}
|
||||
%{_libdir}/mpi/gcc/%{mpiver}/bin/mpirun -n 1 $python -B test/runtests.py -v
|
||||
rm -rf build _build.*
|
||||
%{_libdir}/mpi/gcc/%{mpiver}/bin/mpiexec --use-hwthread-cpus --mca btl tcp,self -n 1 $python -B test/runtests.py -v --exclude="test_msgspec"
|
||||
}
|
||||
|
||||
%files %{python_files}
|
||||
@@ -148,6 +162,7 @@ export PYTHONDONTWRITEBYTECODE=1
|
||||
%files -n %{name}-common-devel
|
||||
%license LICENSE.rst
|
||||
%{_includedir}/mpi4py/
|
||||
%{_rpmmacrodir}/macros.mpi4py
|
||||
|
||||
%files -n %{name}-doc
|
||||
%license LICENSE.rst
|
||||
|
||||
Reference in New Issue
Block a user