Hello community, here is the log from the commit of package python-mpi4py for openSUSE:Factory checked in at 2019-08-05 10:42:29 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/python-mpi4py (Old) and /work/SRC/openSUSE:Factory/.python-mpi4py.new.4126 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "python-mpi4py" Mon Aug 5 10:42:29 2019 rev:9 rq:720900 version:3.0.2 Changes: -------- --- /work/SRC/openSUSE:Factory/python-mpi4py/python-mpi4py.changes 2019-03-07 10:51:14.757840389 +0100 +++ /work/SRC/openSUSE:Factory/.python-mpi4py.new.4126/python-mpi4py.changes 2019-08-05 10:42:44.539289445 +0200 @@ -1,0 +2,21 @@ +Sun Aug 4 14:16:57 UTC 2019 - Todd R <[email protected]> + +- Add fix_window_size.patch + Fixes unit tests + See: https://bitbucket.org/mpi4py/mpi4py/issues/137/ + +------------------------------------------------------------------- +Wed Jul 31 02:30:19 UTC 2019 - Todd R <[email protected]> + +- 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. + +------------------------------------------------------------------- Old: ---- mpi4py-3.0.1.tar.gz New: ---- _constraints fix_window_size.patch mpi4py-3.0.2.tar.gz ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ python-mpi4py.spec ++++++ --- /var/tmp/diff_new_pack.bvqnIF/_old 2019-08-05 10:42:45.011289390 +0200 +++ /var/tmp/diff_new_pack.bvqnIF/_new 2019-08-05 10:42:45.015289390 +0200 @@ -18,26 +18,31 @@ %{?!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 Group: Development/Libraries/Python URL: https://bitbucket.org/mpi4py/mpi4py Source: https://files.pythonhosted.org/packages/source/m/mpi4py/mpi4py-%{version}.tar.gz +# PATCH-FIX-UPSTREAM fix_window_size.patch - https://bitbucket.org/mpi4py/mpi4py/issues/137/ +Patch0: fix_window_size.patch 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 @@ -103,6 +108,7 @@ %prep %setup -q -n mpi4py-%{version} +%patch0 -p1 rm demo/*/runtests.bat docs/source/usrman/make.bat sed -i 's/\r$//' docs/usrman/objects.inv @@ -110,9 +116,11 @@ 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 +136,19 @@ 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 +165,7 @@ %files -n %{name}-common-devel %license LICENSE.rst %{_includedir}/mpi4py/ +%{_rpmmacrodir}/macros.mpi4py %files -n %{name}-doc %license LICENSE.rst ++++++ _constraints ++++++ <constraints> <hardware> <memory> <size unit="G">4</size> </memory> <processors>2</processors> </hardware> </constraints> ++++++ fix_window_size.patch ++++++ diff --git a/test/test_msgspec.py b/test/test_msgspec.py index ae21bc3..5941632 100644 --- a/test/test_msgspec.py +++ b/test/test_msgspec.py @@ -532,7 +532,7 @@ class TestMessageVectorW(unittest.TestCase): self.assertEqual(bytearray(2), rbuf[1:]) def PutGet(smsg, rmsg, target): - try: win = MPI.Win.Allocate(8, 1, MPI.INFO_NULL, MPI.COMM_SELF) + try: win = MPI.Win.Allocate(256, 1, MPI.INFO_NULL, MPI.COMM_SELF) except NotImplementedError: win = MPI.WIN_NULL try: try: win.Fence() ++++++ mpi4py-3.0.1.tar.gz -> mpi4py-3.0.2.tar.gz ++++++ ++++ 5313 lines of diff (skipped)
