diff --git a/python-shapely.spec b/python-shapely.spec index 5c990bc..9423110 100644 --- a/python-shapely.spec +++ b/python-shapely.spec @@ -106,13 +106,11 @@ sed -r \ %pyproject_wheel %if %{with doc_pdf} -# Note that this will use the “un-built” copy without compiled vectorized -# extensions. Since these are optional, this is fine for the documentation. -# -# See https://src.fedoraproject.org/rpms/python-asyncpg for an example of -# installing the built wheel in a temporary directory and adding that to the -# PYTHONPATH for the documentation build. -%make_build -C docs latex SPHINXOPTS='%{?_smp_mflags}' +# We can build documentation without the optional compiled vectorized +# extensions, but we use the “built” copy of the package instead since it easy +# enough to do so. +PYTHONPATH="%{pyproject_build_lib}" \ + %make_build -C docs latex SPHINXOPTS='%{?_smp_mflags}' %make_build -C docs/_build/latex LATEXMKOPTS='-quiet' %endif