Skip to content

Commit

Permalink
Renamed setup function to be consistent with convention.
Browse files Browse the repository at this point in the history
  • Loading branch information
kilo52 committed Dec 12, 2024
1 parent 4f93fd0 commit 27826c9
Show file tree
Hide file tree
Showing 15 changed files with 16 additions and 16 deletions.
2 changes: 1 addition & 1 deletion python/01_installable_script/source/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ ${{VAR_SCRIPT_BUILD_ISOLATED_MAIN}}

if [[ $ARG_NO_VIRTUALENV == false ]]; then
# Setup and activate virtual environment
if ! setup_virtual_env; then
if ! project_setup_virtual_env; then
exit 1;
fi
fi
Expand Down
2 changes: 1 addition & 1 deletion python/01_installable_script/source/test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ ${{VAR_SCRIPT_TEST_ISOLATED_MAIN}}

if [[ $ARG_NO_VIRTUALENV == false ]]; then
# Setup and activate virtual environment
if ! setup_virtual_env; then
if ! project_setup_virtual_env; then
exit 1;
fi
fi
Expand Down
2 changes: 1 addition & 1 deletion python/02_library/source/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ ${{VAR_SCRIPT_BUILD_ISOLATED_MAIN}}

if [[ $ARG_NO_VIRTUALENV == false ]]; then
# Setup and activate virtual environment
if ! setup_virtual_env; then
if ! project_setup_virtual_env; then
exit 1;
fi
fi
Expand Down
2 changes: 1 addition & 1 deletion python/02_library/source/test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ ${{VAR_SCRIPT_TEST_ISOLATED_MAIN}}

if [[ $ARG_NO_VIRTUALENV == false ]]; then
# Setup and activate virtual environment
if ! setup_virtual_env; then
if ! project_setup_virtual_env; then
exit 1;
fi
fi
Expand Down
2 changes: 1 addition & 1 deletion python/03_library_native_ctypes/source/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ ${{VAR_SCRIPT_BUILD_ISOLATED_MAIN}}

if [[ $ARG_NO_VIRTUALENV == false ]]; then
# Setup and activate virtual environment
if ! setup_virtual_env; then
if ! project_setup_virtual_env; then
exit 1;
fi
fi
Expand Down
2 changes: 1 addition & 1 deletion python/03_library_native_ctypes/source/test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ ${{VAR_SCRIPT_TEST_ISOLATED_MAIN}}

if [[ $ARG_NO_VIRTUALENV == false ]]; then
# Setup and activate virtual environment
if ! setup_virtual_env; then
if ! project_setup_virtual_env; then
exit 1;
fi
fi
Expand Down
2 changes: 1 addition & 1 deletion python/04_library_native_cext/source/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ ${{VAR_SCRIPT_BUILD_ISOLATED_MAIN}}

if [[ $ARG_NO_VIRTUALENV == false ]]; then
# Setup and activate virtual environment
if ! setup_virtual_env; then
if ! project_setup_virtual_env; then
exit 1;
fi
fi
Expand Down
2 changes: 1 addition & 1 deletion python/04_library_native_cext/source/test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ ${{VAR_SCRIPT_TEST_ISOLATED_MAIN}}

if [[ $ARG_NO_VIRTUALENV == false ]]; then
# Setup and activate virtual environment
if ! setup_virtual_env; then
if ! project_setup_virtual_env; then
exit 1;
fi
fi
Expand Down
2 changes: 1 addition & 1 deletion python/05_library_native_cython/source/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ ${{VAR_SCRIPT_BUILD_ISOLATED_MAIN}}

if [[ $ARG_NO_VIRTUALENV == false ]]; then
# Setup and activate virtual environment
if ! setup_virtual_env; then
if ! project_setup_virtual_env; then
exit 1;
fi
fi
Expand Down
2 changes: 1 addition & 1 deletion python/05_library_native_cython/source/test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ ${{VAR_SCRIPT_TEST_ISOLATED_MAIN}}

if [[ $ARG_NO_VIRTUALENV == false ]]; then
# Setup and activate virtual environment
if ! setup_virtual_env; then
if ! project_setup_virtual_env; then
exit 1;
fi
fi
Expand Down
2 changes: 1 addition & 1 deletion python/06_server-cherrypy/source/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ ${{VAR_SCRIPT_BUILD_ISOLATED_MAIN}}

if [[ $ARG_NO_VIRTUALENV == false ]]; then
# Setup and activate virtual environment
if ! setup_virtual_env; then
if ! project_setup_virtual_env; then
exit 1;
fi
fi
Expand Down
2 changes: 1 addition & 1 deletion python/06_server-cherrypy/source/test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ ${{VAR_SCRIPT_TEST_ISOLATED_MAIN}}

if [[ $ARG_NO_VIRTUALENV == false ]]; then
# Setup and activate virtual environment
if ! setup_virtual_env; then
if ! project_setup_virtual_env; then
exit 1;
fi
fi
Expand Down
2 changes: 1 addition & 1 deletion python/07_odoo_module/source/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ ${{VAR_SCRIPT_BUILD_ISOLATED_MAIN}}

if [[ $ARG_NO_VIRTUALENV == false ]]; then
# Setup and activate virtual environment
if ! setup_virtual_env; then
if ! project_setup_virtual_env; then
exit 1;
fi
fi
Expand Down
2 changes: 1 addition & 1 deletion python/07_odoo_module/source/test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ ${{VAR_SCRIPT_TEST_ISOLATED_MAIN}}

if [[ $ARG_NO_VIRTUALENV == false ]]; then
# Setup and activate virtual environment
if ! setup_virtual_env; then
if ! project_setup_virtual_env; then
exit 1;
fi
fi
Expand Down
4 changes: 2 additions & 2 deletions share/python/setup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ function __project_confirm_setup() {
esac
}

function setup_virtual_env() {
function project_setup_virtual_env() {
# Check for prerequisites
local virtualenvwrapper_script="$(which virtualenvwrapper.sh)";
if [ -z "$virtualenvwrapper_script" ]; then
Expand Down Expand Up @@ -171,5 +171,5 @@ fi
# Automatically activate the virtual env unless this
# behaviour is suppressed by specifying the env var
if [[ "$PROJECT_VIRTUALENV_AUTO_ACTIVATE" != "0" ]]; then
setup_virtual_env;
project_setup_virtual_env;
fi

0 comments on commit 27826c9

Please sign in to comment.