Skip to content

Commit c080a2c

Browse files
committed
Remove 'defaults' channel from environment.yaml
1 parent e241d9d commit c080a2c

3 files changed

Lines changed: 11 additions & 3 deletions

File tree

.github/workflows/ci.yml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,15 @@ jobs:
5151
environment-file: environment.yaml
5252
auto-activate-base: false
5353

54+
- name: Fix libint2 soname (horton compiled against libint2.so.2 / libint2.2.dylib)
55+
run: |
56+
if [ -f "$CONDA_PREFIX/lib/libint2.so" ] && [ ! -f "$CONDA_PREFIX/lib/libint2.so.2" ]; then
57+
ln -sf "$CONDA_PREFIX/lib/libint2.so" "$CONDA_PREFIX/lib/libint2.so.2"
58+
fi
59+
if [ -f "$CONDA_PREFIX/lib/libint2.dylib" ] && [ ! -f "$CONDA_PREFIX/lib/libint2.2.dylib" ]; then
60+
ln -sf "$CONDA_PREFIX/lib/libint2.dylib" "$CONDA_PREFIX/lib/libint2.2.dylib"
61+
fi
62+
5463
- name: Install package + test dependencies
5564
run: pip install -e ".[test]"
5665

environment.yaml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
name: pyxdm
22
channels:
33
- conda-forge
4-
- defaults
54
dependencies:
65
- python>=3.10
76
- pip

pyxdm/core/session.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,8 @@
1313

1414
try:
1515
import horton as ht
16-
except ImportError:
17-
logger.error("horton package is required for XDM calculations")
16+
except ImportError as e:
17+
logger.error("horton package is required for XDM calculations.")
1818
sys.exit(1)
1919

2020

0 commit comments

Comments
 (0)