Add function to pip install in the current project
This commit is contained in:
parent
eda8b84e98
commit
354edee92e
@ -4643,6 +4643,25 @@ Some functions to make my day job easier.
|
||||
(leader-def-key "Lr" #'release-manager)
|
||||
#+END_SRC
|
||||
|
||||
** Python stuff
|
||||
Run pip install in the current project:
|
||||
#+BEGIN_SRC emacs-lisp
|
||||
(defun pip-install (reqs)
|
||||
(interactive
|
||||
(list
|
||||
(read-file-name "Requirements file: "
|
||||
(or (projectile-project-root)
|
||||
default-directory)
|
||||
nil t "requirements"
|
||||
(lambda (name)
|
||||
(string-match-p "requirements.*"
|
||||
name)))))
|
||||
(with-temp-buffer
|
||||
(cd (or (projectile-project-root)
|
||||
default-directory))
|
||||
(compile (format "pip install -r %s" reqs))))
|
||||
#+END_SRC
|
||||
|
||||
** AWS-MFA
|
||||
The aws-mfa command:
|
||||
#+BEGIN_SRC emacs-lisp
|
||||
|
Loading…
Reference in New Issue
Block a user