From 175fa352f7aede4c950aac486a53852906f339be Mon Sep 17 00:00:00 2001 From: Sylvain Corlay Date: Mon, 1 Feb 2016 15:04:09 -0500 Subject: [PATCH] Add a conda recipe for pybind11 --- MANIFEST.in | 1 - conda.recipe/bld.bat | 2 ++ conda.recipe/build.sh | 3 +++ conda.recipe/meta.yaml | 26 ++++++++++++++++++++++++++ 4 files changed, 31 insertions(+), 1 deletion(-) create mode 100644 conda.recipe/bld.bat create mode 100644 conda.recipe/build.sh create mode 100644 conda.recipe/meta.yaml diff --git a/MANIFEST.in b/MANIFEST.in index 725968040..33c22c84c 100644 --- a/MANIFEST.in +++ b/MANIFEST.in @@ -1,2 +1 @@ -include setup.py include include/pybind11/*.h diff --git a/conda.recipe/bld.bat b/conda.recipe/bld.bat new file mode 100644 index 000000000..b9cd616ce --- /dev/null +++ b/conda.recipe/bld.bat @@ -0,0 +1,2 @@ +"%PYTHON%" setup.py install --single-version-externally-managed --record=record.txt +if errorlevel 1 exit 1 diff --git a/conda.recipe/build.sh b/conda.recipe/build.sh new file mode 100644 index 000000000..175d6f16e --- /dev/null +++ b/conda.recipe/build.sh @@ -0,0 +1,3 @@ +#!/bin/bash +${PYTHON} setup.py install --single-version-externally-managed --record=record.txt; + diff --git a/conda.recipe/meta.yaml b/conda.recipe/meta.yaml new file mode 100644 index 000000000..218391f0b --- /dev/null +++ b/conda.recipe/meta.yaml @@ -0,0 +1,26 @@ +package: + name: pybind11 + 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 + + run: + - python + +test: + imports: + - pybind11 + +about: + home: https://github.com/wjakob/pybind11/ + summary: Seamless operability between C++11 and Python