Skip to content

Commit

Permalink
Merge pull request #104 from netinvent/tasks_op_manager
Browse files Browse the repository at this point in the history
Build script updates
  • Loading branch information
deajan authored Oct 24, 2024
2 parents 6615814 + 3ba45c7 commit 0b6e1c4
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 2 deletions.
4 changes: 4 additions & 0 deletions bin/COMPILE.cmd
Original file line number Diff line number Diff line change
Expand Up @@ -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%
Expand Down
5 changes: 5 additions & 0 deletions bin/COMPILE.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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"
4 changes: 2 additions & 2 deletions npbackup/__version__.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@
__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
Expand Down

0 comments on commit 0b6e1c4

Please sign in to comment.