Permalink
Find file
Fetching contributors…
Cannot retrieve contributors at this time
18 lines (11 sloc) 460 Bytes
PROJECT_NAME=$(shell basename $(PWD))
# If VENV_ROOT is defined in the environment, use it to find the VENV
# directory, else consider the current dir as the venv dir.
VENV_ROOT ?= $(shell dirname $(PWD))
# Use the active virtualenv or the one inside the project
VIRTUAL_ENV ?= $(VENV_ROOT)/$(PROJECT_NAME)
VENV=$(VIRTUAL_ENV)
venv:
virtualenv --no-site-packages $(VENV)
$(VENV)/bin/pip install -r requirements.txt
$(VENV)/bin/python setup.py develop