Created
May 1, 2018 14:00
-
-
Save nikitalarionov/aa5d87f7497599411388381d9610105d to your computer and use it in GitHub Desktop.
Shell script to install pip dependencies
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
pips() { | |
local pkg=$1 | |
if [ -z "$1" ]; then | |
echo "usage: pips <pkg name>" | |
return 1 | |
fi | |
local _ins="pip install $pkg" | |
eval $_ins | |
pip freeze | grep $pkg -i >> requirements.txt | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment