package:
  name: python_example
  version: {{ environ.get('GIT_DESCRIBE_TAG', '') }}

build:
  number: {{ environ.get('GIT_DESCRIBE_NUMBER', 0) }}
  {% if environ.get('GIT_DESCRIBE_NUMBER', '0') == '0' %}string: py{{ environ.get('PY_VER').replace('.', '') }}_0
  {% else %}string: py{{ environ.get('PY_VER').replace('.', '') }}_{{ environ.get('GIT_BUILD_STR', 'GIT_STUB') }}{% endif %}

source:
  git_url: ../

requirements:
  build:
    - python
    - setuptools
    - pybind11

  run:
    - python
    - vs2015_runtime  # [win]

test:
  imports:
    - python_example

about:
  summary: An example project built with pybind11.
  license_file: LICENSE

package:
  name: python_example
  version: {{ environ.get('GIT_DESCRIBE_TAG', 'dev') }}

build:
  number: {{ environ.get('GIT_DESCRIBE_NUMBER', 0) }}
  {% if environ.get('GIT_DESCRIBE_NUMBER', '0') == '0' %}string: py{{ environ.get('PY_VER').replace('.', '') }}_0
  {% else %}string: py{{ environ.get('PY_VER').replace('.', '') }}_{{ environ.get('GIT_BUILD_STR', 'GIT_STUB') }}{% endif %}

source:
  git_url: ../

requirements:
  build:
    - python
    - setuptools
    - pybind11

  run:
    - python
    - vs2015_runtime  # [win]

test:
  imports:
    - python_example

about:
  summary: An example project built with pybind11.
  license_file: LICENSE

Fix conda "empty version" error
Fix conda "empty version" error
