2018-05-15 13:50:58 +02:00
|
|
|
;;; lang/python/doctor.el -*- lexical-binding: t; -*-
|
|
|
|
|
2019-04-22 03:10:25 -04:00
|
|
|
(assert! (or (not (featurep! +lsp))
|
|
|
|
(featurep! :tools lsp))
|
|
|
|
"This module requires (:tools lsp)")
|
|
|
|
|
|
|
|
(if (not (executable-find "python"))
|
|
|
|
(warn! "Python isn't installed.")
|
|
|
|
(unless (featurep! +lsp)
|
|
|
|
(unless (zerop (shell-command "python -c 'import setuptools'"))
|
|
|
|
(warn! "setuptools wasn't detected, which anaconda-mode requires"))))
|
2018-05-15 13:50:58 +02:00
|
|
|
|
2018-08-02 00:13:00 +02:00
|
|
|
(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")))
|