From 2b16217168d8f98b869c0be52797c4bcdb9db37d Mon Sep 17 00:00:00 2001
From: Dominic Kempf <dominic.kempf@iwr.uni-heidelberg.de>
Date: Tue, 30 Jul 2019 10:10:45 +0200
Subject: [PATCH] Force Python interpreter version to be major version 3

---
 CMakeLists.txt  | 2 ++
 python/setup.py | 1 +
 2 files changed, 3 insertions(+)

diff --git a/CMakeLists.txt b/CMakeLists.txt
index bf740e74..79537a4d 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -18,6 +18,8 @@ include(DuneMacros)
 set(DUNE_PYTHON_INSTALL_EDITABLE 1)
 set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -DDUNE_ISTL_SUPPORT_OLD_CATEGORY_INTERFACE=1")
 
+dune_python_force_version(3)
+
 # start a dune project with information from dune.module
 dune_project()
 
diff --git a/python/setup.py b/python/setup.py
index d847cb90..713ffbab 100644
--- a/python/setup.py
+++ b/python/setup.py
@@ -29,6 +29,7 @@ setup(name='dune.codegen',
       description='Performance optimizing form compiler for the Dune project',
       author='Dominic Kempf <dominic.kempf@iwr.uni-heidelberg.de>',
       url='https://gitlab.dune-project.org/dominic/dune-codegen.git',
+      python_requires='>=3',
       packages=['dune.codegen',
                 'dune.codegen.blockstructured',
                 'dune.codegen.cgen',
-- 
GitLab