mirror of
https://github.com/netinvent/npbackup.git
synced 2025-09-11 07:25:47 +08:00
Merge pull request #104 from netinvent/tasks_op_manager
Build script updates
This commit is contained in:
commit
0b6e1c445f
3 changed files with 11 additions and 2 deletions
|
@ -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%
|
||||
|
|
|
@ -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"
|
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue