Accepting request 688181 from home:tbechtold:branches:devel:languages:python:numeric

- add fix-py34-tests.patch to fix build with python3.4 from SLE12SP4

OBS-URL: https://build.opensuse.org/request/show/688181
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:numeric/python-numpy?expand=0&rev=21
This commit is contained in:
Tomáš Chvátal
2019-03-25 10:31:44 +00:00
committed by Git OBS Bridge
parent dc7bb4f3b2
commit 3e2e7f0c3a
3 changed files with 28 additions and 0 deletions

View File

@@ -91,6 +91,8 @@ Patch0: numpy-buildfix.patch
Patch1: numpy-1.9.0-remove-__declspec.patch
# PATCH-FIX-UPSTREAM riscv.patch -- Add support for RISC-V
Patch2: riscv.patch
# # PATCH-FIX-SLE fix-py34-tests.patch -- python 3.4 support
Patch3: fix-py34-tests.patch
%if 0%{?suse_version}
BuildRequires: fdupes
%endif
@@ -165,6 +167,7 @@ This package contains files for developing applications using numpy.
%patch0 -p1
%patch1 -p1
%patch2 -p1
%patch3 -p1
# Fix non-executable scripts
sed -i '1s/^#!.*$//' numpy/{compat/setup,distutils/{conv_template,cpuinfo,exec_command,from_template,setup,system_info},f2py/{__init__,auxfuncs,capi_maps,cb_rules,cfuncs,common_rules,crackfortran,diagnose,f2py2e,f90mod_rules,func2subr,rules,setup,use_rules},ma/{setup,bench},matrixlib/setup,setup,testing/{print_coercion_tables,setup}}.py