Last active
March 18, 2016 16:26
-
-
Save uolot/319a64f9915ff773274d to your computer and use it in GitHub Desktop.
Check python package 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
echo "Creating virtual env..." | |
echo | |
virtualenv test --no-site-packages | |
source test/bin/activate | |
echo | |
echo "Installing package $1..." | |
echo | |
pip install $1 | |
echo | |
echo "Listing installed packages..." | |
echo | |
pip list -l | grep -v wheel | grep -v $1 | |
echo | |
echo "Listing outdated packages..." | |
echo | |
pip list -l -o | |
echo | |
echo "Cleaning up..." | |
echo | |
deactivate | |
rm -rf test | |
echo | |
echo "Done." | |
echo |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment