From 08f7874508146ade3a2151f10e410f2731deff61 Mon Sep 17 00:00:00 2001 From: CoprDistGit Date: Wed, 28 Oct 2026 07:19:01 +0000 Subject: automatic import of python-prompt-toolkit --- prompt-toolkit.spec | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/prompt-toolkit.spec b/prompt-toolkit.spec index d91fae4..51183e7 100644 --- a/prompt-toolkit.spec +++ b/prompt-toolkit.spec @@ -66,8 +66,11 @@ pip3 install --no-build-isolation --no-index --no-deps \ %check -# Basic import test to verify package install integrity and runtime deps -python3 -c "import prompt_toolkit" +# Basic import test to verify package install integrity and runtime deps. +# python -c does NOT add cwd to sys.path, and the package is installed only +# into the BUILDROOT (not system site-packages), so PYTHONPATH must point at +# the installed sitelib under the buildroot. +PYTHONPATH=%{buildroot}%{python3_sitelib} python3 -c "import prompt_toolkit" %files -n python3-%{pypi_name} -- cgit v1.2.3