@@ -21,16 +21,23 @@ echo ''
2121sleep 1
2222echo ' '
2323
24+ python3 -m venv ~ /de_venv
25+ source ~ /de_venv/bin/activate
26+ python3 -m pip install virtualenvwrapper
27+ export VIRTUALENVWRAPPER_PYTHON=~ /de_venv/bin/python3
28+ source ~ /de_venv/bin/virtualenvwrapper.sh
29+ add2virtualenv /var/tmp/de_venv/lib64/python3.9/site-packages/
30+
2431# Useful info
2532python3 -m site
2633echo ' '
2734
2835python3 setup.py bdist_wheel
29- python3 -m pip install -e . --user
30- python3 -m pip install -e .[develop] --user
36+ python3 -m pip install -e .
37+ python3 -m pip install -e .[develop]
3138
3239echo' '
33- python3 -m pip list
40+ python3 -m pip list -v
3441
3542# make sure the pipe doesn't eat failures
3643set -o pipefail
@@ -43,5 +50,16 @@ echo "PYTHONPATH: ${PYTHONPATH}"
4350# so we unset this variable
4451unset PROMETHEUS_MULTIPROC_DIR
4552
46- # run the python "module/command"
47- python3 ${CMD} 2>&1 | tee ${LOGFILE}
53+ if [[ ${CMD} =~ " make-release" ]]; then
54+ # run make-release
55+ cur_revision=$( git describe --tags| sed -r ' s/-([0-9]*)-/.dev\1+/g' )
56+ echo " cur_revision: ${cur_revision} "
57+ # podman runs this python script from decisionengine folder, we need to move in the parent folder to run make-release.sh
58+ cd ..
59+ decisionengine/package/release/make-release.sh -v -e -s ${cur_revision} -t ${cur_revision} ${cur_revision} 2>&1 | tee ${LOGFILE}
60+
61+ else
62+ # run the python "module/command"
63+ python3 ${CMD} 2>&1 | tee ${LOGFILE}
64+
65+ fi
0 commit comments