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:
parent
81c58c8b27
commit
5adeaeb56b
|
@ -59,3 +59,4 @@ target/
|
|||
# subiquity installer images
|
||||
installer/*.img
|
||||
logs/*
|
||||
venv
|
||||
|
|
18
Makefile
18
Makefile
|
@ -2,6 +2,10 @@
|
|||
# Makefile for subiquity
|
||||
#
|
||||
PYTHONSRC=subiquity
|
||||
PYTHONPATH=$(shell pwd):$(shell pwd)/probert:$PYTHONPATH
|
||||
VENVPATH=$(shell pwd)/venv
|
||||
VENVACTIVATE=$(VENVPATH)/bin/activate
|
||||
TOPDIR=$(shell pwd)
|
||||
STREAM=daily
|
||||
RELEASE=wily
|
||||
ARCH=amd64
|
||||
|
@ -10,8 +14,18 @@ INSTALLER_RESOURCES += $(shell find installer/resources -type f)
|
|||
.PHONY: run clean
|
||||
|
||||
|
||||
ui-view:
|
||||
(PYTHONPATH=$(shell pwd):$(shell pwd)/probert bin/$(PYTHONSRC))
|
||||
setup-virtualenv:
|
||||
@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:
|
||||
echo "Running flake8 lint tests..."
|
||||
|
|
|
@ -0,0 +1,6 @@
|
|||
urwid==1.3.0
|
||||
pyudev==0.16.1
|
||||
netifaces==0.10.4
|
||||
nose-cov
|
||||
nose
|
||||
flake8
|
Loading…
Reference in New Issue