From 1632c4856420ce37318ddf8bd625984171c9851a Mon Sep 17 00:00:00 2001 From: Mark Piper Date: Wed, 6 Mar 2024 21:25:19 -0700 Subject: [PATCH] Get the name of the first component to babelize This is a temporary fix until I can handle multiple components in the `meson.build` file. --- babelizer/data/{{cookiecutter.package_name}}/meson.build | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/babelizer/data/{{cookiecutter.package_name}}/meson.build b/babelizer/data/{{cookiecutter.package_name}}/meson.build index 0f45a5e2..80a093e7 100644 --- a/babelizer/data/{{cookiecutter.package_name}}/meson.build +++ b/babelizer/data/{{cookiecutter.package_name}}/meson.build @@ -20,6 +20,9 @@ incs = include_directories( ] ) +{% set babelized_class = cookiecutter.components|list|first -%} +# babelized_class = {{ babelized_class }} + {% set dependency_list = cookiecutter.package_requirements.split(',') -%} deps = [ {%- for dependency in dependency_list if dependency != '' %} @@ -27,9 +30,6 @@ deps = [ {%- endfor %} ] -{# This is temporary until I figure out how to do multiple components. #} -{%- set babelized_class = 'HeatModelF' -%} - srcs = [ '{{ cookiecutter.package_name }}/lib/bmi_interoperability.f90', '{{ cookiecutter.package_name }}/lib/{{ babelized_class|lower }}.pyx',