-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathsetup.sh
More file actions
executable file
·44 lines (37 loc) · 1.18 KB
/
setup.sh
File metadata and controls
executable file
·44 lines (37 loc) · 1.18 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
#!/bin/bash
# RawBench Setup Script
# This script helps set up the RawBench environment
echo "Setting up RawBench environment..."
# Check if conda/micromamba is available
if command -v micromamba &> /dev/null; then
CONDA_CMD="micromamba"
elif command -v conda &> /dev/null; then
CONDA_CMD="conda"
else
echo "Error: conda or micromamba not found. Please install conda or micromamba first."
exit 1
fi
# Create sigmoni environment
echo "Creating sigmoni conda environment..."
$CONDA_CMD create --name sigmoni python=3.8 -y
$CONDA_CMD run -n sigmoni pip install uncalled4 h5py numpy scipy
# Build SPUMONI
echo "Building SPUMONI..."
cd spumoni_submodule
mkdir -p build
cd build
cmake ..
make -j$(nproc)
cd ../..
# Set environment variables
echo "Setting environment variables..."
export SPUMONI_BUILD_DIR=$(pwd)/spumoni_submodule/build
export PATH=$SPUMONI_BUILD_DIR:$PATH
echo "Setup complete!"
echo ""
echo "To use RawBench:"
echo "1. Activate the environment: $CONDA_CMD activate sigmoni"
echo "2. Set environment variables:"
echo " export SPUMONI_BUILD_DIR=$(pwd)/spumoni_submodule/build"
echo " export PATH=\$SPUMONI_BUILD_DIR:\$PATH"
echo "3. See README.md for usage examples"