Created
October 12, 2024 22:55
-
-
Save masouduut94/9391872c6b48fabd9afb37905a191aef to your computer and use it in GitHub Desktop.
bash script to set up the so modules.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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