scripts: sphinx-pre-install: report broken venv
authorMauro Carvalho Chehab <mchehab@kernel.org>
Sat, 2 Jul 2022 10:11:26 +0000 (11:11 +0100)
committerJonathan Corbet <corbet@lwn.net>
Thu, 7 Jul 2022 18:47:10 +0000 (12:47 -0600)
commited2133b7b5859bc1de86ed44d5cd93096cadc446
tree5e9aaea4359e02e9aaefb39d8cca6a9785b71fe8
parent7c2d45a347c7933cbe0efff14fe96adeb13fd761
scripts: sphinx-pre-install: report broken venv

After distro upgrades, the directory names for python may change.
On such case, the previously-created venv will be broken, and
sphinx-build won't run.

Add a logic to report it.

Signed-off-by: Mauro Carvalho Chehab <mchehab@kernel.org>
Link: https://lore.kernel.org/r/f117f03555b0636d2be0b68f3a23b1d3f03ccf1d.1656756450.git.mchehab@kernel.org
[jc: fixed typo in warning message]
Signed-off-by: Jonathan Corbet <corbet@lwn.net>
scripts/sphinx-pre-install