Skip to content

Commit

Permalink
Use "." instead of "source" in Makefile
Browse files Browse the repository at this point in the history
  • Loading branch information
rafelafrance committed Apr 10, 2024
1 parent bea26cf commit 45d6ff3
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -7,21 +7,23 @@ PYTHON=./$(VENV)/bin/$(PY_VER)
PIP_INSTALL=$(PYTHON) -m pip install
SPACY_MODEL=$(PYTHON) -m spacy download en_core_web_sm
BASE=pip setuptools wheel
ACTIVATE=. $(VENV)/bin/activate

test:
$(ACTIVATE)
export MOCK_DATA=1
$(PYTHON) -m unittest discover
export MOCK_DATA=0

install: venv
source $(VENV)/bin/activate
$(ACTIVATE)
$(PIP_INSTALL) -U $(BASE)
$(PIP_INSTALL) .
$(PIP_INSTALL) git+/~https://github.com/rafelafrance/common_utils.git@main#egg=common_utils
$(SPACY_MODEL)

dev: venv
source $(VENV)/bin/activate
$(ACTIVATE)
$(PIP_INSTALL) -U $(BASE)
$(PIP_INSTALL) -e ../../misc/common_utils
$(PIP_INSTALL) -e .[dev]
Expand Down

0 comments on commit 45d6ff3

Please sign in to comment.