mirror of
https://gitlab.com/fdroid/fdroidserver.git
synced 2024-07-07 09:50:07 +02:00
easy_install does not provide any download caching, while pip does. This also moves the python module installing a shell script that takes python packages as args. That will allow for future uses like allowing app metadata to include pip modules that they need.
14 lines
230 B
Bash
14 lines
230 B
Bash
#!/bin/bash
|
|
|
|
set -e
|
|
set -x
|
|
|
|
# cache pypi downloads
|
|
if [ -z $PIP_DOWNLOAD_CACHE ]; then
|
|
export PIP_DOWNLOAD_CACHE=$HOME/.pip_download_cache
|
|
fi
|
|
|
|
apt-get install --yes --no-install-recommends python-pip
|
|
|
|
pip install --upgrade $@
|