aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJussi Pakkanen <jpakkane@gmail.com>2019-06-27 19:21:07 +0300
committerJussi Pakkanen <jpakkane@gmail.com>2019-06-27 20:45:58 +0300
commitaf1a81fffc43b2b09c4041076b492e9777d1ecdf (patch)
tree821f13ee705bf0e937e0969cfa677201d8e0384d
parent8ebe3d46bb3695118acb0dfe7a038b0ecfde4f77 (diff)
downloadmeson-af1a81fffc43b2b09c4041076b492e9777d1ecdf.zip
meson-af1a81fffc43b2b09c4041076b492e9777d1ecdf.tar.gz
meson-af1a81fffc43b2b09c4041076b492e9777d1ecdf.tar.bz2
Improve error message when Python is not usable. [skip ci]
-rw-r--r--mesonbuild/modules/python.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/mesonbuild/modules/python.py b/mesonbuild/modules/python.py
index 9b8f3a3..3a221f8 100644
--- a/mesonbuild/modules/python.py
+++ b/mesonbuild/modules/python.py
@@ -577,7 +577,7 @@ class PythonModule(ExtensionModule):
else:
res = ExternalProgramHolder(NonExistingExternalProgram())
if required:
- raise mesonlib.MesonException('{} is not a valid python'.format(python))
+ raise mesonlib.MesonException('{} is not a valid python or it is missing setuptools'.format(python))
return res