Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add python bindings #4

Closed
wants to merge 6 commits into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 9 additions & 2 deletions recipe/meta.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,11 @@ package:
version: {{ version }}

source:
url: https://hepmc.web.cern.ch/hepmc/releases/hepmc{{ version }}.tgz
url: https://hepmc.web.cern.ch/releases/hepmc{{ version }}.tgz
sha256: 86b66ea0278f803cde5774de8bd187dd42c870367f1cbf6cdaec8dc7cf6afc10
folder: source
build:
number: 1
number: 2
skip: True # [win]

requirements:
Expand All @@ -20,6 +20,11 @@ requirements:
- {{ stdlib("c") }}
- cmake
- make
- python
host:
- python
run:
- python


test:
Expand All @@ -29,6 +34,7 @@ test:
- {{ compiler('c') }}
- {{ compiler('cxx') }}
- {{ stdlib("c") }}
- python
commands:
# Workaround for lack of CONDA_BUILD_SYSROOT variable in staged recipes
- cd source/examples
Expand All @@ -38,6 +44,7 @@ test:
- ${CXX} example_EventSelection.cc -o example_EventSelection -I${CONDA_PREFIX}/include -L${CONDA_PREFIX}/lib -lHepMC
# example_BuildEventFromScratch
- ${CXX} example_BuildEventFromScratch.cc -o example_BuildEventFromScratch -I${CONDA_PREFIX}/include -L${CONDA_PREFIX}/lib -lHepMC
- python -c "import sys; print(f'Python {sys.version} is working.')"

about:
home: http://hepmc.web.cern.ch/hepmc/
Expand Down