summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCoprDistGit <infra@openeuler.org>2026-10-28 07:19:01 +0000
committerCoprDistGit <infra@openeuler.org>2026-10-28 07:19:01 +0000
commit08f7874508146ade3a2151f10e410f2731deff61 (patch)
treed1ed2b04bfb5e008b87b96a4a5b20d5e965cd1ff
parent59a808475277c4bf1201809c8a49008d2061a5aa (diff)
automatic import of python-prompt-toolkitopeneuler24.03_LTS_SP4
-rw-r--r--prompt-toolkit.spec7
1 files 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}