mirror of
https://github.com/f-droid/fdroidserver.git
synced 2025-11-04 22:40:29 +03:00
buildserver: use pip instead of easy_install for caching
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.
This commit is contained in:
parent
aafad6b909
commit
0171dd60fd
3 changed files with 15 additions and 6 deletions
|
|
@ -1,5 +0,0 @@
|
|||
|
||||
easy_install_package "compare-locales" do
|
||||
options "-U"
|
||||
action :install
|
||||
end
|
||||
13
buildserver/provision-pip
Normal file
13
buildserver/provision-pip
Normal file
|
|
@ -0,0 +1,13 @@
|
|||
#!/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 $@
|
||||
Loading…
Add table
Add a link
Reference in a new issue