[mpi4py] Remove py3dir as python setup.py supports builds in the same source directory

Thomas Spura tomspur at fedoraproject.org
Sat Mar 14 14:04:02 UTC 2015


commit de4752b01ed3094a2079f5f15466c39903dd7f35
Author: Thomas Spura <thomas.spura at gmail.com>
Date:   Sat Mar 14 14:43:10 2015 +0100

    Remove py3dir as python setup.py supports builds in the same source directory

 mpi4py.spec | 14 ++++----------
 1 file changed, 4 insertions(+), 10 deletions(-)
---
diff --git a/mpi4py.spec b/mpi4py.spec
index 194e9f1..62be182 100644
--- a/mpi4py.spec
+++ b/mpi4py.spec
@@ -34,7 +34,7 @@
 
 Name:           mpi4py
 Version:        1.3.1
-Release:        6%{?dist}
+Release:        7%{?dist}
 Summary:        Python bindings of the Message Passing Interface (MPI)
 
 Group:          Development/Languages
@@ -184,11 +184,6 @@ for file in $(find | grep runtests.bat); do
     sed -i 's/\r//' $file
 done
 
-%if 0%{?with_python3}
-rm -rf %{py3dir}
-cp -a . %{py3dir}
-%endif
-
 
 %build
 # Build parallel versions: set compiler variables to MPI wrappers
@@ -210,7 +205,6 @@ mv build mpich
 %endif
 
 %if 0%{?with_python3}
-pushd %{py3dir}
 # Build parallel versions: set compiler variables to MPI wrappers
 export CC=mpicc
 export CXX=mpicxx
@@ -229,7 +223,6 @@ mv build mpich
 %{_mpich_unload}
 %endif
 
-popd
 %endif
 
 
@@ -257,7 +250,6 @@ mv build mpich
 
 
 %if 0%{?with_python3}
-pushd %{py3dir}
 # Install OpenMPI version
 %{_openmpi_load}
 mv openmpi build
@@ -278,7 +270,6 @@ mv build mpich
 %{_mpich_unload}
 %endif
 
-popd
 %endif
 
 
@@ -377,6 +368,9 @@ rm -rf %{buildroot}
 
 
 %changelog
+* Sat Mar 14 2015 Thomas Spura <tomspur at fedoraproject.org> - 1.3.1-7
+- remove %%py3dir
+
 * Thu Mar 12 2015 Thomas Spura <tomspur at fedoraproject.org> - 1.3.1-6
 - Rebuild for changed mpich libraries
 


More information about the scm-commits mailing list