Hello community, here is the log from the commit of package python-onnx for openSUSE:Factory checked in at 2020-04-23 18:35:32 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/python-onnx (Old) and /work/SRC/openSUSE:Factory/.python-onnx.new.2738 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "python-onnx" Thu Apr 23 18:35:32 2020 rev:6 rq:796524 version:1.6.0 Changes: -------- --- /work/SRC/openSUSE:Factory/python-onnx/python-onnx.changes 2020-03-24 22:34:58.333166095 +0100 +++ /work/SRC/openSUSE:Factory/.python-onnx.new.2738/python-onnx.changes 2020-04-23 18:36:43.140808749 +0200 @@ -1,0 +2,12 @@ +Thu Apr 23 11:49:13 UTC 2020 - Tomáš Chvátal <[email protected]> + +- Force the interpreter to match the one during build +- Mypy should use python3 to generate stuff not python2 + * no-python2.patch + +------------------------------------------------------------------- +Thu Apr 23 10:35:15 UTC 2020 - Tomáš Chvátal <[email protected]> + +- Do not pull in py2 devel of pybind11 + +------------------------------------------------------------------- New: ---- no-python2.patch ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ python-onnx.spec ++++++ --- /var/tmp/diff_new_pack.6cX8YW/_old 2020-04-23 18:36:45.404813080 +0200 +++ /var/tmp/diff_new_pack.6cX8YW/_new 2020-04-23 18:36:45.408813088 +0200 @@ -27,9 +27,11 @@ Source0: https://github.com/onnx/onnx/archive/v%{version}.tar.gz#/onnx-%{version}.tar.gz Source1: %{name}-rpmlintrc Patch0: protobuf.patch +Patch1: no-python2.patch BuildRequires: %{python_module devel} BuildRequires: %{python_module numpy} BuildRequires: %{python_module protobuf} +BuildRequires: %{python_module pybind11-devel} BuildRequires: %{python_module pybind11} BuildRequires: %{python_module pytest-xdist} BuildRequires: %{python_module pytest} @@ -39,7 +41,6 @@ BuildRequires: fdupes BuildRequires: gcc-c++ BuildRequires: protobuf-devel -BuildRequires: python-pybind11-devel BuildRequires: python-rpm-macros Requires: python-numpy Requires: python-protobuf @@ -59,7 +60,7 @@ %setup -q -n onnx-%{version} # avoid bundles rm -rf third_party -%patch0 -p1 +%autopatch -p1 # say that the cmake was already built (we used our macros) sed -i -e 's:built = False:built = True:g' setup.py # do not require extra pytest modules @@ -79,6 +80,7 @@ -DBUILD_ONNX_PYTHON=ON \ -DBUILD_SHARED_LIBS=OFF \ -DBUILD_STATIC_LIBS=ON \ + -DPYTHON_EXECUTABLE="%{_bindir}/$python" \ -DPY_EXT_SUFFIX="`$python-config --extension-suffix`" %cmake_build ; cd .. } ++++++ no-python2.patch ++++++ Index: onnx-1.6.0/tools/protoc-gen-mypy.py =================================================================== --- onnx-1.6.0.orig/tools/protoc-gen-mypy.py +++ onnx-1.6.0/tools/protoc-gen-mypy.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 # Taken from https://github.com/dropbox/mypy-protobuf/blob/d984389124eae6dbbb517f766b9266bb32171510/python/protoc-gen-mypy # (Apache 2.0 License)
