Browse Source

Add a conda recipe for pbtest, showing how to require the VC++ runtime

master
Sylvain Corlay 9 years ago
parent
commit
7eb0aac172
  1. 5
      conda.recipe/bld.bat
  2. 3
      conda.recipe/build.sh
  3. 29
      conda.recipe/meta.yaml

5
conda.recipe/bld.bat

@ -0,0 +1,5 @@ @@ -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

3
conda.recipe/build.sh

@ -0,0 +1,3 @@ @@ -0,0 +1,3 @@
#!/bin/bash
${PYTHON} setup.py install;

29
conda.recipe/meta.yaml

@ -0,0 +1,29 @@ @@ -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
Loading…
Cancel
Save