Skip to content

Commit 5d5a2fa

Browse files
committed
Adds setuptools as a dependency
Includes setuptools as a dependency in the environment file. This ensures that the package installation process has access to required tools and resources.
1 parent c6df19e commit 5d5a2fa

2 files changed

Lines changed: 9 additions & 11 deletions

File tree

devtools/install_torchani.sh

Lines changed: 8 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -70,20 +70,17 @@ df -h .
7070
echo "---- Conda env list ----"
7171
$COMMAND_PKG env list
7272

73-
# 10) Activate and sanity-check
74-
echo ">>> Activating and sanity-checking TANI import"
75-
set +x
76-
if [[ $COMMAND_PKG == micromamba ]]; then
77-
micromamba activate "$ENV_NAME"
78-
else
79-
conda activate "$ENV_NAME"
80-
fi
73+
# 10) Ensure pkg_resources exists, then sanity-check import without shell activation
74+
echo ">>> Ensuring setuptools/pkg_resources is present in '$ENV_NAME'"
75+
$COMMAND_PKG install -n "$ENV_NAME" -y setuptools
8176

82-
python - <<'PYCODE'
77+
echo ">>> Sanity-checking TANI import"
78+
set +x
79+
$COMMAND_PKG run -n "$ENV_NAME" python - <<'PYCODE'
80+
import pkg_resources
8381
import torchani
82+
print("pkg_resources:", pkg_resources.__name__)
8483
print("torchani version:", torchani.__version__)
8584
PYCODE
8685

87-
$COMMAND_PKG deactivate
88-
8986
echo "✅ TANI environment '$ENV_NAME' setup completed at $(date)"

devtools/tani_environment.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,3 +18,4 @@ dependencies:
1818
- ipython
1919
- pyyaml
2020
- typing-extensions
21+
- setuptools

0 commit comments

Comments
 (0)