Use virtualenv to make use of urwid 1.3.0 and the asyncio library

Signed-off-by: Adam Stokes <adam.stokes@ubuntu.com>
This commit is contained in:
Adam Stokes 2015-06-30 12:52:31 -04:00
parent 81c58c8b27
commit 5adeaeb56b
4 changed files with 23 additions and 2 deletions

1
.gitignore vendored
View File

@ -59,3 +59,4 @@ target/
# subiquity installer images # subiquity installer images
installer/*.img installer/*.img
logs/* logs/*
venv

View File

@ -2,6 +2,10 @@
# Makefile for subiquity # Makefile for subiquity
# #
PYTHONSRC=subiquity PYTHONSRC=subiquity
PYTHONPATH=$(shell pwd):$(shell pwd)/probert:$PYTHONPATH
VENVPATH=$(shell pwd)/venv
VENVACTIVATE=$(VENVPATH)/bin/activate
TOPDIR=$(shell pwd)
STREAM=daily STREAM=daily
RELEASE=wily RELEASE=wily
ARCH=amd64 ARCH=amd64
@ -10,8 +14,18 @@ INSTALLER_RESOURCES += $(shell find installer/resources -type f)
.PHONY: run clean .PHONY: run clean
ui-view: setup-virtualenv:
(PYTHONPATH=$(shell pwd):$(shell pwd)/probert bin/$(PYTHONSRC)) @if [ ! -d $(VENVPATH) ]; then virtualenv venv; fi
(/bin/bash -c "source $(VENVACTIVATE)")
install-requirements: setup-virtualenv
@pip install -rrequirements.txt -q
upgrade-pip: setup-virtualenv
@pip install --upgrade pip
ui-view: install-requirements
(PYTHONPATH=$(PYTHONPATH) bin/$(PYTHONSRC))
lint: lint:
echo "Running flake8 lint tests..." echo "Running flake8 lint tests..."

6
requirements.txt Normal file
View File

@ -0,0 +1,6 @@
urwid==1.3.0
pyudev==0.16.1
netifaces==0.10.4
nose-cov
nose
flake8