[adios] 146/207: Changes needed to make setup.py work with python3

Alastair McKinstry mckinstry at moszumanska.debian.org
Fri Jun 12 06:04:51 UTC 2015


This is an automated email from the git hooks/post-receive script.

mckinstry pushed a commit to branch master
in repository adios.

commit 52b750cf94111205ba9f25d65498eed7b8b59e9f
Author: Alastair McKinstry <mckinstry at debian.org>
Date:   Mon Jun 16 09:38:26 2014 +0100

    Changes needed to make setup.py work with python3
---
 debian/patches/python3.patch | 21 +++++++++++++++++++++
 1 file changed, 21 insertions(+)

diff --git a/debian/patches/python3.patch b/debian/patches/python3.patch
index b863456..e566334 100644
--- a/debian/patches/python3.patch
+++ b/debian/patches/python3.patch
@@ -671,3 +671,24 @@ Index: adios-1.7.0/wrappers/numpy/tests/test_adios_timestep.py
 -print "\n>>> Done.\n"
 +print("\n>>> Done.\n")
  
+Index: adios-1.7.0/wrappers/numpy/setup.py
+===================================================================
+--- adios-1.7.0.orig/wrappers/numpy/setup.py
++++ adios-1.7.0/wrappers/numpy/setup.py
+@@ -20,12 +20,14 @@ m1 = Extension('adios',
+                extra_objects = [])
+ 
+ p = subprocess.Popen(["adios_config", "-c", "-s"], stdout=subprocess.PIPE)
+-for path in p.communicate()[0].strip().split(" "):
++pp = p.communicate()[0].strip()
++for path in str(pp).split(" "):
+     if path.startswith('-I'):
+         m1.include_dirs.append(path.replace('-I', '', 1))
+ 
+ p = subprocess.Popen(["adios_config", "-l", "-s"], stdout=subprocess.PIPE)
+-for path in p.communicate()[0].strip().split(" "):
++pp = p.communicate()[0].strip()
++for path in str(pp).split(" "):
+     if path.startswith('-L'):
+         m1.library_dirs.append(path.replace('-L', '', 1))
+     if path.startswith('-l'):

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/debian-science/packages/adios.git



More information about the debian-science-commits mailing list