Skip to content
Snippets Groups Projects

[python][test] Use python3 in dune_python_add_test

Merged Timo Koch requested to merge fix/dune-python-add-test-python-executable into master
All threads resolved!

This was hard-coded to python before but a better default might be python3 since we require Python 3 (According to https://peps.python.org/pep-0394/, python doesn't even have to exist and if it exists may point to either Python 2 or 3).

This also fixes a problem that came up in !1222 (merged) when trying to use the Dune bindings without a virtual env on a system where python points to python2.

Edited by Timo Koch

Merge request reports

Pipeline #60243 passed

Pipeline: Dune Nightly Test

#60244

    Pipeline passed for 63e9efa0 on fix/dune-python-add-test-python-executable

    Approval is optional

    Merged by Robert KRobert K 2 years ago (Feb 21, 2023 8:39pm UTC)

    Merge details

    • Changes merged into with 792d611e.
    • Deleted the source branch.
    • Auto-merge enabled

    Pipeline #60517 passed

    Pipeline: Dune Nightly Test

    #60519

      Pipeline passed for 792d611e on master

      Activity

      Filter activity
      • Approvals
      • Assignees & reviewers
      • Comments (from bots)
      • Comments (from users)
      • Commits & branches
      • Edits
      • Labels
      • Lock status
      • Mentions
      • Merge request status
      • Tracking
    • Timo Koch resolved all threads

      resolved all threads

    • Timo Koch added 1 commit
    • Timo Koch changed title from Draft: [fix][python][test] Use Python3_EXECUTABLE in dune_python_add_test to Draft: [fix][python][test] Use python3 in dune_python_add_test

      changed title from Draft: [fix][python][test] Use Python3_EXECUTABLE in dune_python_add_test to Draft: [fix][python][test] Use python3 in dune_python_add_test

    • Timo Koch changed the description

      changed the description

    • Author Owner

      @samuel.burbulla Do you see any problems with this? I'm asking because you previously worked on the dune_python_add_test a lot.

    • removed bugfix label

    • Timo Koch marked this merge request as ready

      marked this merge request as ready

    • Timo Koch changed title from Draft: [fix][python][test] Use python3 in dune_python_add_test to [python][test] Use python3 in dune_python_add_test

      changed title from Draft: [fix][python][test] Use python3 in dune_python_add_test to [python][test] Use python3 in dune_python_add_test

    • This is ok from my side. Should be merged.

    • Timo Koch requested review from @samuel.burbulla

      requested review from @samuel.burbulla

    • Timo Koch added 1 commit

      added 1 commit

      • 63e9efa0 - [python][test] Use python3 instead of python in dune_python_add_test

      Compare with previous version

    • Robert K
    • Timo Koch changed the description

      changed the description

    • Samuel Burbulla approved this merge request

      approved this merge request

    • Timo Koch resolved all threads

      resolved all threads

    • Timo Koch approved this merge request

      approved this merge request

      • Resolved by Timo Koch

        I'm ok with this being merged. However, it is a corner case because you want to run the python tests with a python environment that is configured later but the dune python modules are build with the system python version. This could lead to linkage errors. Nevertheless, I'm fine with this change.

    • Timo Koch changed the description

      changed the description

    • Timo Koch resolved all threads

      resolved all threads

    • Timo Koch assigned to @tkoch and unassigned @andreas.dedner

      assigned to @tkoch and unassigned @andreas.dedner

    • @tkoch: I guess it's fine, but I was wanting to wait with the testing until after !1222 (merged) was merged.

    • merged

    • Robert K mentioned in commit 792d611e

      mentioned in commit 792d611e

    • Please register or sign in to reply
      Loading