#!/bin/bash ########################################################################### # # Copyright (c) 2020-2024 Diality Inc. - All Rights Reserved. # # THIS CODE MAY NOT BE COPIED OR REPRODUCED IN ANY FORM, IN PART OR IN # WHOLE, WITHOUT THE EXPLICIT PERMISSION OF THE COPYRIGHT OWNER. # # @file install_to_venv.sh # # @author (last) Peter Lucia # @date (last) 26-Aug-2020 # @author (original) Peter Lucia # @date (original) 09-Jul-2020 # ############################################################################ cd ../ ./build.sh repo="$HOME/Projects/testsuites/" read -p "Enter the path to the repository: " -e -i "$repo" repo whl_file="$(pwd)/dist/dialin-0.2.0_DEN_3964_Maintenance_1107444-py3-none-any.whl" read -p "Update the full path to the whl file to install to the virtualenv: " -e -i "$whl_file" whl_file cd $repo venv=$repo venv+="venv" read -p "Enter the path to the repository's virtualenv directory: " -e -i "$venv" venv if [ ! -d "$venv" ]; then echo "Could not find $venv" ; exit 1; fi source venv/bin/activate pip3 uninstall leahi-dialin pip3 install $whl_file