{% set version = "3.4.2" %}
{% set buildnumber = 2 %}

### If you change the iccver here, you must also set the path correctly in build.sh / bld.bat!!!
{% set iccver = "16.0.3" %}    [unix or py35]
{% set iccver = "13.1.5" %}    [win and py27]

package:
    name: pytables
    version: {{version}}

source:
    fn: PyTables-v{{ version }}.tar.gz
    url: https://github.com/PyTables/PyTables/archive/v{{ version }}.tar.gz
    sha256: 629a0227bb2b315c5d97629073696609eaee41d0fc89e03f997412613cd46d3a
    patches:
        - intel_update_zlib_c_blosc.patch
        - intel_build_with_icc.patch            [linux]
    #    - intel_pandas_compat.patch

build:
    number: {{buildnumber}}
    detect_binary_files_with_prefix: False
    entry_points:
      - pt2to3 = tables.scripts.pt2to3:main
      - ptdump = tables.scripts.ptdump:main
      - ptrepack = tables.scripts.ptrepack:main
      - pttree = tables.scripts.pttree:main
    features:
      - intel

requirements:
    build:
      - python
      - setuptools
      - six
      - numpy x.x
      - cython
      - zlib 1.2.*
      - bzip2 1.0.6
      - numexpr
      - hdf5 1.10.1
      - icc_rt                                  [linux]
    run:
      - python
      - six
      - numpy x.x
      - numexpr
      - hdf5 1.10.1
      - zlib 1.2.*
      - bzip2
      - icc_rt >={{iccver}}                       [linux]
      - intelpython

test:
    files:
      - intel_tester_config.py
    commands:
      - python -c "from intel_tester import test_routine; test_routine.test_exec()"
      - pt2to3 -h
      - ptdump -h
      - ptrepack -h
      - pttree -h
    requires:
      - intel_tester
      - setuptools
      - mock
    #imports:
    #  - tables

about:
    home: http://www.pytables.org
    license: BSD
    license_file: LICENSE.txt
    summary: Manage hierarchical datasets to cope with large amounts of data
    description: |
        PyTables is a package for managing hierarchical datasets and designed to
        efficiently and easily cope with extremely large amounts of data. PyTables
        is built on top of the HDF5 library, using the Python language and the
        NumPy package.
    doc_url: http://www.pytables.org/
    dev_url: https://github.com/PyTables
