lpschedule-generator

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

commit d47ca2bb6a64d08007e709cc94d1523bb90ee82b
parent 93e33ed0b78192abdd2e625f5f19c667d64693be
Author: rsiddharth <rsd@gnu.org>
Date:   Sun, 19 May 2019 10:59:55 -0400

Makefile: Update venv3.

Setup venv3 so that I'm able to provision virtual environments under
/usr/local/virtualenv/ directory (due to OpenBSD's 'wxallowed').

* Makefile (VENV_CMD, VENV_PREFIX): New variables.
(VENV_DIR3): Update variable.
(venv3): Update target.

Diffstat:
Makefile | 8+++++---
1 file changed, 5 insertions(+), 3 deletions(-)

diff --git a/Makefile b/Makefile @@ -6,7 +6,9 @@ # VENV_DIR='.venv' -VENV_DIR3='.venv3' +VENV_CMD=virtualenv +VENV_PREFIX=. +VENV_DIR3=${VENV_PREFIX}/.venv3-lpschedule-generator test: @nosetests @@ -44,8 +46,8 @@ venv: venv3: rm -rf *.egg-info - $(shell [[ -d $(VENV_DIR3) ]] && mv $(VENV_DIR3) $(VENV_DIR3).`date +%s`) - virtualenv --clear --python=python3 $(VENV_DIR3) + ${SHELL} -c '[[ -d $(VENV_DIR3) ]] && mv $(VENV_DIR3) $(VENV_DIR3).`date +%s`' + ${VENV_CMD} --clear --python=python3 $(VENV_DIR3) @echo 'Initialized virtualenv, run' \ 'source '$(VENV_DIR3)'/bin/activate' \ 'to activate the virtual environment'