{% set name = 'bob.bio.base' %}
{% set project_dir = environ.get('RECIPE_DIR') + '/..' %}

package:
  name: {{ name }}
  version: {{ environ.get('BOB_PACKAGE_VERSION', '0.0.1') }}

build:
  entry_points:
  number: {{ environ.get('BOB_BUILD_NUMBER', 0) }}
  run_exports:
    - {{ pin_subpackage(name) }}
  script:
    - cd {{ project_dir }}
    {% if environ.get('BUILD_EGG') %}
    - python setup.py sdist --formats=zip
    {% endif %}
    - python setup.py install --single-version-externally-managed --record record.txt

requirements:
  host:
    - python {{ python }}
    - setuptools {{ setuptools }}
    - bob.blitz
    - bob.core
    - bob.db.base >2.2.0
    - bob.extension
    - bob.io.base
    - bob.learn.activation
    - bob.learn.em
    - bob.learn.linear
    - bob.math
    - bob.measure
    - bob.sp
    - bob.pipelines
    - scipy {{ scipy }}
    - six {{ six }}
  run:
    - python
    - setuptools
    - scipy
    - bob.pipelines
    - six

test:
  imports:
    - {{ name }}
  commands:
    - bob bio --help
    - bob bio annotate --help
    - bob bio metrics --help
    - bob bio roc --help
    - bob bio det --help
    - bob bio epc --help
    - bob bio hist --help
    - bob bio cmc --help
    - bob bio dir --help
    - bob bio gen --help
    - bob bio evaluate --help
    - bob bio sort --help
    - nosetests --with-coverage --cover-package={{ name }} -sv {{ name }}
    - sphinx-build -aEW {{ project_dir }}/doc {{ project_dir }}/sphinx
    - sphinx-build -aEb doctest {{ project_dir }}/doc sphinx
    - conda inspect linkages -p $PREFIX {{ name }}  # [not win]
    - conda inspect objects -p $PREFIX {{ name }}  # [osx]
  requires:
    - bob-devel {{ bob_devel }}.*
    - nose
    - coverage
    - sphinx
    - sphinx_rtd_theme
    - bob.io.image
    - bob.db.atnt
    - matplotlib
    - gridtk

about:
  home: https://www.idiap.ch/software/bob/
  license: BSD License
  summary: Tools for running biometric recognition experiments
  license_family: BSD
