From 4fa6942f05b975dd63ea32596d1abd9e59bc84f0 Mon Sep 17 00:00:00 2001 From: rsiddharth Date: Sun, 19 Aug 2018 13:24:16 +0000 Subject: Makefile: Redefine venv. --- Makefile | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) (limited to 'Makefile') diff --git a/Makefile b/Makefile index b624166..8f2ba7e 100644 --- a/Makefile +++ b/Makefile @@ -17,6 +17,9 @@ # You should have received a copy of the GNU General Public License # along with lpschedule-generator (see COPYING). If not, see # . +VENV_DIR='.venv' + + test: @nosetests @@ -43,7 +46,12 @@ upload-docs: docs .PHONY: docs upload-docs venv: - virtualenv --clear --python=python2.7 venv + rm -rf *.egg-info + $(shell [[ -d $(VENV_DIR) ]] && mv $(VENV_DIR) $(VENV_DIR).`date +%s`) + virtualenv --clear --python=python2.7 $(VENV_DIR) + @echo 'Initialized virtualenv, run' \ + 'source '$(VENV_DIR)'/bin/activate' \ + 'to activate the virtual environment' .PHONY: venv clean-build: -- cgit v1.2.3