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 dagmc #55

Draft
wants to merge 1 commit into
base: rc
Choose a base branch
from
Draft
Show file tree
Hide file tree
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
3 changes: 3 additions & 0 deletions recipe/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,9 @@ if [[ -n "$enable_moab" && "$enable_moab" != "nomoab" ]]; then
export CONFIGURE_ARGS="--moab=${PREFIX} ${CONFIGURE_ARGS}"
fi

if [[ -n "$enable_dagmc" && "$enable_dagmc" != "nodagmc" ]]; then
export CONFIGURE_ARGS="--dagmc=${PREFIX} ${CONFIGURE_ARGS}"
fi
# Install PyNE
export VERBOSE=1
${PYTHON} setup.py install \
Expand Down
6 changes: 3 additions & 3 deletions recipe/conda_build_config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@ enable_moab:
- nomoab
- moab

enable_openmc:
- noopenmc
- openmc
enable_dagmc:
- nodagmc
- dagmc

channel_targets:
- conda-forge pyne_rc
16 changes: 9 additions & 7 deletions recipe/meta.yaml
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
{% set org = "pyne" %}
{% set version = "0.7.0" %}
{% set build = "9" %}
{% set build = "10" %}
{% set sha256 = "c29de9ab374dc38e5dcd9c7ea8b15a3d916fb2237b8928f1b5526ea74906cb29" %}

{% set rcnum = "3" %}

# ensure moab is defined (needed for conda-smithy recipe-lint)
{% set enable_moab = enable_moab or 'nomoab' %}
{% set enable_openmc = enable_openmc or 'noopenmc' %}
{% set enable_dagmc = enable_dagmc or 'nodagmc' %}


package:
Expand All @@ -27,13 +27,14 @@ build:
{% set moab_prefix = "nomoab" %}
{% endif %}

{% if enable_openmc == 'openmc' %}
{% set openmc_prefix = "openmc" %}
{% if enable_dagmc == 'dagmc' %}
{% set dagmc_prefix = "dagmc" %}
{% set moab_prefix = "moab" %}
{% else %}
{% set openmc_prefix = "noopenmc" %}
{% set dagmc_prefix = "nodagmc" %}
{% endif %}

string: "{{ moab_prefix }}_{{ openmc_prefix }}py{{ CONDA_PY }}h{{ PKG_HASH }}_{{ build }}"
string: "{{ moab_prefix }}_{{ dagmc_prefix }}py{{ CONDA_PY }}h{{ PKG_HASH }}_{{ build }}"

skip: True # [win or osx]
detect_binary_files_with_prefix: true
Expand All @@ -52,6 +53,7 @@ requirements:
- pytables
- cython
- moab # [ enable_moab == 'moab']
- dagmc # [ enable_dagmc == 'dagmc']
run:
- python
- hdf5
Expand All @@ -61,7 +63,7 @@ requirements:
- future
- jinja2
- moab # [ enable_moab == 'moab']
- openmc # [ enable_openmc == 'openmc']
- dagmc # [ enable_dagmc == 'dagmc']
test:
requires:
- nose
Expand Down