e768098d0e
tools_continuous_delivery / Private PyPI non-main branch release (push) Has been skipped
tools_continuous_delivery / Private PyPI main branch release (push) Failing after 2m42s
Publish Promptflow Doc / Build (push) Has been cancelled
Publish Promptflow Doc / Deploy (push) Has been cancelled
Flake8 Lint / flake8 (push) Has been cancelled
Spell check CI / Spell_Check (push) Has been cancelled
29 lines
1011 B
Bash
29 lines
1011 B
Bash
#!/usr/bin/env bash
|
|
|
|
#---------------------------------------------------------------------------------------------
|
|
# Copyright (c) Microsoft Corporation. All rights reserved.
|
|
# Licensed under the MIT License. See License.txt in the project root for license information.
|
|
#---------------------------------------------------------------------------------------------
|
|
|
|
#
|
|
# Bash script to install the prompt flow
|
|
#
|
|
INSTALL_SCRIPT_URL="https://promptflowartifact.blob.core.windows.net/linux-install-scripts/install.py"
|
|
_TTY=/dev/tty
|
|
|
|
install_script=$(mktemp -t promptflow_install_tmp_XXXXXX) || exit
|
|
echo "Downloading prompt flow install script from $INSTALL_SCRIPT_URL to $install_script."
|
|
curl -# $INSTALL_SCRIPT_URL > $install_script || exit
|
|
|
|
python_cmd=python3
|
|
if ! command -v python3 >/dev/null 2>&1
|
|
then
|
|
echo "ERROR: python3 not found."
|
|
echo "If python3 is available on the system, add it to PATH."
|
|
exit 1
|
|
fi
|
|
|
|
chmod 775 $install_script
|
|
echo "Running install script."
|
|
$python_cmd $install_script < $_TTY
|