Skip to content

Commit

Permalink
Get the name of the first component to babelize
Browse files Browse the repository at this point in the history
This is a temporary fix until I can handle multiple components
in the `meson.build` file.
  • Loading branch information
mdpiper committed Mar 7, 2024
1 parent af3f7e5 commit 1632c48
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions babelizer/data/{{cookiecutter.package_name}}/meson.build
Original file line number Diff line number Diff line change
Expand Up @@ -20,16 +20,16 @@ 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 != '' %}
fc.find_library('{{ dependency }}'),
{%- 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',
Expand Down

0 comments on commit 1632c48

Please sign in to comment.