-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathMakefile
More file actions
29 lines (21 loc) · 760 Bytes
/
Copy pathMakefile
File metadata and controls
29 lines (21 loc) · 760 Bytes
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
.PHONY: all set-permissions setup-environment test-environment clean
ENV_NAME="svgd_env"
# Default target
all: set-permissions setup-environment test-environment clean
## Make setup.sh executable
set-permissions:
@echo "Making setup.sh file executable..."
chmod +x setup.sh
## Setup Python environment
setup-environment:
@echo "Setting up Conda environment..."
./setup.sh
## Check Python environment
test-environment:
@echo "Activating the Conda environment $(ENV_NAME) and running tests..."
@bash -c "source activate $(ENV_NAME); python -m pytest tests/test_environment.py"
## Delete all compiled Python files
clean:
@find . -type f -name "*.py[co]" -delete
@find . -type d -name "__pycache__" -delete
@echo "Cleaning compiled Python files"