lpschedule-generator

libreplanet schedule generator - ricketyspace.net/lpschedule-generator
git clone git://git.ricketyspace.net/lpschedule-generator.git
Log | Files | Refs

commit 4fa6942f05b975dd63ea32596d1abd9e59bc84f0
parent 3052bad5d78779440eb4d0b00aae61fce6795a18
Author: rsiddharth <rsd@gnu.org>
Date:   Sun, 19 Aug 2018 13:24:16 +0000

Makefile: Redefine venv.

Diffstat:
Makefile | 10+++++++++-
1 file changed, 9 insertions(+), 1 deletion(-)

diff --git 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 # <http://www.gnu.org/licenses/>. +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: