2023-04-03 09:18:46 -05:00
|
|
|
#!/usr/bin/env sh
|
|
|
|
|
|
|
|
TEST=0
|
|
|
|
if [ "$1" = "--test" ];
|
|
|
|
then
|
|
|
|
TEST=1
|
|
|
|
fi
|
|
|
|
|
|
|
|
echo Creating a blank environment...
|
|
|
|
python3 -m venv venv || { echo 'ERROR: Failed to create the blank virtual env.' ; exit 1; }
|
|
|
|
|
|
|
|
echo Activating the virtual environment...
|
|
|
|
. venv/bin/activate || { echo 'ERROR: Failed to activate the virtual env.' ; exit 1; }
|
|
|
|
|
|
|
|
echo Installing requirements...
|
|
|
|
pip install --upgrade pip
|
|
|
|
|
|
|
|
if [ ${TEST} -eq 1 ];
|
|
|
|
then
|
|
|
|
echo Installing requirements for running Python tests...
|
2024-07-30 03:11:56 -05:00
|
|
|
pip install --no-cache-dir wheel sphinx==6.1.3 sphinxcontrib-youtube -r web/regression/requirements.txt || { echo 'ERROR: Failed to install Python requirements.' ; exit 1; }
|
2023-04-03 09:18:46 -05:00
|
|
|
else
|
|
|
|
echo Installing requirements for executing and building only...
|
2024-07-30 03:11:56 -05:00
|
|
|
pip install --no-cache-dir wheel sphinx==6.1.3 sphinxcontrib-youtube -r requirements.txt || { echo 'ERROR: Failed to install Python requirements.' ; exit 1; }
|
2023-04-03 09:18:46 -05:00
|
|
|
fi
|