{% set use_cuda = environ.get('USE_CUDA', False) %}
{% set package_name = 'dgl' + environ.get('DGL_PACKAGE_SUFFIX', '') %}
package:
  name: {{ package_name }}
  version: "0.7.2"

source:
  git_rev: 0.7.x
  git_url: https://github.com/dmlc/dgl.git

requirements:
  build:
    - python {{ python }}
    - setuptools
    - cmake
    - git
    - cython
  run:
    - python
    - numpy
    - scipy
    - networkx
    - vs2015_runtime # [win]
    - cudatoolkit {{ CUDA_VER }} # [use_cuda]

build:
  script_env:
    - USE_CUDA
    - CUDA_VER

about:
  home: https://github.com/dmlc/dgl.git
  license_file: {{ environ.get('SRC_DIR') }}/LICENSE
  license: Apache
