Merge pull request #118 from SylvainCorlay/conda_recipe

Add a conda recipe for pybind11
This commit is contained in:
Wenzel Jakob 2016-03-08 17:44:38 +01:00
commit fdc00f5077
4 changed files with 31 additions and 1 deletions

View File

@ -1,2 +1 @@
include setup.py
include include/pybind11/*.h include include/pybind11/*.h

2
conda.recipe/bld.bat Normal file
View File

@ -0,0 +1,2 @@
"%PYTHON%" setup.py install --single-version-externally-managed --record=record.txt
if errorlevel 1 exit 1

3
conda.recipe/build.sh Normal file
View File

@ -0,0 +1,3 @@
#!/bin/bash
${PYTHON} setup.py install --single-version-externally-managed --record=record.txt;

26
conda.recipe/meta.yaml Normal file
View File

@ -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