Public
Snippet $232 authored by Kirill Smelkov

env-slapos-inplace.sh (compile python package under SlapOS buildout manually)

Edited
env-slapos-inplace.sh
# env.sh for compiling wendelin.core (or any other package) in-place manually under slapos buildout
X=${1:-${BASH_SOURCE[0]}}
X=$(cd `dirname $X` && pwd)
X=$(cd $X/../.. && pwd)         # .../md5/develop-eggs/wendelin.core-kirr -> .../md5

export PATH=$X/parts/python2.7/bin:$PATH

# add all eggs and develop-eggs to py path
for egg in $X/develop-eggs/*.egg $X/eggs/*.egg; do
        export PYTHONPATH=$egg:$PYTHONPATH
done


export PS1="(`basename $X`) $PS1"