From 7eb0aac17226b6676e4629141f036e59144d1c91 Mon Sep 17 00:00:00 2001 From: Sylvain Corlay Date: Tue, 29 Mar 2016 02:02:18 -0400 Subject: [PATCH] Add a conda recipe for pbtest, showing how to require the VC++ runtime --- conda.recipe/bld.bat | 5 +++++ conda.recipe/build.sh | 3 +++ conda.recipe/meta.yaml | 29 +++++++++++++++++++++++++++++ 3 files changed, 37 insertions(+) create mode 100644 conda.recipe/bld.bat create mode 100644 conda.recipe/build.sh create mode 100644 conda.recipe/meta.yaml diff --git a/conda.recipe/bld.bat b/conda.recipe/bld.bat new file mode 100644 index 0000000..5ddc156 --- /dev/null +++ b/conda.recipe/bld.bat @@ -0,0 +1,5 @@ +call "%VS140COMNTOOLS%\..\..\VC\vcvarsall.bat" x64 +set DISTUTILS_USE_SDK=1 +set MSSdk=1 +"%PYTHON%" setup.py install +if errorlevel 1 exit 1 diff --git a/conda.recipe/build.sh b/conda.recipe/build.sh new file mode 100644 index 0000000..89fce62 --- /dev/null +++ b/conda.recipe/build.sh @@ -0,0 +1,3 @@ +#!/bin/bash +${PYTHON} setup.py install; + diff --git a/conda.recipe/meta.yaml b/conda.recipe/meta.yaml new file mode 100644 index 0000000..037c558 --- /dev/null +++ b/conda.recipe/meta.yaml @@ -0,0 +1,29 @@ +package: + name: pbtest + 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: + - pbtest + +about: + summary: An example project built with pybind11. + license_file: LICENSE