diff options
| -rw-r--r-- | prompt-toolkit.spec | 7 |
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} |
