Last active
March 22, 2020 13:10
-
-
Save rodrigobertin/c04fe2a08d0cca70a6c459d0a4793753 to your computer and use it in GitHub Desktop.
This file contains 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
#!/usr/bin/env bash | |
export CURRENT=$(pwd) | |
cd ${CURRENT} | |
echo "" | |
echo "---------------------------------------->" | |
echo "Current directory ${CURRENT}" | |
echo "---------------------------------------->" | |
echo "" | |
source _env/bin/activate | |
echo "" | |
echo "---------------------------------------->" | |
echo 'Instalar paquetes' | |
echo "---------------------------------------->" | |
echo "" | |
pip install -r req.txt | |
echo "" | |
echo "---------------------------------------->" | |
echo 'Eliminar paquetes' | |
echo "---------------------------------------->" | |
echo "" | |
pip freeze | grep -v -f req.txt - | xargs pip uninstall -y | |
echo "" | |
echo "---------------------------------------->" | |
echo 'Actualización de paquetes finalizadas' | |
echo "---------------------------------------->" | |
echo "" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment