lang/python: fix pip bootstrap

This commit is contained in:
Henrik Lissner 2017-03-24 15:02:40 -04:00
parent 378469b15e
commit f5ce4d40b7

View file

@ -20,7 +20,5 @@
(when-let (pkgs (cl-remove-if
(lambda (pkg) (zerop (shell-command (format "pip show %s" pkg))))
'("jedi" "setuptools")))
(funcall (if (file-writable-p (executable-find "pip")) 'sh 'sudo)
"pip install %s"
(string-join pkgs " "))
(sh "pip install %s" (string-join pkgs " "))
t))