From 455a6d994d78539509b0816ef67d4f5e04da8bb2 Mon Sep 17 00:00:00 2001 From: Rich Megginson Date: Tue, 22 Feb 2022 18:56:58 -0700 Subject: [PATCH] Set py3_shebang_flags to nil so tox will not have -s in shebang line This way, it can see user-installed plugins. Fixes https://bugzilla.redhat.com/2057015 "Tox cannot use user installed plugins, as it has -s in the shebang" --- python-tox.spec | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/python-tox.spec b/python-tox.spec index 7ae9280..630eb6a 100644 --- a/python-tox.spec +++ b/python-tox.spec @@ -11,9 +11,14 @@ # The Fedora CI tests do this. %bcond_with tests +# Unset -s on python shebang - ensure that extensions installed with pip +# to user locations are seen and properly loaded +# Fixes https://bugzilla.redhat.com/2057015 +%global py3_shebang_flags %nil + Name: python-tox Version: 3.24.5 -Release: 1%{?dist} +Release: 2%{?dist} Summary: Virtualenv-based automation of test activities License: MIT @@ -113,6 +118,10 @@ Obsoletes: python3-tox < 3.24.4-2 %changelog +* Tue Feb 22 2022 Rich Megginson - 3.24.5-2 +- Remove -s flag from tox shebang, make tox see user-installed plugins +- Fixes: rhbz#2057015 + * Tue Jan 25 2022 Miro HronĨok - 3.24.5-1 - Update to 3.24.5