From dc81c92e9c3d5589bc23b6dd220828db5c390774cf5f435eb6f40a36dd191c06 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tom=C3=A1=C5=A1=20Chv=C3=A1tal?= Date: Thu, 10 May 2018 16:45:45 +0000 Subject: [PATCH] Accepting request 606245 from home:TheBlackCat:branches:devel:languages:python - Avoid problem with bytecode being overwritten by tests OBS-URL: https://build.opensuse.org/request/show/606245 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-limnoria?expand=0&rev=9 --- python-limnoria.changes | 5 +++++ python-limnoria.spec | 7 ++++--- 2 files changed, 9 insertions(+), 3 deletions(-) diff --git a/python-limnoria.changes b/python-limnoria.changes index f960055..e7737bf 100644 --- a/python-limnoria.changes +++ b/python-limnoria.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Thu May 10 15:43:03 UTC 2018 - toddrme2178@gmail.com + +- Avoid problem with bytecode being overwritten by tests + ------------------------------------------------------------------- Mon Apr 30 18:58:58 UTC 2018 - badshah400@gmail.com diff --git a/python-limnoria.spec b/python-limnoria.spec index 2636c1a..5b2397b 100644 --- a/python-limnoria.spec +++ b/python-limnoria.spec @@ -73,14 +73,15 @@ sed -i "1,4{/\/usr\/bin\/python/d}" plugins/Debug/plugin.py %python_expand %fdupes %{buildroot}%{$python_sitelib}/supybot/ %check -%{python_expand # -export PYTHONPATH=%{buildroot}%{python_sitelib}/ +%{python_expand export PYTHONDONTWRITEBYTECODE=1 +export PYTHONPATH=%{buildroot}%{$python_sitelib}/ %python_exec test/test.py } %files %python_files %defattr(-,root,root,-) -%doc LICENSE.md README.md CONTRIBUTING.md +%doc README.md CONTRIBUTING.md +%license LICENSE.md %python3_only %{_bindir}/supybot %python3_only %{_bindir}/supybot-* %{python_sitelib}/*