From a18541851ecd013cb7a71a90d80f8892a1733e7c Mon Sep 17 00:00:00 2001 From: Henrik Lissner Date: Thu, 2 Aug 2018 00:13:00 +0200 Subject: [PATCH] lang/python/doctor: check pyenv, conda & ipython --- modules/lang/python/doctor.el | 16 +++++++++++++--- 1 file changed, 13 insertions(+), 3 deletions(-) diff --git a/modules/lang/python/doctor.el b/modules/lang/python/doctor.el index 89aeb9e68..9dc7c4e12 100644 --- a/modules/lang/python/doctor.el +++ b/modules/lang/python/doctor.el @@ -3,6 +3,16 @@ (unless (executable-find "python") (warn! "Python isn't installed.")) -(when (executable-find "pyenv") - (unless (split-string (shell-command-to-string "pyenv versions --bare") "\n" t) - (warn! "No versions of python are available via pyenv, did you forget to install one?"))) +(when (featurep! +pyenv) + (if (not (executable-find "pyenv")) + (warn! "Couldn't find pyenv in your PATH") + (unless (split-string (shell-command-to-string "pyenv versions --bare") "\n" t) + (warn! "No versions of python are available via pyenv, did you forget to install one?")))) + +(when (featurep! +conda) + (unless (executable-find "conda") + (warn! "Couldn't find conda in your PATH"))) + +(when (featurep! +ipython) + (unless (executable-find "ipython") + (warn! "Couldn't find ipython in your PATH")))