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

Cross platform simultanously #11

@tokejepsen

Description

@tokejepsen

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions