Zbyszek, Miro,
Thanks much for your help. I ended up calling sphinx-build-3 directly
as per Zbyszek's example.
In retrospect, what tripped me up was that
pkg_resources.require("migen")[0].version
is *not* helped by setting PYTHONPATH, but the "import migen" line
further down *is*. I had originally sed-replaced the version, but
after I noticed the subsequent "import" I decided to just try setting
PYTHONPATH to cover them *both*, which just kept on stubbornly refusing
to work as the *only* workaround... :)
Thanks again,
--Gabriel
On Fri, Feb 15, 2019 at 05:32:42PM +0000, Zbigniew Jędrzejewski-Szmek wrote:
> On Fri, Feb 15, 2019 at 06:19:10PM +0100, Miro Hrončok wrote:
> > On 15. 02. 19 17:57, Gabriel L. Somlo wrote:
>
>[...]
>
> The following diff works for me:
> diff --git python-migen.spec python-migen.spec
> index 9ad29027c8..8dc929a214 100644
> --- python-migen.spec
> +++ python-migen.spec
> @@ -35,9 +35,12 @@ A Python toolbox for building complex digital hardware.
> %prep
> %autosetup -n %{srcname}-%{commit0}
>
> +sed -r -i 's/(migen_version = ).*/\1"%{version}-%{release}"/' doc/conf.py
> +
> %build
> %py3_build
> -%make_build -C doc latexpdf man
> +PYTHONPATH=. sphinx-build-3 -b latex doc/ _build/doc/
> +PYTHONPATH=. sphinx-build-3 -b man doc/ _build/doc/
>
> %install
> %py3_install
>
> Zbyszek
_______________________________________________
python-devel mailing list -- [email protected]
To unsubscribe send an email to [email protected]
Fedora Code of Conduct: https://getfedora.org/code-of-conduct.html
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives:
https://lists.fedoraproject.org/archives/list/[email protected]