# Some useful notes can be found at https://conda-forge.hackpad.com/BLAS-Numpy-Friends-86De62hoNdT

{% set variant = os.environ.get('BLAS_VARIANT', 'openblas') %}

package:
  name: blas
  version: 1.0

build:
  # We mustn't use the build number in the blas package - because we are defining the string,
  # manually we would not be producing unique filenames.
  number: 0
  string: {{ variant }}
  track_features:
    # The "blas" package must always track a feature, else it will be
    # prioritised over all others.
    - blas_{{ variant }}

{% if variant != "none" %}
requirements:
  run:
    - {{ variant }}
{% endif %}

test: {}

about:
  home: https://github.com/conda-forge/blas-feedstock
  license: BSD 3-clause
  summary: Metapackage to select the BLAS variant. Use conda's pinning mechanism in your environment to control which variant you want.

extra:
  recipe-maintainers:
    - jakirkham
    - pelson
