From 866d7ddff00da9564fd15cd54ccb06a361209e66 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Miro=20Hron=C4=8Dok?= Date: Mon, 22 Jul 2019 17:35:27 +0200 Subject: [PATCH] Don't write PYTEST.pyc bytecode --- pytest.spec | 1 + 1 file changed, 1 insertion(+) diff --git a/pytest.spec b/pytest.spec index 38bcbb1..dca5364 100644 --- a/pytest.spec +++ b/pytest.spec @@ -114,6 +114,7 @@ find %{buildroot}%{python3_sitelib} \ -exec sed -i -e '1{/^#!/d}' {} \; %check +PYTHONDONTWRITEBYTECODE=1 \ PATH=%{buildroot}%{_bindir}:${PATH} \ PYTHONPATH=%{buildroot}%{python3_sitelib} \ %{buildroot}%{_bindir}/pytest-%{python3_version} -r s testing \