Skip to content

Instantly share code, notes, and snippets.

@q9f
Created July 28, 2020 13:26
Show Gist options
  • Save q9f/0f57fa13aa37279d1ba4c8b8e767241b to your computer and use it in GitHub Desktop.
Save q9f/0f57fa13aa37279d1ba4c8b8e767241b to your computer and use it in GitHub Desktop.
medalla launchpad deposit userland patch
--- a/deposit.sh
+++ b/deposit.sh
@@ -4,8 +4,8 @@ if [[ "$OSTYPE" == "linux-gnu"* ]] || [[ "$OSTYPE" == "darwin"* ]]; then
echo $OSTYPE
if [[ $1 == "install" ]]; then
echo "Installing dependencies..."
- pip3 install -r requirements.txt
- python3 setup.py install
+ pip3 install -r requirements.txt --user
+ python3 setup.py install --user
exit 1
fi
echo "Running deposit-cli..."
@@ -15,8 +15,8 @@ elif [[ "$OSTYPE" == "msys" ]] || [[ "$OSTYPE" == "cygwin" ]]; then
echo $OSTYPE
if [[ $1 == "install" ]]; then
echo "Installing dependencies..."
- pip install -r requirements.txt
- python setup.py install
+ pip install -r requirements.txt --user
+ python setup.py install --user
exit 1
fi
echo "Running deposit-cli..."
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment