diff --git a/macros.pyproject b/macros.pyproject index ceaf13e..7fec2cf 100644 --- a/macros.pyproject +++ b/macros.pyproject @@ -105,6 +105,7 @@ fi %tox(e:) %{expand:\\\ TOX_TESTENV_PASSENV="${TOX_TESTENV_PASSENV:-*}" \\ +PYTHONDONTWRITEBYTECODE=1 \\ PATH="%{buildroot}%{_bindir}:$PATH" \\ PYTHONPATH="${PYTHONPATH:-%{buildroot}%{python3_sitearch}:%{buildroot}%{python3_sitelib}}" \\ HOSTNAME="rpmbuild" \\ diff --git a/pyproject-rpm-macros.spec b/pyproject-rpm-macros.spec index 5de233e..71dad2e 100644 --- a/pyproject-rpm-macros.spec +++ b/pyproject-rpm-macros.spec @@ -6,7 +6,7 @@ License: MIT # Keep the version at zero and increment only release Version: 0 -Release: 32%{?dist} +Release: 33%{?dist} # Macro files Source001: macros.pyproject @@ -97,6 +97,9 @@ export HOSTNAME="rpmbuild" # to speedup tox in network-less mock, see rhbz#1856 %license LICENSE %changelog +* Fri Nov 27 2020 Miro Hrončok - 0-33 +- Pass PYTHONDONTWRITEBYTECODE=1 to %%tox to avoid packaged PYTEST bytecode + * Tue Nov 03 2020 Miro Hrončok - 0-32 - Allow multiple -e in %%pyproject_buildrequires - Fixes: rhbz#1886509