[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <MWHPR13MB0895EFDA9EBF7740875E661CFDE40@MWHPR13MB0895.namprd13.prod.outlook.com>
Date: Tue, 3 Mar 2020 17:07:48 +0000
From: "Bird, Tim" <Tim.Bird@...y.com>
To: Jonathan Corbet <corbet@....net>,
"tbird20d@...il.com" <tbird20d@...il.com>
CC: "mchehab@...nel.org" <mchehab@...nel.org>,
"linux-doc@...r.kernel.org" <linux-doc@...r.kernel.org>,
"linux-kernel@...r.kernel.org" <linux-kernel@...r.kernel.org>
Subject: RE: [PATCH] scripts/sphinx-pre-install: add '-p python3' to
virtualenv
> -----Original Message-----
> From: Jonathan Corbet <corbet@....net>
>
> On Mon, 24 Feb 2020 18:34:41 -0700
> tbird20d@...il.com wrote:
>
> > With Ubuntu 16.04 (and presumably Debian distros of the same age),
> > the instructions for setting up a python virtual environment should
> > do so with the python 3 interpreter. On these older distros, the
> > default python (and virtualenv command) might be python2 based.
> >
> > Some of the packages that sphinx relies on are now only available
> > for python3. If you don't specify the python3 interpreter for
> > the virtualenv, you get errors when doing the pip installs for
> > various packages
> >
> > Fix this by adding '-p python3' to the virtualenv recommendation
> > line.
> >
> > Signed-off-by: Tim Bird <tim.bird@...y.com>
>
> I've applied this, even though it feels a bit fragile to me. But Python
> stuff can be a bit that way, sometimes, I guess.
I agree it seems a bit wonky.
The less fragile approach would have been to just
always add the '-p python3' option to the virtualenv setup hint,
but Mauro seemed to want something more fine-tuned.
As far as the string parsing goes, I think that the format of strings
returned by lsb-release (and the predecesors that sphinx_pre_install
checks) is unlikely to change.
Thanks for applying it.
-- Tim
Powered by blists - more mailing lists