14
0

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
This commit is contained in:
Tomáš Chvátal
2018-05-10 16:45:45 +00:00
committed by Git OBS Bridge
parent 6ea23d1ad3
commit dc81c92e9c
2 changed files with 9 additions and 3 deletions

View File

@@ -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

View File

@@ -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}/*