mirror of
https://github.com/doomemacs/doomemacs
synced 2025-08-03 12:27:26 -05:00
lang/python: fix pip bootstrap
This commit is contained in:
@ -20,7 +20,5 @@
|
|||||||
(when-let (pkgs (cl-remove-if
|
(when-let (pkgs (cl-remove-if
|
||||||
(lambda (pkg) (zerop (shell-command (format "pip show %s" pkg))))
|
(lambda (pkg) (zerop (shell-command (format "pip show %s" pkg))))
|
||||||
'("jedi" "setuptools")))
|
'("jedi" "setuptools")))
|
||||||
(funcall (if (file-writable-p (executable-find "pip")) 'sh 'sudo)
|
(sh "pip install %s" (string-join pkgs " "))
|
||||||
"pip install %s"
|
|
||||||
(string-join pkgs " "))
|
|
||||||
t))
|
t))
|
||||||
|
Reference in New Issue
Block a user