From 1a9061227447cc7a53860e68c9bb25e8f073c088 Mon Sep 17 00:00:00 2001 From: Sandip Pandey Date: Mon, 8 Nov 2021 14:01:48 +0100 Subject: [PATCH] Install pip dependencies during Linux, Windows and MacOS build --- build/debian/makedist_debian.sh | 3 +++ build/mac/makedist_macos.sh | 3 +++ build/win/makedist_win.bat | 3 +++ 3 files changed, 9 insertions(+) diff --git a/build/debian/makedist_debian.sh b/build/debian/makedist_debian.sh index b56129f4b21..fa60f1b5a85 100755 --- a/build/debian/makedist_debian.sh +++ b/build/debian/makedist_debian.sh @@ -19,6 +19,9 @@ rm -rf build/debian/tribler/usr/share/tribler python3 build/update_version_from_git.py +# ----- Install pip dependencies before the build +python3 -m pip install --upgrade -r src/requirements.txt + python3 -m PyInstaller tribler.spec cp -r dist/tribler build/debian/tribler/usr/share/tribler diff --git a/build/mac/makedist_macos.sh b/build/mac/makedist_macos.sh index 1765a828933..c1649ea7ed0 100755 --- a/build/mac/makedist_macos.sh +++ b/build/mac/makedist_macos.sh @@ -13,6 +13,9 @@ export RESOURCES=build/mac/resources /bin/rm -rf dist # ----- Build +# ----- Install pip dependencies before the build +python3 -m pip install --upgrade -r src/requirements.txt + PI=pyinstaller $PI tribler.spec diff --git a/build/win/makedist_win.bat b/build/win/makedist_win.bat index 957c238321a..707c7ba16a0 100644 --- a/build/win/makedist_win.bat +++ b/build/win/makedist_win.bat @@ -42,6 +42,9 @@ call build\win\clean.bat REM ----- Build +REM ----- Install pip dependencies before the build +python3 -m pip install --upgrade -r src\requirements.txt + REM Arno: When adding files here, make sure tribler.nsi actually REM packs them in the installer .EXE