verify_release: Warn about missing requirements

This is mostly useful for build module as it's not imported otherwise:
we explicitly call "python -m build" so everything works like in a
real release build.

Signed-off-by: Jussi Kukkonen <jkukkonen@vmware.com>
This commit is contained in:
Jussi Kukkonen 2022-03-24 14:57:46 +02:00
parent 81637596ec
commit bf878ceaa6

View file

@ -16,7 +16,13 @@ import sys
from filecmp import dircmp
from tempfile import TemporaryDirectory
import requests
try:
import requests
import build
except ImportError:
print ("Error: verify_release requires modules 'requests' and 'build':")
print (" pip install requests build")
exit(1)
# Project variables
# Note that only these project artifacts are supported: