Skip to content
Snippets Groups Projects
Commit 71c871ab authored by jgoldste's avatar jgoldste
Browse files

SSA-6324: standardizing datafetcher test name; conda-izing setup script

parent 06e3bb80
No related branches found
No related tags found
No related merge requests found
#!/bin/bash
# Convenience script to pip install -r requirements.txt,
# then python setup.py develop in each module
# required for tests to function properly.
# Execute this script from data/, and be sure the "data"
# conda env is activated for Python 3.8 (env has 3.8.5)
VERSION=$(python --version)
echo $VERSION
# Convenience script to set up conda environment, if necessary,
# then run "python setup.py develop" in each module.
TOP_LEVEL=/Users/jgoldste/Projects/data/
cd $TOP_LEVEL
pip install -r requirements.txt
sleep 2
# setups must be executed in this order, since requirements are interdependent
for DIR in shared/support/ shared/schema/ shared/messaging/events/ \
apps/cli/launchers/pymygdala/ apps/cli/launchers/wf/ \
apps/cli/utilities/s_code_project_updater/ apps/cli/executables/datafetcher/
current_env=$CONDA_DEFAULT_ENV
if [ -z $current_env ]
then
echo '>>> Updating conda environment....'
conda env update
echo '>>> Activating....'
conda activate data
else
echo "conda environment 'data' is active"
fi
SETUP=setup.py
echo '>>> finding all $SETUP'
SETUPS=$(find . -name $SETUP -exec echo '{}' \;)
for item in $SETUPS
do
echo ">>> $DIR"
cd $TOP_LEVEL$DIR
python setup.py develop
# give it time to percolate
sleep 2
done
dir=$(dirname $item)
echo ">>> running ${SETUP} in ${dir}...."
cd ${dir}
python setup.py develop
# to_keep=$(basename -s $item)
# echo $to_keep
done
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment