From 6e3e061f15331926cb5432ea485a26be9c4f297e Mon Sep 17 00:00:00 2001 From: Dominic Kempf <dominic.kempf@iwr.uni-heidelberg.de> Date: Tue, 20 Jun 2017 13:42:31 +0200 Subject: [PATCH] Introduce subpackage driver in pdelab --- .../dune/perftool/pdelab/{driver.py => driver/__init__.py} | 6 +++++- python/setup.py | 1 + 2 files changed, 6 insertions(+), 1 deletion(-) rename python/dune/perftool/pdelab/{driver.py => driver/__init__.py} (99%) diff --git a/python/dune/perftool/pdelab/driver.py b/python/dune/perftool/pdelab/driver/__init__.py similarity index 99% rename from python/dune/perftool/pdelab/driver.py rename to python/dune/perftool/pdelab/driver/__init__.py index 8fb6dc15..21b5cf15 100644 --- a/python/dune/perftool/pdelab/driver.py +++ b/python/dune/perftool/pdelab/driver/__init__.py @@ -1,10 +1,14 @@ """ -The module that provides generating methods for all parts +The package that provides generating methods for all parts of the pdelab driver. Currently, these are hardcoded as strings. It would be possible to switch these to cgen expression. OTOH, there is not much to be gained there. + +NB: Previously this __init__.py was a module driver.py. As it was growing, + we made it a package. Some content could and should be separated into + new modules within this package! """ from dune.perftool.error import PerftoolCodegenError from dune.perftool.generation import (generator_factory, diff --git a/python/setup.py b/python/setup.py index 5201f666..ccbe9e56 100644 --- a/python/setup.py +++ b/python/setup.py @@ -35,6 +35,7 @@ setup(name='dune.perftool', 'dune.perftool.loopy', 'dune.perftool.loopy.transformations', 'dune.perftool.pdelab', + 'dune.perftool.pdelab.driver', 'dune.perftool.sumfact', 'dune.perftool.ufl', 'dune.perftool.ufl.transformations', -- GitLab