forked from pool/python-onnx
Accepting request 741052 from home:Guillaume_G:branches:science:machinelearning
- Fix armv7 build OBS-URL: https://build.opensuse.org/request/show/741052 OBS-URL: https://build.opensuse.org/package/show/science:machinelearning/python-onnx?expand=0&rev=2
This commit is contained in:
@@ -1,3 +1,8 @@
|
||||
-------------------------------------------------------------------
|
||||
Fri Oct 18 11:11:02 UTC 2019 - Guillaume GARDET <guillaume.gardet@opensuse.org>
|
||||
|
||||
- Fix armv7 build
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Tue Oct 8 11:03:12 UTC 2019 - Christian Goll <cgoll@suse.com>
|
||||
|
||||
|
@@ -65,11 +65,13 @@ export CFLAGS="%{optflags}"
|
||||
%install
|
||||
%python_install
|
||||
%python_expand %fdupes %{buildroot}%{$python_sitearch}
|
||||
shebang_files="/usr/lib64/python3.7/site-packages/onnx/backend/test/stat_coverage.py /usr/lib64/python3.7/site-packages/onnx/defs/gen_doc.py /usr/lib64/python3.7/site-packages/onnx/gen_proto.py"
|
||||
%ifpython3
|
||||
shebang_files="%{python_sitearch}/onnx/backend/test/stat_coverage.py %{python_sitearch}/onnx/defs/gen_doc.py %{python_sitearch}/onnx/gen_proto.py"
|
||||
for file in $shebang_files ; do
|
||||
sed -i 's@/usr/bin/env python@/usr/bin/python3@' %{buildroot}/$file
|
||||
chmod 755 %{buildroot}/$file
|
||||
done
|
||||
%endif
|
||||
# check fails with buitling typing of python 3.7.3
|
||||
# https://github.com/pybind/pybind11/issues/1949
|
||||
|
||||
|
Reference in New Issue
Block a user