From 4a94337c7931b02f863e761d4fc043bc02f7ff2c Mon Sep 17 00:00:00 2001 From: Tim 'mithro' Ansell Date: Thu, 11 Oct 2018 20:12:48 +0000 Subject: [PATCH] Add target for a Python virtualenv. Signed-off-by: Tim 'mithro' Ansell --- .gitignore | 1 + Makefile | 7 ++++++- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/.gitignore b/.gitignore index 1e7f24db..26ba6eed 100644 --- a/.gitignore +++ b/.gitignore @@ -1,3 +1,4 @@ +/env/ /build/ .Xil # Ignore database directories _except_ for their settings diff --git a/Makefile b/Makefile index 2028b5d9..bd6f054c 100644 --- a/Makefile +++ b/Makefile @@ -1,6 +1,11 @@ CLANG_FORMAT ?= clang-format -.PHONY: database format clean +.PHONY: database format clean env + +env: + virtualenv --python=python3 env + . env/bin/activate; pip install -r requirements.txt + ln -sf $(PWD)/prjxray env/lib/python3.*/site-packages/ build: git submodule update --init --recursive