Add :tools lsp checks for +lsp flag
Also: - Reorganizes some :lang modules' packages.el file. - Adds setuptools check in lang/python - Adds javac check in lang/java - Removes the depends-on! macro
This commit is contained in:
parent
9bea168cc1
commit
c399c07694
16 changed files with 91 additions and 49 deletions
|
@ -1,7 +1,14 @@
|
|||
;;; lang/python/doctor.el -*- lexical-binding: t; -*-
|
||||
|
||||
(unless (executable-find "python")
|
||||
(warn! "Python isn't installed."))
|
||||
(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"))))
|
||||
|
||||
(when (featurep! +pyenv)
|
||||
(if (not (executable-find "pyenv"))
|
||||
|
|
|
@ -1,13 +1,15 @@
|
|||
;; -*- no-byte-compile: t; -*-
|
||||
;;; lang/python/packages.el
|
||||
|
||||
;; requires: python setuptools
|
||||
|
||||
(package! nose)
|
||||
(package! python-pytest)
|
||||
;; Major modes
|
||||
(package! pip-requirements)
|
||||
|
||||
;; Environmet management
|
||||
;; Programming environment
|
||||
(package! anaconda-mode)
|
||||
(when (featurep! :completion company)
|
||||
(package! company-anaconda))
|
||||
|
||||
;; Environment management
|
||||
(package! pipenv)
|
||||
(package! pyvenv)
|
||||
(when (featurep! +pyenv)
|
||||
|
@ -15,8 +17,6 @@
|
|||
(when (featurep! +conda)
|
||||
(package! conda))
|
||||
|
||||
;; Programming environment
|
||||
(unless (featurep! +lsp)
|
||||
(package! anaconda-mode)
|
||||
(when (featurep! :completion company)
|
||||
(package! company-anaconda)))
|
||||
;; Testing frameworks
|
||||
(package! nose)
|
||||
(package! python-pytest)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue