]> git.baikalelectronics.ru Git - kernel.git/commit
scripts/sphinx-pre-install: add '-p python3' to virtualenv
authorTim Bird <tim.bird@sony.com>
Tue, 25 Feb 2020 01:34:41 +0000 (18:34 -0700)
committerJonathan Corbet <corbet@lwn.net>
Mon, 2 Mar 2020 20:08:11 +0000 (13:08 -0700)
commitc444add4afe006cd5b7f8da89c510019786ef25f
treeca356f9778d57fcf568549dc71122deb8c5bf2f8
parentd586bffff3b57bfcc24fbbd94f7e13f0b3223c44
scripts/sphinx-pre-install: add '-p python3' to virtualenv

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@sony.com>
Link: https://lore.kernel.org/r/1582594481-23221-1-git-send-email-tim.bird@sony.com
Signed-off-by: Jonathan Corbet <corbet@lwn.net>
scripts/sphinx-pre-install