Skip to content

Instantly share code, notes, and snippets.

@regnarock
Created September 26, 2017 08:44
Show Gist options
  • Save regnarock/1cfd1886e78461e2042752bb1d58a44d to your computer and use it in GitHub Desktop.
Save regnarock/1cfd1886e78461e2042752bb1d58a44d to your computer and use it in GitHub Desktop.
#!/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