Skip to content

Commit ed01791

Browse files
committed
feat: conda or mamba-based installation script
1 parent f08d2ec commit ed01791

File tree

3 files changed

+31
-0
lines changed

3 files changed

+31
-0
lines changed

.bashrc

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
2+
conda activate mellea

conda/environment.yml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
2+
name: mellea
3+
channels:
4+
- conda-forge
5+
dependencies:
6+
- python=3.12 # note: at the time of writing, xformer (< vllm) has a broken wheel for 3.13. https://github.com/facebookresearch/xformers/issues/740#issuecomment-2753869337
7+
- uv

conda/install.sh

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
#!/bin/bash -xe
2+
3+
conda=""
4+
if $(which mamba)
5+
then
6+
conda=$(which mamba)
7+
fi
8+
if $(which conda)
9+
then
10+
conda=$(which conda)
11+
fi
12+
if [ -z $conda ]
13+
then
14+
echo "Error: conda or mamba is not installed or is not in the PATH."
15+
fi
16+
17+
echo "using $conda for environment setup"
18+
19+
$conda env remove -y -n mellea || true
20+
$conda env create -f environment.yml
21+
22+
$conda run -n mellea uv pip install -e .[all] --group dev

0 commit comments

Comments
 (0)