Skip to content

Commit

Permalink
Add a conda recipe for pybind11
Browse files Browse the repository at this point in the history
  • Loading branch information
SylvainCorlay committed Mar 1, 2016
1 parent 74982c3 commit 175fa35
Show file tree
Hide file tree
Showing 4 changed files with 31 additions and 1 deletion.
1 change: 0 additions & 1 deletion MANIFEST.in
Original file line number Diff line number Diff line change
@@ -1,2 +1 @@
include setup.py
include include/pybind11/*.h
2 changes: 2 additions & 0 deletions conda.recipe/bld.bat
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
"%PYTHON%" setup.py install --single-version-externally-managed --record=record.txt
if errorlevel 1 exit 1
3 changes: 3 additions & 0 deletions conda.recipe/build.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
#!/bin/bash
${PYTHON} setup.py install --single-version-externally-managed --record=record.txt;

26 changes: 26 additions & 0 deletions conda.recipe/meta.yaml
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit 175fa35

Please sign in to comment.