2020-09-18 08:08:02 +10:00
|
|
|
#!/usr/bin/env sh
|
2020-03-25 19:04:56 +11:00
|
|
|
set -e
|
|
|
|
|
2020-09-18 08:08:02 +10:00
|
|
|
dir="$(dirname "$(readlink -f "$0")")"
|
|
|
|
pip_generator_url='https://raw.githubusercontent.com/flatpak/flatpak-builder-tools/master/pip/flatpak-pip-generator'
|
2020-03-26 07:27:40 +11:00
|
|
|
|
2020-09-18 08:08:02 +10:00
|
|
|
cd "$dir"
|
2020-03-25 19:04:56 +11:00
|
|
|
|
2020-09-18 08:08:02 +10:00
|
|
|
python3 -m venv flatpak-env
|
|
|
|
export PATH="$dir/flatpak-env/bin:$PATH"
|
2020-03-25 19:04:56 +11:00
|
|
|
|
2020-09-18 08:08:02 +10:00
|
|
|
pip3 install -Ur requirements.flatpak.txt
|
|
|
|
pip3 install -Ur ../../requirements.txt
|
2020-03-25 19:04:56 +11:00
|
|
|
|
2020-09-18 08:08:02 +10:00
|
|
|
# Freeze requirements, ignore blacklisted packages
|
|
|
|
pip3 freeze | grep -v six= | grep -v matrix-nio > flatpak-env-requirements.txt
|
2020-03-25 19:04:56 +11:00
|
|
|
|
2020-09-18 08:08:02 +10:00
|
|
|
# Generate flatpak requirements
|
|
|
|
pip3 install requirements-parser
|
|
|
|
[ ! -f flatpak-pip-generator ] && wget "$pip_generator_url"
|
|
|
|
python3 flatpak-pip-generator -r flatpak-env-requirements.txt -o flatpak-pip
|
2020-03-25 19:04:56 +11:00
|
|
|
|
2020-09-18 08:08:02 +10:00
|
|
|
pip3 install PyYAML
|
2020-05-22 22:25:45 +10:00
|
|
|
python3 collector.py
|