{% set version = "0.28.2" %}
{% set buildnumber = 4 %}

package:
  name: cython
  version: {{version}}

source:
  git_url: https://github.com/cython/cython
  git_tag: {{version}}
  patches:
    - intel_changes.patch
    - cython-0.28.2-fix.patch


requirements:
  build:
    - python
    - setuptools       [win]
  run:
    - intelpython
    - python

build:
  script_env:
    - VS90COMNTOOLS    [win]
    - VS140COMNTOOLS   [win]
  number: {{buildnumber}}
  entry_points:
    - cython = Cython.Compiler.Main:setuptools_main
    - cythonize = Cython.Build.Cythonize:main
    - cygdb = Cython.Debugger.Cygdb:main
  features:
    - intel

test:
  files:
    - intel_tester_config.py
    - fib.pyx
  source_files:
    - '*'
  commands:
    - python -c "from intel_tester import test_routine; test_routine.test_exec()"
    - cython --version
  requires:
    - intel_tester
    - numpy
    - coverage  [not win or py3k]

about:
  home: http://www.cython.org/
  license: Apache
  license_file: LICENSE.txt
  summary: The Cython compiler for writing C extensions for the Python language
  description: |
    Cython is an optimising static compiler for both the Python programming
    language and the extended Cython programming language. It makes writing C
    extensions for Python as easy as Python itself.
  doc_url: http://cython.org/#documentation
  dev_url: https://github.com/cython/cython
