From 7053bfbeb7843986d066981062e695d3dd5dce06 Mon Sep 17 00:00:00 2001 From: icmor <54549777+icmor@users.noreply.github.com> Date: Sat, 12 Dec 2020 00:55:43 -0500 Subject: [PATCH] Add "python3" to possible names for the python binary Followed lang/python/config.el which already checks for python3 when setting the python-shell-interpreter. Python version naming is a hot mess: https://www.python.org/dev/peps/pep-0394/ --- modules/lang/python/doctor.el | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/modules/lang/python/doctor.el b/modules/lang/python/doctor.el index 546df9a8d..d1d2c08e4 100644 --- a/modules/lang/python/doctor.el +++ b/modules/lang/python/doctor.el @@ -4,10 +4,12 @@ (featurep! :tools lsp)) "This module requires (:tools lsp)") -(if (not (executable-find "python")) +(if (not (or (executable-find "python") + (executable-find "python3"))) (error! "Couldn't find python in your PATH") (unless (featurep! +lsp) - (unless (zerop (shell-command "python -c 'import setuptools'")) + (unless (or (zerop (shell-command "python -c 'import setuptools'")) + (zerop (shell-command "python3 -c 'import setuptools'"))) (warn! "setuptools wasn't detected, which anaconda-mode requires")))) (when (featurep! +pyenv)