Skip to content

Instantly share code, notes, and snippets.

@masouduut94
Created October 12, 2024 22:55
Show Gist options
  • Save masouduut94/9391872c6b48fabd9afb37905a191aef to your computer and use it in GitHub Desktop.
Save masouduut94/9391872c6b48fabd9afb37905a191aef to your computer and use it in GitHub Desktop.
bash script to set up the so modules.
#!/bin/bash
# Ensure the script stops if any command fails
set -e
# Activate the Conda environment
source ~/anaconda3/etc/profile.d/conda.sh
conda activate py11
# Build the Cython file
python setup.py build_ext --inplace
# (Optional) Deactivate the Conda environment after the build
conda deactivate
# Remove build directories and its subdirectories
rm -r build/*
rmdir build
rm evaluator.c
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment