mirror of
https://github.com/lrnselfreliance/wrolpi.git
synced 2026-12-04 21:59:58 -05:00
Trying pip install multiple times during pi-gen build to avoid pypi issues.
This commit is contained in:
parent
5934c40a59
commit
7bd473666d
2 changed files with 8 additions and 4 deletions
|
|
@ -23,10 +23,12 @@ npm run build
|
|||
# Install Node console commands.
|
||||
npm i -g serve@12.0.1 single-file-cli@2.0.73 readability-extractor@0.0.6 carto@1.2.0
|
||||
|
||||
# Install Python requirements.
|
||||
# Install Python requirements. Try multiple times because pypi may stop responding.
|
||||
python3 --version
|
||||
python3 -m venv /opt/wrolpi/venv
|
||||
/opt/wrolpi/venv/bin/pip3 install -r /opt/wrolpi/requirements.txt
|
||||
/opt/wrolpi/venv/bin/pip3 install -r /opt/wrolpi/requirements.txt ||
|
||||
/opt/wrolpi/venv/bin/pip3 install -r /opt/wrolpi/requirements.txt ||
|
||||
/opt/wrolpi/venv/bin/pip3 install -r /opt/wrolpi/requirements.txt
|
||||
|
||||
# Configure nginx.
|
||||
cp /opt/wrolpi/etc/raspberrypios/nginx.conf /etc/nginx/nginx.conf
|
||||
|
|
|
|||
|
|
@ -24,9 +24,11 @@ npm i -g serve@12.0.1 single-file-cli@2.0.73 readability-extractor@0.0.6 carto@1
|
|||
git clone -b master https://github.com/lrnselfreliance/wrolpi.git /opt/wrolpi
|
||||
git config --global --add safe.directory /opt/wrolpi
|
||||
|
||||
# Install Python requirements.
|
||||
# Install Python requirements. Try multiple times because pypi may stop responding.
|
||||
python3 -m venv /opt/wrolpi/venv
|
||||
/opt/wrolpi/venv/bin/pip3 install -r /opt/wrolpi/requirements.txt
|
||||
/opt/wrolpi/venv/bin/pip3 install -r /opt/wrolpi/requirements.txt ||
|
||||
/opt/wrolpi/venv/bin/pip3 install -r /opt/wrolpi/requirements.txt ||
|
||||
/opt/wrolpi/venv/bin/pip3 install -r /opt/wrolpi/requirements.txt
|
||||
|
||||
# Install webapp.
|
||||
(cd /opt/wrolpi/app && npm install && npm run build)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue