Adds a Makefile to fill dependencies for testing.

Depends upon pip being installed, but pip is pretty much
the standard nowadays and is just an easy_install away if
it isn't there.

The only dependency installed on to the system is
virtualenv which is used to make the other dependencies
local to the current environment.

Does not remove the need to install redis by hand, though
I am in favor of making that possible (using aptitude on
linux and brew on os x)

I look forward to cutting away at some of these
dependencies in further commits.
This commit is contained in:
Andy Smith 2010-07-23 04:44:23 +02:00
parent 47d859a572
commit a766736b79
2 changed files with 41 additions and 0 deletions

27
Makefile Normal file
View File

@ -0,0 +1,27 @@
venv=.venv
with_venv=source $(venv)/bin/activate
installed=$(venv)/lib/python2.6/site-packages
twisted=$(installed)/twisted/__init__.py
test: python-dependencies $(twisted)
$(with_venv) && python run_tests.py
clean:
rm -rf _trial_temp
rm -rf keys
rm -rf instances
rm -rf networks
clean-all: clean
rm -rf $(venv)
python-dependencies: $(venv)
pip install -q -E $(venv) -r tools/pip-requires
$(venv):
pip install -q virtualenv
virtualenv -q --no-site-packages $(venv)
$(twisted):
pip install -q -E $(venv) http://nova.openstack.org/Twisted-10.0.0Nova.tar.gz

14
tools/pip-requires Normal file
View File

@ -0,0 +1,14 @@
IPy==0.70
M2Crypto==0.20.2
amqplib==0.6.1
anyjson==0.2.4
boto==2.0b1
carrot==0.10.5
lockfile==0.8
mox==0.5.0
python-daemon==1.5.5
python-gflags==1.3
redis==2.0.0
tornado==1.0
wsgiref==0.1.2
zope.interface==3.6.1