Skip to content
Snippets Groups Projects
Commit 9c84e06b authored by Andreas Dedner's avatar Andreas Dedner
Browse files

Merge branch 'feature/remove-venv-dune-common-dependency' into 'master'

Conditionally check if dune-common python package is installed

Closes #313

See merge request !1162
parents 5dcb1e2b 84aa5312
Branches
Tags
1 merge request!1162Conditionally check if dune-common python package is installed
Pipeline #52986 passed with warnings
Pipeline: Dune Nightly Test

#52991

    ......@@ -8,11 +8,15 @@ else
    exit 77
    fi
    # test if build directory matches installed dune python packages
    python -m dune checkbuilddirs @PROJECT_NAME@ @CMAKE_BINARY_DIR@
    if [ $? -eq 0 ] ; then
    "$@"
    else
    echo "Dune python package could not be found."
    exit 77
    # check if dune-common python package is installed
    if python -m dune --help &> /dev/null; then
    # test if build directory matches installed dune python packages
    python -m dune checkbuilddirs @PROJECT_NAME@ @CMAKE_BINARY_DIR@
    if [ $? -ne 0 ] ; then
    echo "Dune python package could not check build directories"
    exit 77
    fi
    fi
    # execute the command
    "$@"
    0% Loading or .
    You are about to add 0 people to the discussion. Proceed with caution.
    Please register or to comment