Skip to content

Instantly share code, notes, and snippets.

@sajoku
Created April 24, 2019 17:18
Show Gist options
  • Save sajoku/f97ce168d23e961dc1f09a90de163d1b to your computer and use it in GitHub Desktop.
Save sajoku/f97ce168d23e961dc1f09a90de163d1b to your computer and use it in GitHub Desktop.

Revisions

  1. sajoku created this gist Apr 24, 2019.
    12 changes: 12 additions & 0 deletions pipenv_install.sh
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,12 @@
    # pipenv allows us to install packages straight from source but only
    # when providing a location to the wheel
    #pipenv install file:///home/packages/packages/aioredis-1.2.0-py3-none-any.whl
    packages_directory='/home/packages/packages/'

    packages=(aioredis asgiref asn1crypto async-timeout attrs autobahn automat cffi channels-redis channels constantly cryptography daphne django-redis django-reversion django-webpack-loader django h2 hiredis hpack hyperframe hyperlink idna incremental msgpack priority psycopg2-binary psycopg2 py-moneyed pyasn1-modules pyasn1 pycparser pyhamcrest pyopenssl pytz redis restless selenium service-identity six sqlparse twisted[http2,tls] txaio urllib3 uwsgi whitenoise zope.interface)
    for package in ${packages[@]}
    do
    package_location=$(find "$packages_directory" -print | grep -i "$package")
    echo "Found package: $package in location: $package_location"
    pipenv install "$package_location"
    done