Port install/remove functions to new PK 0.8.x API
[appstream:software-center.git] / run_local.sh
1 #!/bin/sh
2
3 export SOFTWARE_CENTER_REVIEWS_HOST="http://127.0.0.1:8000/reviews/api/1.0"
4 export SOFTWARE_CENTER_FORCE_NON_SSL=1
5 export SOFTWARE_CENTER_FORCE_DISABLE_CERTS_CHECK=1
6
7 # sso
8 export USSOC_SERVICE_URL="https://login.staging.ubuntu.com/api/1.0"
9 pkill -f ubuntu-sso-login
10 python /usr/lib/ubuntu-sso-client/ubuntu-sso-login &
11
12 # s-c
13 if [ -n "$PYTHONPATH" ]; then
14     export PYTHONPATH=$(pwd):$PYTHONPATH
15 else
16     export PYTHONPATH=$(pwd)
17 fi
18
19
20 if [ ! -d "./build" ]; then
21     echo "Please run: 'python setup.py build' before $0"
22 fi
23
24 ./software-center $@