Created
April 24, 2019 17:18
-
-
Save sajoku/f97ce168d23e961dc1f09a90de163d1b to your computer and use it in GitHub Desktop.
Pipenv install offline
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
# 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 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment