Baptiste Beauplat pushed to branch master at snapshot / snapshot
Commits:
-
368526ef
by Yaroslav Halchenko at 2022-09-28T15:02:30-04:00
-
486677b0
by Yaroslav Halchenko at 2022-10-17T13:42:18-04:00
-
7e39e13b
by Baptiste Beauplat at 2022-10-18T16:37:48+00:00
1 changed file:
Changes:
1 | -#!/bin/sh
|
|
2 | - |
|
3 | -# requires the dbutils external non-packaged python library.
|
|
4 | - |
|
5 | -set -e
|
|
6 | -set -x
|
|
7 | - |
|
8 | -TARGET="$HOME/web-app"
|
|
9 | -PYVER=`pyversions -d -v`
|
|
10 | - |
|
11 | -[ -e "$HOME/code/web/app" ]
|
|
12 | -[ -w "$HOME/code/web/app/Snapshot.egg-info" ]
|
|
13 | - |
|
14 | - |
|
15 | -find "$HOME"/code/web/app/Snapshot.egg-info -mindepth 1 -print0 | xargs -0 --no-run-if-empty rm -v
|
|
16 | -(cd "$HOME"/code/web/app && python setup.py install --single-version-externally-managed --record /dev/null --prefix="$TARGET")
|
|
17 | - |
|
18 | -[ -d "$HOME/web" ] || mkdir "$HOME/web"
|
|
19 | -[ -e "$HOME/web/public" ] || ln -s ../web-app/lib/python$PYVER/site-packages/snapshot/public "$HOME/web/public"
|
|
20 | -[ -d "$HOME/web-cache" ] || mkdir -m 01777 "$HOME/web-cache"
|
|
21 | -[ -d "$HOME/bin" ] || mkdir "$HOME/bin"
|
|
22 | -[ -e "$HOME/bin/snapshot.wsgi" ] || ln -s ../code/web/snapshot.wsgi "$HOME/bin/"
|
|
23 | - |
|
24 | -echo
|
|
25 | -echo "If you do not have a config yet, run 'paster make-config snapshot ~/etc/web-app.ini.NEW'" |