summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorrsiddharth <rsd@gnu.org>2018-08-23 02:56:47 +0000
committerrsiddharth <rsd@gnu.org>2018-08-23 02:56:47 +0000
commit3e944ab60684857a1995bba031935f1ddcca7a3f (patch)
tree20666baf4654ca58506723c64d4190b10801fa4e
parent3380093ed135ff42e26956c3e7900a6da2787928 (diff)
Makefile: Add venv3.
-rw-r--r--Makefile11
1 files changed, 10 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index 66c0291..c641d42 100644
--- a/Makefile
+++ b/Makefile
@@ -18,7 +18,7 @@
# along with lpschedule-generator (see COPYING). If not, see
# <http://www.gnu.org/licenses/>.
VENV_DIR='.venv'
-
+VENV_DIR3='.venv3'
test:
@nosetests
@@ -54,6 +54,15 @@ venv:
'to activate the virtual environment'
.PHONY: venv
+venv3:
+ rm -rf *.egg-info
+ $(shell [[ -d $(VENV_DIR3) ]] && mv $(VENV_DIR3) $(VENV_DIR3).`date +%s`)
+ virtualenv --clear --python=python3 $(VENV_DIR3)
+ @echo 'Initialized virtualenv, run' \
+ 'source '$(VENV_DIR3)'/bin/activate' \
+ 'to activate the virtual environment'
+.PHONY: venv3
+
clean-build:
@rm -rf build/
@rm -rf dist/