- Do not write bytecode stuff when running the tests

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-Twisted?expand=0&rev=69
This commit is contained in:
Tomáš Chvátal
2018-10-22 08:57:29 +00:00
committed by Git OBS Bridge
parent b96524c75c
commit ae49f901fc
2 changed files with 7 additions and 1 deletions

View File

@@ -1,3 +1,8 @@
-------------------------------------------------------------------
Mon Oct 22 08:48:37 UTC 2018 - Tomáš Chvátal <tchvatal@suse.com>
- Do not write bytecode stuff when running the tests
-------------------------------------------------------------------
Fri Oct 19 13:27:25 UTC 2018 - Matěj Cepl <mcepl@suse.com>

View File

@@ -121,7 +121,7 @@ install -dm0755 %{buildroot}%{_mandir}/man1/
install -m0644 docs/*/man/*.1 %{buildroot}%{_mandir}/man1/ # Install man pages
find docs -type f -print0 | xargs -0 chmod a-x # Fix doc-file dependency by removing x flags
#sed -i "s/\r//" docs/core/howto/listings/udp/{MulticastClient,MulticastServer}.py
%python_expand %fdupes %{buildroot}%{$python_sitelib}
%python_expand %fdupes %{buildroot}%{$python_sitearch}
# Prepare for update-alternatives usage
for p in twistd cftp ckeygen conch pyhtmlizer tkconch trial ; do
@@ -140,6 +140,7 @@ done
%check
export LANG=en_US.UTF-8
export PATH=%{buildroot}%{_bindir}:$PATH
export PYTHONDONTWRITEBYTECODE=1
%python_expand PYTHONPATH=%{buildroot}%{$python_sitearch} $python -m twisted.trial twisted
%files -n %{name}-doc