The TS-GitLab will have to shut down towards the end of the year — please think about migrating your projects to GitLab.com or GitHub.
(This is still a very early message, meant to keep you informed. There will be more urgent ones in the future.)

Commit efa56523 authored by Dion Haefner's avatar Dion Haefner

python2 compatibility

parent bd6887bb
...@@ -27,9 +27,9 @@ build:python3: ...@@ -27,9 +27,9 @@ build:python3:
script: script:
- cd /opt/dune/venv - cd /opt/dune/venv
- virtualenv dorie3 --py=/usr/bin/python3 - 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 - cd /opt/dune
- python --version
- ./dune-common/bin/dunecontrol exec "rm -rf build-cmake" - ./dune-common/bin/dunecontrol exec "rm -rf build-cmake"
- ./dune-common/bin/dunecontrol all - ./dune-common/bin/dunecontrol all
- export PATH=/opt/dune/dorie/build-cmake/bin:$PATH - export PATH=/opt/dune/dorie/build-cmake/bin:$PATH
......
...@@ -66,8 +66,7 @@ def pfg(args): ...@@ -66,8 +66,7 @@ def pfg(args):
else: else:
mpi_flags = [] mpi_flags = []
subprocess.check_call([DORIE_PYTHON, "pf_from_file.py", args["config"], subprocess.check_call([DORIE_PYTHON, "pf_from_file.py", args["config"],
"--parallel", str(args["parallel"]), "--parallel", str(args["parallel"])] + mpi_flags)
*mpi_flags])
except subprocess.CalledProcessError: except subprocess.CalledProcessError:
print("Error while running DORiE") print("Error while running DORiE")
sys.exit(1) 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