{% set build = 0 %}
{% set mpi = environ['MPI'] or 'mpich' %}
{% set req = {'mpich':'>=3.1', 'openmpi':'>=1.8'} %}

package:
  name: mpi4py
  version: 2.0.0.dev

about:
  home: https://bitbucket.org/mpi4py/
  summary: 'Python bindings for MPI'
  license: 'BSD (https://bitbucket.org/mpi4py/mpi4py/src/master/LICENSE.rst)'

source:
# git_url: https://bitbucket.org/mpi4py/mpi4py
# git_rev: master
  path: ../..

requirements:
  build:
    - python
    - cython >=0.22
    - {{mpi}} {{req[mpi]}}
  run:
    - python
    - {{mpi}} {{req[mpi]}}

build:
  number: {{build}}
  string: py{{py}}_{{mpi}}_{{build}}
  script: python setup.py build_exe install

test:
  imports:
    - mpi4py
    - mpi4py.rc
    - mpi4py.dl # [linux or osx]
    - mpi4py.MPI
  commands:
    - mpiexec -n 1 python -m mpi4py --version  # [not py26]
    - mpiexec -n 2 python -m mpi4py helloworld # [not py26]
    - mpiexec -n 2 python -m mpi4py ringtest   # [not py26]

{% set build = 0 %}
{% set mpi = environ['MPI'] or 'mpich' %}
{% set req = {'mpich':'>=3.1', 'openmpi':'>=1.8'} %}

package:
  name: mpi4py
  version: 2.0.0.dev

about:
  home: https://bitbucket.org/mpi4py/
  summary: 'Python bindings for MPI'
  license: 'BSD (https://bitbucket.org/mpi4py/mpi4py/src/master/LICENSE.rst)'

source:
# git_url: https://bitbucket.org/mpi4py/mpi4py
# git_rev: master
  path: ../../..

requirements:
  build:
    - python
    - cython >=0.22
    - {{mpi}} {{req[mpi]}}
  run:
    - python
    - {{mpi}} {{req[mpi]}}

build:
  number: {{build}}
  string: py{{py}}_{{mpi}}_{{build}}
  script: python setup.py build_exe install

test:
  imports:
    - mpi4py
    - mpi4py.rc
    - mpi4py.dl # [linux or osx]
    - mpi4py.MPI
  commands:
    - mpiexec -n 1 python -m mpi4py --version  # [not py26]
    - mpiexec -n 2 python -m mpi4py helloworld # [not py26]
    - mpiexec -n 2 python -m mpi4py ringtest   # [not py26]

Fix path in conda recipe
Fix path in conda recipe
