Commit efa56523 authored by Dion Haefner's avatar Dion Haefner

python2 compatibility

parent bd6887bb
......@@ -27,9 +27,9 @@ build:python3:
script:
- cd /opt/dune/venv
- virtualenv dorie3 --py=/usr/bin/python3
- source /opt/dune/venv/dorie3/bin/activate && python --version && python -m pip install virtualenv
- source /opt/dune/venv/dorie3/bin/activate
- python -m pip install virtualenv
- cd /opt/dune
- python --version
- ./dune-common/bin/dunecontrol exec "rm -rf build-cmake"
- ./dune-common/bin/dunecontrol all
- export PATH=/opt/dune/dorie/build-cmake/bin:$PATH
......
......@@ -66,8 +66,7 @@ def pfg(args):
else:
mpi_flags = []
subprocess.check_call([DORIE_PYTHON, "pf_from_file.py", args["config"],
"--parallel", str(args["parallel"]),
*mpi_flags])
"--parallel", str(args["parallel"])] + mpi_flags)
except subprocess.CalledProcessError:
print("Error while running DORiE")
sys.exit(1)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment