Skip to content

Commit 7eb0aac

Browse files
committed
Add a conda recipe for pbtest, showing how to require the VC++ runtime
1 parent a185aee commit 7eb0aac

File tree

3 files changed

+37
-0
lines changed

3 files changed

+37
-0
lines changed

conda.recipe/bld.bat

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
call "%VS140COMNTOOLS%\..\..\VC\vcvarsall.bat" x64
2+
set DISTUTILS_USE_SDK=1
3+
set MSSdk=1
4+
"%PYTHON%" setup.py install
5+
if errorlevel 1 exit 1

conda.recipe/build.sh

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
#!/bin/bash
2+
${PYTHON} setup.py install;
3+

conda.recipe/meta.yaml

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
package:
2+
name: pbtest
3+
version: {{ environ.get('GIT_DESCRIBE_TAG', '') }}
4+
5+
build:
6+
number: {{ environ.get('GIT_DESCRIBE_NUMBER', 0) }}
7+
{% if environ.get('GIT_DESCRIBE_NUMBER', '0') == '0' %}string: py{{ environ.get('PY_VER').replace('.', '') }}_0
8+
{% else %}string: py{{ environ.get('PY_VER').replace('.', '') }}_{{ environ.get('GIT_BUILD_STR', 'GIT_STUB') }}{% endif %}
9+
10+
source:
11+
git_url: ../
12+
13+
requirements:
14+
build:
15+
- python
16+
- setuptools
17+
- pybind11
18+
19+
run:
20+
- python
21+
- vs2015_runtime # [win]
22+
23+
test:
24+
imports:
25+
- pbtest
26+
27+
about:
28+
summary: An example project built with pybind11.
29+
license_file: LICENSE

0 commit comments

Comments
 (0)