This repository was archived by the owner on Jan 6, 2024. It is now read-only.

Description
Goal
To enable the package to be shared across multiple platforms on a network.
Implementation
Have separate miniconda installations/directories per platform. When enabling the conda environment, the shell script would query the platform and use the appropriate miniconda installation.
Shell script could look something like this;
parent_path=$( cd "$(dirname "${BASH_SOURCE}")" ; pwd -P )
export PYTHONPATH=$PYTHONPATH:"$parent_path"/production/senate-desktop
if [ "$(uname)" == "Darwin" ]; then
echo "OS is OSX"
export PATH="$parent_path"/production/miniconda_osx/bin:$PATH
source activate pipeline
python -m senate_desktop
elif [ "$(expr substr $(uname -s) 1 5)" == "Linux" ]; then
echo "OS is Linux"
export PATH="$parent_path"/production/miniconda_linux/bin:$PATH
source activate pipeline
python -m senate_desktop
elif [ "$(expr substr $(uname -s) 1 10)" == "MINGW32_NT" ]; then
echo "OS is Window"
fi