lang/python: assert when python isn't installed

This commit is contained in:
Dan LaManna 2020-02-10 19:55:00 -05:00
parent 00e2f2cc6f
commit a9a04a6924

View file

@ -5,7 +5,7 @@
"This module requires (:tools lsp)") "This module requires (:tools lsp)")
(if (not (executable-find "python")) (if (not (executable-find "python"))
(warn! "Python isn't installed.") (assert! "Python isn't installed.")
(unless (featurep! +lsp) (unless (featurep! +lsp)
(unless (zerop (shell-command "python -c 'import setuptools'")) (unless (zerop (shell-command "python -c 'import setuptools'"))
(warn! "setuptools wasn't detected, which anaconda-mode requires")))) (warn! "setuptools wasn't detected, which anaconda-mode requires"))))