Created
September 26, 2017 08:44
-
-
Save regnarock/1cfd1886e78461e2042752bb1d58a44d 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
#!/bin/sh | |
# | |
# Thomas Wilgenbus <[email protected]> | |
# Based on work from Joshua Miller <[email protected]> => https://gitlab.com/snippets/22979 | |
# | |
# Outputs the dependencies for a pip package name provided on the command line. | |
# | |
PACKAGE=$1 | |
pip download $PACKAGE -d /tmp --no-binary :all: \ | |
| grep Collecting \ | |
| cut -d' ' -f2 \ | |
| grep -v $PACKAGE |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment