Skip to content

Commit 89a55ad

Browse files
committed
add conda Mathematica variant
1 parent e91914e commit 89a55ad

3 files changed

Lines changed: 7 additions & 0 deletions

File tree

recipe/build.sh

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,7 @@ positive_integer() {
4040

4141
build_tests="$(cmake_bool "${nrgljubljana_build_tests:-OFF}")"
4242
test_long="$(cmake_bool "${nrgljubljana_test_long:-OFF}")"
43+
enable_mathematica="$(cmake_bool "${nrgljubljana_enable_mathematica:-OFF}")"
4344
strict_floating_point="$(cmake_bool "${nrgljubljana_strict_floating_point:-OFF}")"
4445
cmake_build_type="${nrgljubljana_cmake_build_type:-Release}"
4546
build_jobs="$(job_count "${nrgljubljana_build_jobs:-0}")"
@@ -62,6 +63,7 @@ cmake -S . -B build -G Ninja \
6263
-DCMAKE_CXX_SCAN_FOR_MODULES=OFF \
6364
-DHDF5_ROOT="${PREFIX}" \
6465
-DNRGLJUBLJANA_USE_SYSTEM_DEPS=ON \
66+
-DNRGLJUBLJANA_ENABLE_MATHEMATICA="${enable_mathematica}" \
6567
-DNRGLJUBLJANA_INSTALL_NRGINIT=ON \
6668
-DNRGLJUBLJANA_STRICT_FLOATING_POINT="${strict_floating_point}" \
6769
-DBuild_Tests="${build_tests}" \

recipe/conda_build_config.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,8 @@ nrgljubljana_build_tests:
88
- "OFF"
99
nrgljubljana_test_long:
1010
- "OFF"
11+
nrgljubljana_enable_mathematica:
12+
- "OFF"
1113
nrgljubljana_strict_floating_point:
1214
- "OFF"
1315
nrgljubljana_build_jobs:

recipe/meta.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,9 @@ test:
6666
commands:
6767
- test -x "${PREFIX}/bin/nrg" # [unix]
6868
- test -x "${PREFIX}/bin/adapt" # [unix]
69+
- test -x "${PREFIX}/bin/instantiate" # [unix]
70+
- test -x "${PREFIX}/nrginit/nrginit" # [unix]
71+
- test -f "${PREFIX}/nrginit/nrginit.m" # [unix]
6972
- test -z "$(ldd "${PREFIX}/bin/nrg" | grep 'not found')" # [linux]
7073
- test -f "${PREFIX}/lib/libnrgljubljana_c.so" # [linux]
7174
- test -f "${PREFIX}/lib/libnrgljubljana_c.dylib" # [osx]

0 commit comments

Comments
 (0)