package:
  name: rank_filter
  version: {{ environ.get('GIT_DESCRIBE_TAG', '')[1:] }}{{ '+' + environ.get('GIT_DESCRIBE_NUMBER', '0') + '.' + environ.get('GIT_DESCRIBE_HASH', '0') if environ.get('GIT_DESCRIBE_NUMBER', '0') != '0' else "" }}

source:
  git_url: ..

build:
  script_env:
    - EXT_CC
    - EXT_CXX

  detect_binary_files_with_prefix: true

requirements:
  build:
    - toolchain
    - setuptools
    - cmake
    - patchelf >=0.8    # [linux]
    - boost-cpp
    - python
    - numpy 1.11.*
    - cython
    
  run:
    - boost-cpp
    - python
    - numpy >=1.11

test:
  source_files:
    - tests

  imports:
    - rank_filter

  commands:
    - python -m unittest discover -s .

about:
  home: http://github.com/nanshe-org/rank_filter
  license: BSD 3-Clause
  license_file: LICENSE.txt
  summary: C++ boosted rank filter with Python bindings.

package:
  name: rank_filter
  version: {{ environ.get('GIT_DESCRIBE_TAG', '')[1:] }}{{ '+' + environ.get('GIT_DESCRIBE_NUMBER', '0') + '.' + environ.get('GIT_DESCRIBE_HASH', '0') if environ.get('GIT_DESCRIBE_NUMBER', '0') != '0' else "" }}

source:
  git_url: ..

build:
  script_env:
    - EXT_CC
    - EXT_CXX

  detect_binary_files_with_prefix: true

requirements:
  build:
    - {{ compiler("cxx") }}
    - cmake
    - patchelf >=0.8    # [linux]

  host:
    - setuptools
    - boost-cpp
    - python
    - numpy 1.11.*
    - cython
    
  run:
    - boost-cpp
    - python
    - numpy >=1.11

test:
  source_files:
    - tests

  imports:
    - rank_filter

  commands:
    - python -m unittest discover -s .

about:
  home: http://github.com/nanshe-org/rank_filter
  license: BSD 3-Clause
  license_file: LICENSE.txt
  summary: C++ boosted rank filter with Python bindings.

Split build/host and use compiler syntax in recipe
Split build/host and use compiler syntax in recipe

Update the `conda-build` recipe to match the syntax in `conda-build` 3.
Namely move all build tools to the `build` section and leave the build
environment in `host`. Also make use of the `compiler` syntax for
installing a compiler to use for the build.
