Skip to content

Commit

Permalink
conda: Update recipes to use features
Browse files Browse the repository at this point in the history
  • Loading branch information
dalcinl committed Jun 7, 2016
1 parent fccb7fb commit 200b86f
Show file tree
Hide file tree
Showing 6 changed files with 22 additions and 7 deletions.
3 changes: 2 additions & 1 deletion conf/anaconda/mpi4py/meta.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{% set build = 0 %}
{% set mpi = (environ.get('MPI') or 'mpich') if not win else 'msmpi' %}
{% set mpi_version = {'mpich':'>=3.1', 'openmpi':'>=1.8'}.get(mpi,'') %}
{% set mpi_version = {'mpich':'>=3.2', 'openmpi':'>=1.10'}.get(mpi,'') %}

package:
name: mpi4py
Expand Down Expand Up @@ -28,6 +28,7 @@ requirements:
build:
number: {{build}}
string: py{{py}}_{{mpi}}_{{build}}
features: {{mpi}} # [not win]
script: '$PYTHON setup.py install' # [not win]
script: '%PYTHON% setup.py install' # [win]

Expand Down
6 changes: 4 additions & 2 deletions conf/conda-recipes/mpi4py/meta.yaml
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
{% set build = 2 %}
{% set build = 3 %}
{% set version = '2.0.0' %}
{% set md5 = '4f7d8126d7367c239fd67615680990e3' %}
{% set mpi = (environ.get('MPI') or 'mpich') if not win else 'msmpi' %}
{% set mpi_version = {'mpich':'>=3.1', 'openmpi':'>=1.8'}.get(mpi,'') %}
{% set mpi_version = {'mpich':'>=3.2', 'openmpi':'>=1.10'}.get(mpi,'') %}

package:
name: mpi4py
Expand All @@ -29,6 +29,8 @@ requirements:
build:
number: {{build}}
string: py{{py}}_{{mpi}}_{{build}}
features:
- {{mpi}}
script: '$PYTHON setup.py install' # [not win]
script: '%PYTHON% setup.py install' # [win]

Expand Down
2 changes: 2 additions & 0 deletions conf/conda-recipes/mpich/build.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
#!/bin/bash
export CC=${CC-cc}
export CXX=${CXX-c++}
./configure \
--disable-fortran \
--disable-dependency-tracking \
Expand Down
8 changes: 6 additions & 2 deletions conf/conda-recipes/mpich/meta.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,10 +18,14 @@ source:
md5: f414cfa77099cd1fa1a5ae4e22db508a

build:
number: 1
number: 2
features:
- mpich
track_features:
- mpich
skip: true # [win]
binary_relocation: true
detect_binary_files_with_prefix: true
skip: true # [win]

test:
files:
Expand Down
2 changes: 2 additions & 0 deletions conf/conda-recipes/openmpi/build.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
#!/bin/bash
export CC=${CC-cc}
export CXX=${CXX-c++}
./configure \
--disable-mpi-fortran \
--disable-dependency-tracking \
Expand Down
8 changes: 6 additions & 2 deletions conf/conda-recipes/openmpi/meta.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,10 +18,14 @@ source:
md5: b2f43d9635d2d52826e5ef9feb97fd4c

build:
number: 1
number: 2
features:
- openmpi
track_features:
- openmpi
skip: true # [win]
binary_relocation: true
detect_binary_files_with_prefix: true
skip: true # [win]

test:
files:
Expand Down

0 comments on commit 200b86f

Please sign in to comment.