Skip to content

Commit a553046

Browse files
committed
move external openmpi to the end
conda-build extracts the wrong output text for run_constrained when the outputs have conditions
1 parent 1913347 commit a553046

File tree

1 file changed

+13
-12
lines changed

1 file changed

+13
-12
lines changed

recipe/meta.yaml

Lines changed: 13 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -22,18 +22,7 @@ build:
2222
skip: true # [win]
2323

2424
outputs:
25-
{% if mpi_type == 'external' %}
26-
- name: openmpi
27-
string: {{ mpi_type }}_{{ build }}
28-
track_features:
29-
- openmpi_{{ mpi_type }}
30-
requirements:
31-
run:
32-
- mpi 1.0 openmpi
33-
test:
34-
commands:
35-
- echo "It works!"
36-
{% else %}
25+
{% if mpi_type == 'conda' %}
3726
- name: openmpi
3827
script: build-mpi.sh
3928
build:
@@ -122,6 +111,18 @@ outputs:
122111
- mpiexec.sh
123112
- tests/helloworld.f
124113
- tests/helloworld.f90
114+
{% else %}
115+
- name: openmpi
116+
string: {{ mpi_type }}_{{ build }}
117+
track_features:
118+
- openmpi_{{ mpi_type }}
119+
requirements:
120+
host: []
121+
run:
122+
- mpi 1.0 openmpi
123+
test:
124+
commands:
125+
- echo "It works!"
125126
{% endif %}
126127

127128
about:

0 commit comments

Comments
 (0)