Skip to content

Commit

Permalink
Make Rename venv and make target
Browse files Browse the repository at this point in the history
  • Loading branch information
foursixnine committed Jan 31, 2024
1 parent d436336 commit 90ef423
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -36,15 +36,15 @@ checkstyle: black lint
.PHONY: test
test: only-test checkstyle

venv = qem-bot
environment:
if [ ! -d "$(venv)" ]; then virtualenv -p python3 $(venv); fi
. $(venv)/bin/activate && pip install -r requirements-dev.txt -r requirements.txt
VENV = qem-bot
.PHONY environment:
if [ ! -d "$(VENV)" ]; then virtualenv -p python3 $(venv); fi
. $(VENV)/bin/activate && pip install -r requirements-dev.txt -r requirements.txt

# devel: environment
# maybe use Makefile.venv instead to get a shell with virtualenv
# maybe use Makefile.VENV instead to get a shell with virtualenv
# # we need to detect what shell we are using
# shell=$$(basename $$SHELL); \
# echo "Activating virtualenv for $$shell"; \
# . $(venv) && \
# . $(VENV) && \
# exec $($(SHELL))

0 comments on commit 90ef423

Please sign in to comment.