-
Notifications
You must be signed in to change notification settings - Fork 297
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: luarss <jluar@precisioninno.com>
- Loading branch information
Showing
7 changed files
with
12 additions
and
15 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
@Library('utils@orfs-v2.1.0') _ | ||
@Library('utils@orfs-v2.1.1') _ | ||
|
||
node { | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
@Library('utils@orfs-v2.1.0') _ | ||
@Library('utils@orfs-v2.1.1') _ | ||
|
||
node { | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,12 @@ | ||
#!/usr/bin/env bash | ||
|
||
echo "Installing AutoTuner..." | ||
|
||
# Get the directory where the script is located | ||
script_dir="$(dirname "${BASH_SOURCE[0]}")" | ||
cd $script_dir | ||
|
||
# Define the virtual environment name | ||
venv_name="autotuner_env" | ||
required_version="3" | ||
python${required_version} -m venv "$script_dir/$venv_name" | ||
source "$script_dir/$venv_name/bin/activate" | ||
pip3 install -U -r requirements.txt | ||
pip3 install -U -r $script_dir/requirements.txt | ||
deactivate |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,18 +1,16 @@ | ||
#!/usr/bin/env bash | ||
|
||
echo "Setting up AutoTuner..." | ||
|
||
# Get the directory of the current script | ||
SCRIPT_DIR="$(dirname "${BASH_SOURCE[0]}")" | ||
script_dir="$(dirname "${BASH_SOURCE[0]}")" | ||
|
||
# Check if the activation script exists | ||
VENV_PATH="$SCRIPT_DIR/autotuner_env/bin/activate" | ||
if [ ! -f "$VENV_PATH" ]; then | ||
echo "Error: Virtual environment activation script not found at $VENV_PATH" | ||
venv_path="$script_dir/autotuner_env/bin/activate" | ||
if [ ! -f "$venv_path" ]; then | ||
echo "Error: Virtual environment activation script not found at $venv_path" | ||
echo "Please run installer.sh for installing the packages." | ||
exit 1 | ||
fi | ||
|
||
# Source the activation script to activate the virtual environment | ||
source "$VENV_PATH" | ||
source "$venv_path" | ||
echo "Virtual environment activated successfully." |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters