Merge pull request #104 from netinvent/tasks_op_manager

Build script updates
This commit is contained in:
Orsiris de Jong 2024-10-24 18:25:55 +02:00 committed by GitHub
commit 0b6e1c445f
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 11 additions and 2 deletions

View file

@ -7,12 +7,16 @@ SET PYTHON32=c:\python37-32\python.exe
cd C:\GIT\npbackup
git pull || exit 1
:: Make sure we add npbackup in python path so bin and npbackup subfolders become packages
SET OLD_PYTHONPATH=%PYTHONPATH%
SET PYTHONPATH=c:\GIT\npbackup
"%PYTHON64%" -m pip install --upgrade -r npbackup/requirements.txt || exit 1
"%PYTHON64%" bin\compile.py --audience all
"%PYTHON32%" -m pip install --upgrade -r npbackup/requirements.txt || exit 1
"%PYTHON32%" bin\compile.py --audience all
SET PYTHONPATH=%OLD_PYTHONPATH%

View file

@ -5,10 +5,15 @@
machine="$(uname -m)"
cd /opt/npbackup
git pull || exit 1
OLD_PYTHONPATH="$PYTHONPATH"
export PYTHONPATH=/opt/npbackup
# For RHEL 7 based builds, we need to define path to locally built tcl8.6
[ -d /usr/local/lib/tcl8.6 ] && export LD_LIBRARY_PATH=/usr/local/lib
/opt/npbackup/venv/bin/python -m pip install --upgrade -r npbackup/requirements.txt || exit 1
/opt/npbackup/venv/bin/python bin/compile.py --audience all $opts
export PYTHONPATH="$OLD_PYTHONPATH"

View file

@ -9,8 +9,8 @@ __site__ = "https://www.netperfect.fr/npbackup"
__description__ = "NetPerfect Backup Client"
__copyright__ = "Copyright (C) 2022-2024 NetInvent"
__license__ = "GPL-3.0-only"
__build__ = "2024091601"
__version__ = "3.0.0-rc6"
__build__ = "2024102401"
__version__ = "3.0.0-rc7"
import sys