mirror of
https://github.com/thib8956/advent-of-code.git
synced 2026-11-27 00:46:34 +00:00
refactor: move init command to helper.py
This commit is contained in:
1 parent
8bdde87767
commit
50edd189ac
6 files changed
+95
-81
No files matched your search
@@ -11,10 +11,12 @@ all: venv install
|
||||
|
||||
# Create virtual environment if it doesn't exist
|
||||
venv:
|
||||
@echo "Creating virtual environment..."
|
||||
@if [ ! -d $(VENV_DIR) ]; then \
|
||||
echo "Creating virtual environment..."; \
|
||||
python3 -m venv $(VENV_DIR); \
|
||||
fi
|
||||
@echo "Source virtualenv with:"
|
||||
@echo "source $(VENV_DIR)/bin/activate"
|
||||
|
||||
install: venv
|
||||
@$(PYTHON) -m pip install --upgrade pip
|
||||
@@ -23,4 +25,3 @@ install: venv
|
||||
clean:
|
||||
@echo "Removing virtual environment..."
|
||||
@rm -rf $(VENV_DIR)
|
||||
|
||||
Reference in new issue
Block a user