From fb995247a96ddc4cd48ecaa0783c47182339593f8ff837e96c6a25511b27ae2e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tom=C3=A1=C5=A1=20Chv=C3=A1tal?= Date: Tue, 10 Mar 2020 12:56:26 +0000 Subject: [PATCH] - Provide init in opencensus/ext folder to provide basis structure for all the extensions OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-opencensus?expand=0&rev=4 --- python-opencensus.changes | 6 ++++++ python-opencensus.spec | 5 +++++ 2 files changed, 11 insertions(+) diff --git a/python-opencensus.changes b/python-opencensus.changes index 8be34fa..02c3b43 100644 --- a/python-opencensus.changes +++ b/python-opencensus.changes @@ -1,3 +1,9 @@ +------------------------------------------------------------------- +Tue Mar 10 12:56:01 UTC 2020 - Tomáš Chvátal + +- Provide init in opencensus/ext folder to provide basis + structure for all the extensions + ------------------------------------------------------------------- Tue Mar 10 11:25:01 UTC 2020 - Tomáš Chvátal diff --git a/python-opencensus.spec b/python-opencensus.spec index d3a10cc..43a8a02 100644 --- a/python-opencensus.spec +++ b/python-opencensus.spec @@ -71,6 +71,11 @@ sed -i -e 's:==:>=:g' setup.py %install %if !%{with test} %python_install +# add ext infrastructure +%python_expand mkdir %{buildroot}%{$python_sitelib}/opencensus/ext/ +%python_expand cp %{buildroot}%{$python_sitelib}/opencensus/__init__* %{buildroot}%{$python_sitelib}/opencensus/ext +%python_expand [ -e %{buildroot}%{$python_sitelib}/opencensus/__pycache* ] && cp -r %{buildroot}%{$python_sitelib}/opencensus/__pycache* %{buildroot}%{$python_sitelib}/opencensus/ext + %python_expand %fdupes %{buildroot}%{$python_sitelib} %endif