{% set version = "0.53.1" %}
{% set buildnumber = 0 %}
{% set llvmlitever = "0.36.*" %}

package:
    name: numba
    version: {{ version }}

source:
    git_url: https://github.com/IntelPython/numba.git
    git_rev: release0.53-patched  # [not osx]
    git_rev: {{ version }}  # [osx]
    patches:
      # Maintainer: Butygin Ivan
      - 0001-Tbb-legacy.patch

      # Maintainer: Butygin Ivan
      - task_scheduler_init_fork_safety.patch

      # Maintainer: Smirnov Vyacheslav
      - update_setup.patch

      # Maintainer: Smirnov Vyacheslav
      - update_readme.patch # [not osx]

build:
    number: {{ buildnumber }}
    skip: True  # [py27]
    entry_points:
      - pycc = numba.pycc:main
      - numba = numba.misc.numba_entry:main
    script_env:
      - WHEELS_OUTPUT_FOLDER
      - PY_VCRUNTIME_REDIST  # [win]
    missing_dso_whitelist:   # [osx]
      # optional dependency: required only when omp is chosen as the backend for
      # the threading layer
      - lib/libiomp5.dylib   # [osx]

requirements:
  # build and run dependencies are duplicated to avoid setuptools issues
  # when we also set install_requires in setup.py
    build:
      - {{ compiler('cxx') }}   # [linux]
      - {{ compiler('c') }}     # [not osx]
      - {{ compiler('icc') }}   # [win]
    host:
      - python
      - numpy
      - setuptools
      - tbb-devel
      - llvmlite {{ llvmlitever }}
      - wheel
    run:
      - python
      - numpy >=1.15
      - tbb4py
      - llvmlite {{ llvmlitever }}
      - intelpython >=2019.0
      # needed for pkg_resources
      - setuptools

test:
    requires:
      - intel_tester
      - jinja2
      - pytest
      # Required to test optional Numba features
      - cffi
      - scipy
      - ipython
      - setuptools
    files:
      - intel_tester_config.py
      - mandel.py
    imports:
      - numba

about:
    home: http://numba.pydata.org/
    license: BSD-2-Clause
    license_file: LICENSE
    summary: a just-in-time Python function compiler based on LLVM
    description: |
        <strong>LEGAL NOTICE: Use of this software package is subject to the
        software license agreement (as set forth above, in the license section of
        the installed Conda package and/or the README file) and all notices,
        disclaimers or license terms for third party or open source software
        included in or with the software.</strong>
        <br/><br/>
        EULA: <a href="https://opensource.org/licenses/BSD-2-Clause" target="_blank">BSD-2-Clause</a>
        <br/><br/>
