Skip to content
Snippets Groups Projects
Commit d653df1a authored by Santiago Ospina De Los Ríos's avatar Santiago Ospina De Los Ríos
Browse files

Conditionally check if dune-common python package is installed

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

#52982

    ......@@ -8,11 +8,16 @@ 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@
    RESULT=$?
    if [ $RESULT -ne 0 ] ; then
    echo "Dune python package could not check build directories"
    exit $RESULT
    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