2017-02-19 18:57:16 -05:00
|
|
|
;; -*- no-byte-compile: t; -*-
|
|
|
|
;;; lang/python/packages.el
|
|
|
|
|
2017-02-23 00:06:12 -05:00
|
|
|
(package! anaconda-mode)
|
|
|
|
(package! nose)
|
|
|
|
(package! pip-requirements)
|
2017-02-19 18:57:16 -05:00
|
|
|
|
2017-02-23 00:06:12 -05:00
|
|
|
(when (featurep! :completion company)
|
|
|
|
(package! company-anaconda))
|
2017-03-20 04:22:50 -04:00
|
|
|
|
|
|
|
;;
|
|
|
|
(def-bootstrap! python
|
|
|
|
;; Since there are so many possible setups for a python environment (pyenv,
|
|
|
|
;; virtualenv, etc), I'll leave it to you and only take care of installing
|
|
|
|
;; dependencies available via pip.
|
|
|
|
(unless (executable-find "python")
|
|
|
|
(error "python isn't installed"))
|
|
|
|
(unless (executable-find "pip")
|
|
|
|
(error "pip isn't installed"))
|
|
|
|
(when-let (pkgs (cl-remove-if
|
|
|
|
(lambda (pkg) (zerop (shell-command (format "pip show %s" pkg))))
|
|
|
|
'("jedi" "setuptools")))
|
2017-03-25 01:45:23 -04:00
|
|
|
(sh "pip install %s" (s-join " " pkgs))
|
2017-03-20 04:22:50 -04:00
|
|
|
t))
|