mirror of
https://github.com/akuker/RASCSI.git
synced 2024-06-08 05:29:40 +00:00
#1149 cache pip packages to explicit directory
This commit is contained in:
parent
120146a196
commit
28f91c4102
|
@ -148,9 +148,17 @@ function installPackagesWeb() {
|
||||||
|
|
||||||
# cache the pip packages
|
# cache the pip packages
|
||||||
function cachePipPackages(){
|
function cachePipPackages(){
|
||||||
pushd $WEB_INSTALL_PATH
|
mkdir -p $HOME/.pip_cache
|
||||||
sudo pip3 install -r ./requirements.txt
|
# Note: these need to be installed in source form ONLY. If the binary packages are installed, the architecture
|
||||||
popd
|
# is selected based upon the building host architecture, not the target architecture. (so, if you're building
|
||||||
|
# a PiSCSI image on x86, pip will download x86 binaries, which aren't usefull on a Raspberry Pi
|
||||||
|
python3 -m pip download --no-binary :all: --destination-directory $HOME/.pip_cache setuptools
|
||||||
|
python3 -m pip download --no-binary :all: --destination-directory $HOME/.pip_cache wheel
|
||||||
|
python3 -m pip download --no-binary :all: --destination-directory $HOME/.pip_cache flit_core
|
||||||
|
python3 -m pip download --no-binary :all: --destination-directory $HOME/.pip_cache -r $WEB_INSTALL_PATH/requirements.txt
|
||||||
|
python3 -m pip download --no-binary :all: --destination-directory $HOME/.pip_cache -r $CTRLBOARD_INSTALL_PATH/requirements.txt
|
||||||
|
# TODO: The OLED requirements.txt includes a circuit python package that doesn't work with non-binary
|
||||||
|
# pip3 download
|
||||||
}
|
}
|
||||||
|
|
||||||
# compile the PiSCSI binaries
|
# compile the PiSCSI binaries
|
||||||
|
|
Loading…
Reference in New Issue
Block a user