+ exec + rm -rf /rpmbuild + mkdir -p /rpmbuild + su -c 'rpmbuild -ba /builddir/build/SPECS/python-simplewrap.spec --define "debug_package %{nil}" --undefine _annotated_build --define "_missing_doc_files_terminate_build %{nil}" --define "_emacs_sitestartdir /usr/share/emacs/site-lisp/site-start.d" --define "_emacs_sitelispdir /usr/share/emacs/site-lisp" --nocheck ' mockbuild Executing(%prep): /bin/sh -e /var/tmp/rpm-tmp.LKcnzK + umask 022 + cd /builddir/build/BUILD + cd /builddir/build/BUILD + rm -rf python-simplewrap-0.3.0 + /usr/bin/mkdir -p python-simplewrap-0.3.0 + cd python-simplewrap-0.3.0 + /usr/bin/gzip -dc /builddir/build/SOURCES/simplewrap-0.3.0.tar.gz + /usr/bin/tar -xof - + STATUS=0 + '[' 0 -ne 0 ']' + /usr/bin/chmod -Rf a+rX,u+w,g-w,o-w . + mv simplewrap-0.3.0 python2 + rm -rf python2/simplewrap.egg-info + find python2 -type f -exec chmod -x '{}' ';' + cp -a python2 python3 + 2to3 --write --nobackups python3 RefactoringTool: Skipping optional fixer: buffer RefactoringTool: Skipping optional fixer: idioms RefactoringTool: Skipping optional fixer: set_literal RefactoringTool: Skipping optional fixer: ws_comma RefactoringTool: No changes to python3/setup.py RefactoringTool: Refactored python3/simplewrap/__init__.py RefactoringTool: Refactored python3/simplewrap/c_matlab.py RefactoringTool: Refactored python3/simplewrap/c_python.py RefactoringTool: Refactored python3/simplewrap/c_python2.py RefactoringTool: No changes to python3/simplewrap/exceptions.py RefactoringTool: No changes to python3/simplewrap/tests/test_all.py RefactoringTool: Files that were modified: RefactoringTool: python3/setup.py RefactoringTool: python3/simplewrap/__init__.py RefactoringTool: python3/simplewrap/c_matlab.py RefactoringTool: python3/simplewrap/c_python.py RefactoringTool: python3/simplewrap/c_python2.py RefactoringTool: python3/simplewrap/exceptions.py RefactoringTool: python3/simplewrap/tests/test_all.py --- python3/simplewrap/__init__.py (original) +++ python3/simplewrap/__init__.py (refactored) @@ -4,7 +4,7 @@ # Aalto University, School of Science, Helsinki # Oct 2013, Helsinki -from c_python import * +from .c_python import * #import c_python2 #from c_matlab import * --- python3/simplewrap/c_matlab.py (original) +++ python3/simplewrap/c_matlab.py (refactored) @@ -8,8 +8,8 @@ from ctypes import * from numpy import * import os, sys, inspect -from exceptions import * -from c_python import load_c_library, localpath +from .exceptions import * +from .c_python import load_c_library, localpath @@ -30,7 +30,7 @@ arg = d['value'] if argtype == 'string': if arg is None: - if not d.has_key('size'): + if 'size' not in d: raise DescriptorError("'string' with 'value'='None' must have 'size' property. ") arg = ' '*size arg_c = c_char_p(arg) @@ -56,9 +56,9 @@ arg_c = pointer(arg) elif argtype == 'array': if arg is None: - if not d.has_key('size'): + if 'size' not in d: raise DescriptorError("'array' with 'value'='None' must have 'size' property. ") - if not d.has_key('dtype'): + if 'dtype' not in d: raise DescriptorError("'array' with 'value'='None' must have 'dtype' property. ") arg = zeros(d['size'],dtype=d['dtype']) arg_c = arg.ctypes.data_as(POINTER(c_void_p)) --- python3/simplewrap/c_python.py (original) +++ python3/simplewrap/c_python.py (refactored) @@ -10,7 +10,7 @@ from ctypes import * from numpy import * import os, sys, inspect -from exceptions import * +from .exceptions import * import platform import copy @@ -96,26 +96,26 @@ def export_dl_library_path(path): if platform.system()=='Linux': - if "LD_LIBRARY_PATH" in os.environ.keys(): + if "LD_LIBRARY_PATH" in list(os.environ.keys()): os.environ["LD_LIBRARY_PATH"] += os.pathsep + path else: os.environ["LD_LIBRARY_PATH"] = path elif platform.system()=='Darwin': - if "DYLD_LIBRARY_PATH" in os.environ.keys(): + if "DYLD_LIBRARY_PATH" in list(os.environ.keys()): os.environ["DYLD_LIBRARY_PATH"] += os.pathsep + path else: os.environ["DYLD_LIBRARY_PATH"] = path elif platform.system()=='Windows': - if "PATH" in os.environ.keys(): + if "PATH" in list(os.environ.keys()): os.environ["PATH"] += os.pathsep + path else: os.environ["PATH"] = path else: - if "LD_LIBRARY_PATH" in os.environ.keys(): + if "LD_LIBRARY_PATH" in list(os.environ.keys()): os.environ["LD_LIBRARY_PATH"] += os.pathsep + path else: os.environ["LD_LIBRARY_PATH"] = path - if "PATH" in os.environ.keys(): + if "PATH" in list(os.environ.keys()): os.environ["PATH"] += os.pathsep + path else: os.environ["PATH"] = path @@ -138,7 +138,7 @@ arg = d['value'] if argtype == 'string': if arg is None: - if not d.has_key('size'): + if 'size' not in d: raise DescriptorError("'string' with 'value'='None' must have 'size' property. ") arg = ' '*size arg_c = c_char_p(arg) @@ -164,11 +164,11 @@ arg_c = pointer(arg) elif argtype == 'array': if arg is None: - if not d.has_key('size'): + if 'size' not in d: raise DescriptorError("'array' with 'value'='None' must have 'size' property. ") - if not d.has_key('dtype'): + if 'dtype' not in d: raise DescriptorError("'array' with 'value'='None' must have 'dtype' property. ") - if d.has_key('order'): + if 'order' in d: order = d['order'] if not order in ["C","A","F",None]: raise DescriptorError("'order' property of type 'array' must be 'C' (C array order),'F' (Fortran array order), 'A' (any order, let numpy decide) or None (any order, let numpy decide) ") @@ -178,16 +178,16 @@ # If variable is given (not None) and dtype is specified, change the dtype of the given array if not consistent # This also converts lists and tuples to numpy arrays if the given variable is not a numpy array. else: - if d.has_key('dtype'): + if 'dtype' in d: dtype = d['dtype'] arg=dtype(arg) - if d.has_key('order'): + if 'order' in d: arg=asarray(arg,order=d['order']) arg_c = arg.ctypes.data_as(POINTER(c_void_p)) elif argtype == 'function': if arg is None: raise DescriptorError("For 'function' type, 'value' must be a function. ") - if not d.has_key('arg_types'): + if 'arg_types' not in d: raise DescriptorError("For 'function' type, 'arg_types' must be specified. ") arg_types = [] for t in d['arg_types']: @@ -218,7 +218,7 @@ args[i] = args[i].value # swap axes of array if requested if descriptor[i]['type'] == 'array': - if descriptor[i].has_key('swapaxes'): + if 'swapaxes' in descriptor[i]: # 1) reshape shape = args[i].shape shape2 = list(shape) --- python3/simplewrap/c_python2.py (original) +++ python3/simplewrap/c_python2.py (refactored) @@ -11,7 +11,7 @@ from ctypes import * from numpy import * import os, sys, inspect -from exceptions import * +from .exceptions import * from json import loads import platform + exit 0 Executing(%build): /bin/sh -e /var/tmp/rpm-tmp.zN8gGj + umask 022 + cd /builddir/build/BUILD + cd python-simplewrap-0.3.0 + pushd python2 ~/build/BUILD/python-simplewrap-0.3.0/python2 ~/build/BUILD/python-simplewrap-0.3.0 + CFLAGS='-O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 ' + /usr/bin/python2 setup.py build '--executable=/usr/bin/python2 -s' running build running build_py creating build creating build/lib.linux-riscv64-2.7 creating build/lib.linux-riscv64-2.7/simplewrap copying simplewrap/c_matlab.py -> build/lib.linux-riscv64-2.7/simplewrap copying simplewrap/c_python.py -> build/lib.linux-riscv64-2.7/simplewrap copying simplewrap/c_python2.py -> build/lib.linux-riscv64-2.7/simplewrap copying simplewrap/__init__.py -> build/lib.linux-riscv64-2.7/simplewrap copying simplewrap/exceptions.py -> build/lib.linux-riscv64-2.7/simplewrap creating build/lib.linux-riscv64-2.7/simplewrap/examples copying simplewrap/examples/__init__.py -> build/lib.linux-riscv64-2.7/simplewrap/examples creating build/lib.linux-riscv64-2.7/simplewrap/tests copying simplewrap/tests/test_all.py -> build/lib.linux-riscv64-2.7/simplewrap/tests copying simplewrap/tests/__init__.py -> build/lib.linux-riscv64-2.7/simplewrap/tests running build_ext building 'simplewrap.tests.test_simplewrap_c' extension creating build/temp.linux-riscv64-2.7 creating build/temp.linux-riscv64-2.7/simplewrap creating build/temp.linux-riscv64-2.7/simplewrap/tests gcc -pthread -fno-strict-aliasing -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -D_GNU_SOURCE -fPIC -fwrapv -DNDEBUG -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -D_GNU_SOURCE -fPIC -fwrapv -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -D_GNU_SOURCE -fPIC -fwrapv -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fPIC -I/usr/include/python2.7 -c simplewrap/tests/test_simplewrap_c.c -o build/temp.linux-riscv64-2.7/simplewrap/tests/test_simplewrap_c.o gcc -pthread -shared -Wl,-z,relro -specs=/usr/lib/rpm/redhat/redhat-hardened-ld -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 build/temp.linux-riscv64-2.7/simplewrap/tests/test_simplewrap_c.o -L/usr/lib64 -lpython2.7 -o build/lib.linux-riscv64-2.7/simplewrap/tests/test_simplewrap_c.so building 'simplewrap.tests.test_matrices_c' extension gcc -pthread -fno-strict-aliasing -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -D_GNU_SOURCE -fPIC -fwrapv -DNDEBUG -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -D_GNU_SOURCE -fPIC -fwrapv -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -D_GNU_SOURCE -fPIC -fwrapv -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fPIC -I/usr/include/python2.7 -c simplewrap/tests/test_matrices_c.c -o build/temp.linux-riscv64-2.7/simplewrap/tests/test_matrices_c.o gcc -pthread -shared -Wl,-z,relro -specs=/usr/lib/rpm/redhat/redhat-hardened-ld -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 build/temp.linux-riscv64-2.7/simplewrap/tests/test_matrices_c.o -L/usr/lib64 -lpython2.7 -o build/lib.linux-riscv64-2.7/simplewrap/tests/test_matrices_c.so + sleep 1 + popd ~/build/BUILD/python-simplewrap-0.3.0 + pushd python3 ~/build/BUILD/python-simplewrap-0.3.0/python3 ~/build/BUILD/python-simplewrap-0.3.0 + CFLAGS='-O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 ' + /usr/bin/python3 setup.py build '--executable=/usr/bin/python3 -s' running build running build_py creating build creating build/lib.linux-riscv64-3.6 creating build/lib.linux-riscv64-3.6/simplewrap copying simplewrap/c_matlab.py -> build/lib.linux-riscv64-3.6/simplewrap copying simplewrap/c_python.py -> build/lib.linux-riscv64-3.6/simplewrap copying simplewrap/c_python2.py -> build/lib.linux-riscv64-3.6/simplewrap copying simplewrap/__init__.py -> build/lib.linux-riscv64-3.6/simplewrap copying simplewrap/exceptions.py -> build/lib.linux-riscv64-3.6/simplewrap creating build/lib.linux-riscv64-3.6/simplewrap/examples copying simplewrap/examples/__init__.py -> build/lib.linux-riscv64-3.6/simplewrap/examples creating build/lib.linux-riscv64-3.6/simplewrap/tests copying simplewrap/tests/test_all.py -> build/lib.linux-riscv64-3.6/simplewrap/tests copying simplewrap/tests/__init__.py -> build/lib.linux-riscv64-3.6/simplewrap/tests running build_ext building 'simplewrap.tests.test_simplewrap_c' extension creating build/temp.linux-riscv64-3.6 creating build/temp.linux-riscv64-3.6/simplewrap creating build/temp.linux-riscv64-3.6/simplewrap/tests gcc -pthread -DNDEBUG -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -D_GNU_SOURCE -fPIC -fwrapv -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fPIC -I/usr/include/python3.6m -c simplewrap/tests/test_simplewrap_c.c -o build/temp.linux-riscv64-3.6/simplewrap/tests/test_simplewrap_c.o gcc -pthread -shared -Wl,-z,relro -specs=/usr/lib/rpm/redhat/redhat-hardened-ld -g -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 build/temp.linux-riscv64-3.6/simplewrap/tests/test_simplewrap_c.o -L/usr/lib64 -lpython3.6m -o build/lib.linux-riscv64-3.6/simplewrap/tests/test_simplewrap_c.cpython-36m-riscv64-linux-gnu.so building 'simplewrap.tests.test_matrices_c' extension gcc -pthread -DNDEBUG -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -D_GNU_SOURCE -fPIC -fwrapv -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fPIC -I/usr/include/python3.6m -c simplewrap/tests/test_matrices_c.c -o build/temp.linux-riscv64-3.6/simplewrap/tests/test_matrices_c.o gcc -pthread -shared -Wl,-z,relro -specs=/usr/lib/rpm/redhat/redhat-hardened-ld -g -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 build/temp.linux-riscv64-3.6/simplewrap/tests/test_matrices_c.o -L/usr/lib64 -lpython3.6m -o build/lib.linux-riscv64-3.6/simplewrap/tests/test_matrices_c.cpython-36m-riscv64-linux-gnu.so + sleep 1 + popd ~/build/BUILD/python-simplewrap-0.3.0 + exit 0 Executing(%install): /bin/sh -e /var/tmp/rpm-tmp.HjWxia + umask 022 + cd /builddir/build/BUILD + '[' /builddir/build/BUILDROOT/python-simplewrap-0.3.0-7.fc28.riscv64 '!=' / ']' + rm -rf /builddir/build/BUILDROOT/python-simplewrap-0.3.0-7.fc28.riscv64 ++ dirname /builddir/build/BUILDROOT/python-simplewrap-0.3.0-7.fc28.riscv64 + mkdir -p /builddir/build/BUILDROOT + mkdir /builddir/build/BUILDROOT/python-simplewrap-0.3.0-7.fc28.riscv64 + cd python-simplewrap-0.3.0 + pushd python2 ~/build/BUILD/python-simplewrap-0.3.0/python2 ~/build/BUILD/python-simplewrap-0.3.0 + CFLAGS='-O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 ' + /usr/bin/python2 setup.py install -O1 --skip-build --root /builddir/build/BUILDROOT/python-simplewrap-0.3.0-7.fc28.riscv64 running install running install_lib creating /builddir/build/BUILDROOT/python-simplewrap-0.3.0-7.fc28.riscv64/usr creating /builddir/build/BUILDROOT/python-simplewrap-0.3.0-7.fc28.riscv64/usr/lib64 creating /builddir/build/BUILDROOT/python-simplewrap-0.3.0-7.fc28.riscv64/usr/lib64/python2.7 creating /builddir/build/BUILDROOT/python-simplewrap-0.3.0-7.fc28.riscv64/usr/lib64/python2.7/site-packages creating /builddir/build/BUILDROOT/python-simplewrap-0.3.0-7.fc28.riscv64/usr/lib64/python2.7/site-packages/simplewrap creating /builddir/build/BUILDROOT/python-simplewrap-0.3.0-7.fc28.riscv64/usr/lib64/python2.7/site-packages/simplewrap/examples copying build/lib.linux-riscv64-2.7/simplewrap/examples/__init__.py -> /builddir/build/BUILDROOT/python-simplewrap-0.3.0-7.fc28.riscv64/usr/lib64/python2.7/site-packages/simplewrap/examples copying build/lib.linux-riscv64-2.7/simplewrap/c_matlab.py -> /builddir/build/BUILDROOT/python-simplewrap-0.3.0-7.fc28.riscv64/usr/lib64/python2.7/site-packages/simplewrap copying build/lib.linux-riscv64-2.7/simplewrap/c_python.py -> /builddir/build/BUILDROOT/python-simplewrap-0.3.0-7.fc28.riscv64/usr/lib64/python2.7/site-packages/simplewrap copying build/lib.linux-riscv64-2.7/simplewrap/c_python2.py -> /builddir/build/BUILDROOT/python-simplewrap-0.3.0-7.fc28.riscv64/usr/lib64/python2.7/site-packages/simplewrap copying build/lib.linux-riscv64-2.7/simplewrap/__init__.py -> /builddir/build/BUILDROOT/python-simplewrap-0.3.0-7.fc28.riscv64/usr/lib64/python2.7/site-packages/simplewrap copying build/lib.linux-riscv64-2.7/simplewrap/exceptions.py -> /builddir/build/BUILDROOT/python-simplewrap-0.3.0-7.fc28.riscv64/usr/lib64/python2.7/site-packages/simplewrap creating /builddir/build/BUILDROOT/python-simplewrap-0.3.0-7.fc28.riscv64/usr/lib64/python2.7/site-packages/simplewrap/tests copying build/lib.linux-riscv64-2.7/simplewrap/tests/test_all.py -> /builddir/build/BUILDROOT/python-simplewrap-0.3.0-7.fc28.riscv64/usr/lib64/python2.7/site-packages/simplewrap/tests copying build/lib.linux-riscv64-2.7/simplewrap/tests/__init__.py -> /builddir/build/BUILDROOT/python-simplewrap-0.3.0-7.fc28.riscv64/usr/lib64/python2.7/site-packages/simplewrap/tests copying build/lib.linux-riscv64-2.7/simplewrap/tests/test_simplewrap_c.so -> /builddir/build/BUILDROOT/python-simplewrap-0.3.0-7.fc28.riscv64/usr/lib64/python2.7/site-packages/simplewrap/tests copying build/lib.linux-riscv64-2.7/simplewrap/tests/test_matrices_c.so -> /builddir/build/BUILDROOT/python-simplewrap-0.3.0-7.fc28.riscv64/usr/lib64/python2.7/site-packages/simplewrap/tests byte-compiling /builddir/build/BUILDROOT/python-simplewrap-0.3.0-7.fc28.riscv64/usr/lib64/python2.7/site-packages/simplewrap/examples/__init__.py to __init__.pyc byte-compiling /builddir/build/BUILDROOT/python-simplewrap-0.3.0-7.fc28.riscv64/usr/lib64/python2.7/site-packages/simplewrap/c_matlab.py to c_matlab.pyc byte-compiling /builddir/build/BUILDROOT/python-simplewrap-0.3.0-7.fc28.riscv64/usr/lib64/python2.7/site-packages/simplewrap/c_python.py to c_python.pyc byte-compiling /builddir/build/BUILDROOT/python-simplewrap-0.3.0-7.fc28.riscv64/usr/lib64/python2.7/site-packages/simplewrap/c_python2.py to c_python2.pyc byte-compiling /builddir/build/BUILDROOT/python-simplewrap-0.3.0-7.fc28.riscv64/usr/lib64/python2.7/site-packages/simplewrap/__init__.py to __init__.pyc byte-compiling /builddir/build/BUILDROOT/python-simplewrap-0.3.0-7.fc28.riscv64/usr/lib64/python2.7/site-packages/simplewrap/exceptions.py to exceptions.pyc byte-compiling /builddir/build/BUILDROOT/python-simplewrap-0.3.0-7.fc28.riscv64/usr/lib64/python2.7/site-packages/simplewrap/tests/test_all.py to test_all.pyc byte-compiling /builddir/build/BUILDROOT/python-simplewrap-0.3.0-7.fc28.riscv64/usr/lib64/python2.7/site-packages/simplewrap/tests/__init__.py to __init__.pyc writing byte-compilation script '/tmp/tmph7Nges.py' /usr/bin/python2 -O /tmp/tmph7Nges.py removing /tmp/tmph7Nges.py running install_egg_info running egg_info creating simplewrap.egg-info writing requirements to simplewrap.egg-info/requires.txt writing simplewrap.egg-info/PKG-INFO writing top-level names to simplewrap.egg-info/top_level.txt writing dependency_links to simplewrap.egg-info/dependency_links.txt writing manifest file 'simplewrap.egg-info/SOURCES.txt' reading manifest file 'simplewrap.egg-info/SOURCES.txt' reading manifest template 'MANIFEST.in' writing manifest file 'simplewrap.egg-info/SOURCES.txt' Copying simplewrap.egg-info to /builddir/build/BUILDROOT/python-simplewrap-0.3.0-7.fc28.riscv64/usr/lib64/python2.7/site-packages/simplewrap-0.3.0-py2.7.egg-info running install_scripts + popd ~/build/BUILD/python-simplewrap-0.3.0 + pushd python3 ~/build/BUILD/python-simplewrap-0.3.0/python3 ~/build/BUILD/python-simplewrap-0.3.0 + CFLAGS='-O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 ' + /usr/bin/python3 setup.py install -O1 --skip-build --root /builddir/build/BUILDROOT/python-simplewrap-0.3.0-7.fc28.riscv64 running install running install_lib creating /builddir/build/BUILDROOT/python-simplewrap-0.3.0-7.fc28.riscv64/usr/lib64/python3.6 creating /builddir/build/BUILDROOT/python-simplewrap-0.3.0-7.fc28.riscv64/usr/lib64/python3.6/site-packages creating /builddir/build/BUILDROOT/python-simplewrap-0.3.0-7.fc28.riscv64/usr/lib64/python3.6/site-packages/simplewrap creating /builddir/build/BUILDROOT/python-simplewrap-0.3.0-7.fc28.riscv64/usr/lib64/python3.6/site-packages/simplewrap/examples copying build/lib.linux-riscv64-3.6/simplewrap/examples/__init__.py -> /builddir/build/BUILDROOT/python-simplewrap-0.3.0-7.fc28.riscv64/usr/lib64/python3.6/site-packages/simplewrap/examples copying build/lib.linux-riscv64-3.6/simplewrap/c_matlab.py -> /builddir/build/BUILDROOT/python-simplewrap-0.3.0-7.fc28.riscv64/usr/lib64/python3.6/site-packages/simplewrap copying build/lib.linux-riscv64-3.6/simplewrap/c_python.py -> /builddir/build/BUILDROOT/python-simplewrap-0.3.0-7.fc28.riscv64/usr/lib64/python3.6/site-packages/simplewrap copying build/lib.linux-riscv64-3.6/simplewrap/c_python2.py -> /builddir/build/BUILDROOT/python-simplewrap-0.3.0-7.fc28.riscv64/usr/lib64/python3.6/site-packages/simplewrap copying build/lib.linux-riscv64-3.6/simplewrap/__init__.py -> /builddir/build/BUILDROOT/python-simplewrap-0.3.0-7.fc28.riscv64/usr/lib64/python3.6/site-packages/simplewrap copying build/lib.linux-riscv64-3.6/simplewrap/exceptions.py -> /builddir/build/BUILDROOT/python-simplewrap-0.3.0-7.fc28.riscv64/usr/lib64/python3.6/site-packages/simplewrap creating /builddir/build/BUILDROOT/python-simplewrap-0.3.0-7.fc28.riscv64/usr/lib64/python3.6/site-packages/simplewrap/tests copying build/lib.linux-riscv64-3.6/simplewrap/tests/test_all.py -> /builddir/build/BUILDROOT/python-simplewrap-0.3.0-7.fc28.riscv64/usr/lib64/python3.6/site-packages/simplewrap/tests copying build/lib.linux-riscv64-3.6/simplewrap/tests/__init__.py -> /builddir/build/BUILDROOT/python-simplewrap-0.3.0-7.fc28.riscv64/usr/lib64/python3.6/site-packages/simplewrap/tests copying build/lib.linux-riscv64-3.6/simplewrap/tests/test_matrices_c.cpython-36m-riscv64-linux-gnu.so -> /builddir/build/BUILDROOT/python-simplewrap-0.3.0-7.fc28.riscv64/usr/lib64/python3.6/site-packages/simplewrap/tests copying build/lib.linux-riscv64-3.6/simplewrap/tests/test_simplewrap_c.cpython-36m-riscv64-linux-gnu.so -> /builddir/build/BUILDROOT/python-simplewrap-0.3.0-7.fc28.riscv64/usr/lib64/python3.6/site-packages/simplewrap/tests byte-compiling /builddir/build/BUILDROOT/python-simplewrap-0.3.0-7.fc28.riscv64/usr/lib64/python3.6/site-packages/simplewrap/examples/__init__.py to __init__.cpython-36.pyc byte-compiling /builddir/build/BUILDROOT/python-simplewrap-0.3.0-7.fc28.riscv64/usr/lib64/python3.6/site-packages/simplewrap/c_matlab.py to c_matlab.cpython-36.pyc byte-compiling /builddir/build/BUILDROOT/python-simplewrap-0.3.0-7.fc28.riscv64/usr/lib64/python3.6/site-packages/simplewrap/c_python.py to c_python.cpython-36.pyc byte-compiling /builddir/build/BUILDROOT/python-simplewrap-0.3.0-7.fc28.riscv64/usr/lib64/python3.6/site-packages/simplewrap/c_python2.py to c_python2.cpython-36.pyc byte-compiling /builddir/build/BUILDROOT/python-simplewrap-0.3.0-7.fc28.riscv64/usr/lib64/python3.6/site-packages/simplewrap/__init__.py to __init__.cpython-36.pyc byte-compiling /builddir/build/BUILDROOT/python-simplewrap-0.3.0-7.fc28.riscv64/usr/lib64/python3.6/site-packages/simplewrap/exceptions.py to exceptions.cpython-36.pyc byte-compiling /builddir/build/BUILDROOT/python-simplewrap-0.3.0-7.fc28.riscv64/usr/lib64/python3.6/site-packages/simplewrap/tests/test_all.py to test_all.cpython-36.pyc byte-compiling /builddir/build/BUILDROOT/python-simplewrap-0.3.0-7.fc28.riscv64/usr/lib64/python3.6/site-packages/simplewrap/tests/__init__.py to __init__.cpython-36.pyc writing byte-compilation script '/tmp/tmp9jq04_x0.py' /usr/bin/python3 /tmp/tmp9jq04_x0.py removing /tmp/tmp9jq04_x0.py running install_egg_info running egg_info creating simplewrap.egg-info writing simplewrap.egg-info/PKG-INFO writing dependency_links to simplewrap.egg-info/dependency_links.txt writing requirements to simplewrap.egg-info/requires.txt writing top-level names to simplewrap.egg-info/top_level.txt writing manifest file 'simplewrap.egg-info/SOURCES.txt' reading manifest file 'simplewrap.egg-info/SOURCES.txt' reading manifest template 'MANIFEST.in' writing manifest file 'simplewrap.egg-info/SOURCES.txt' Copying simplewrap.egg-info to /builddir/build/BUILDROOT/python-simplewrap-0.3.0-7.fc28.riscv64/usr/lib64/python3.6/site-packages/simplewrap-0.3.0-py3.6.egg-info running install_scripts + popd ~/build/BUILD/python-simplewrap-0.3.0 + find /builddir/build/BUILDROOT/python-simplewrap-0.3.0-7.fc28.riscv64/usr/lib64/python2.7/site-packages -name '*.so' -exec chmod 755 '{}' ';' + find /builddir/build/BUILDROOT/python-simplewrap-0.3.0-7.fc28.riscv64/usr/lib64/python3.6/site-packages -name '*.so' -exec chmod 755 '{}' ';' + /usr/lib/rpm/check-buildroot + /usr/lib/rpm/redhat/brp-ldconfig /sbin/ldconfig: Warning: ignoring configuration file that cannot be opened: /etc/ld.so.conf: No such file or directory + /usr/lib/rpm/brp-compress + /usr/lib/rpm/brp-strip /usr/bin/strip + /usr/lib/rpm/brp-strip-comment-note /usr/bin/strip /usr/bin/objdump + /usr/lib/rpm/brp-strip-static-archive /usr/bin/strip + /usr/lib/rpm/brp-python-bytecompile /usr/bin/python 1 Bytecompiling .py files below /builddir/build/BUILDROOT/python-simplewrap-0.3.0-7.fc28.riscv64/usr/lib64/python3.6 using /usr/bin/python3.6 Bytecompiling .py files below /builddir/build/BUILDROOT/python-simplewrap-0.3.0-7.fc28.riscv64/usr/lib64/python2.7 using /usr/bin/python2.7 + /usr/lib/rpm/brp-python-hardlink + /usr/lib/rpm/redhat/brp-mangle-shebangs Processing files: python2-simplewrap-0.3.0-7.fc28.riscv64 Executing(%doc): /bin/sh -e /var/tmp/rpm-tmp.rQJNIe + umask 022 + cd /builddir/build/BUILD + cd python-simplewrap-0.3.0 + DOCDIR=/builddir/build/BUILDROOT/python-simplewrap-0.3.0-7.fc28.riscv64/usr/share/doc/python2-simplewrap + export LC_ALL=C + LC_ALL=C + export DOCDIR + /usr/bin/mkdir -p /builddir/build/BUILDROOT/python-simplewrap-0.3.0-7.fc28.riscv64/usr/share/doc/python2-simplewrap + cp -pr python2/README.rst /builddir/build/BUILDROOT/python-simplewrap-0.3.0-7.fc28.riscv64/usr/share/doc/python2-simplewrap + exit 0 Provides: python-simplewrap = 0.3.0-7.fc28 python-simplewrap(riscv-64) = 0.3.0-7.fc28 python2-simplewrap = 0.3.0-7.fc28 python2-simplewrap(riscv-64) = 0.3.0-7.fc28 python2.7dist(simplewrap) = 0.3.0 python2dist(simplewrap) = 0.3.0 Requires(rpmlib): rpmlib(CompressedFileNames) <= 3.0.4-1 rpmlib(FileDigests) <= 4.6.0-1 rpmlib(PartialHardlinkSets) <= 4.0.4-1 rpmlib(PayloadFilesHavePrefix) <= 4.0-1 Requires: ld-linux-riscv64-lp64d.so.1()(64bit) ld-linux-riscv64-lp64d.so.1(GLIBC_2.27)(64bit) libc.so.6()(64bit) libc.so.6(GLIBC_2.27)(64bit) libpthread.so.0()(64bit) libpython2.7.so.1.0()(64bit) python(abi) = 2.7 rtld(GNU_HASH) Obsoletes: python-simplewrap < 0.3.0-7.fc28 Processing files: python3-simplewrap-0.3.0-7.fc28.riscv64 Executing(%doc): /bin/sh -e /var/tmp/rpm-tmp.8TTPZi + umask 022 + cd /builddir/build/BUILD + cd python-simplewrap-0.3.0 + DOCDIR=/builddir/build/BUILDROOT/python-simplewrap-0.3.0-7.fc28.riscv64/usr/share/doc/python3-simplewrap + export LC_ALL=C + LC_ALL=C + export DOCDIR + /usr/bin/mkdir -p /builddir/build/BUILDROOT/python-simplewrap-0.3.0-7.fc28.riscv64/usr/share/doc/python3-simplewrap + cp -pr python3/README.rst /builddir/build/BUILDROOT/python-simplewrap-0.3.0-7.fc28.riscv64/usr/share/doc/python3-simplewrap + exit 0 Provides: python3-simplewrap = 0.3.0-7.fc28 python3-simplewrap(riscv-64) = 0.3.0-7.fc28 python3.6dist(simplewrap) = 0.3.0 python3dist(simplewrap) = 0.3.0 Requires(rpmlib): rpmlib(CompressedFileNames) <= 3.0.4-1 rpmlib(FileDigests) <= 4.6.0-1 rpmlib(PartialHardlinkSets) <= 4.0.4-1 rpmlib(PayloadFilesHavePrefix) <= 4.0-1 Requires: ld-linux-riscv64-lp64d.so.1()(64bit) ld-linux-riscv64-lp64d.so.1(GLIBC_2.27)(64bit) libc.so.6()(64bit) libc.so.6(GLIBC_2.27)(64bit) libpthread.so.0()(64bit) libpython3.6m.so.1.0()(64bit) python(abi) = 3.6 rtld(GNU_HASH) Checking for unpackaged file(s): /usr/lib/rpm/check-files /builddir/build/BUILDROOT/python-simplewrap-0.3.0-7.fc28.riscv64 Wrote: /builddir/build/SRPMS/python-simplewrap-0.3.0-7.fc28.src.rpm Wrote: /builddir/build/RPMS/riscv64/python2-simplewrap-0.3.0-7.fc28.riscv64.rpm Wrote: /builddir/build/RPMS/riscv64/python3-simplewrap-0.3.0-7.fc28.riscv64.rpm Executing(%clean): /bin/sh -e /var/tmp/rpm-tmp.AQEESm + umask 022 + cd /builddir/build/BUILD + cd python-simplewrap-0.3.0 + /usr/bin/rm -rf /builddir/build/BUILDROOT/python-simplewrap-0.3.0-7.fc28.riscv64 + exit 0 + touch /buildok + cleanup + set +e + sync + sleep 5 + sync + poweroff Terminated ++ cleanup ++ set +e ++ sync ++ sleep 5 +++ cleanup +++ set +e +++ sync +++ sleep 5 +++ sync +++ poweroff