Merge lp:~soren/nova/build-tarball into lp:~hudson-openstack/nova/trunk

Proposed by Soren Hansen
Status: Merged
Approved by: Monty Taylor
Approved revision: 177
Merged at revision: 181
Proposed branch: lp:~soren/nova/build-tarball
Merge into: lp:~hudson-openstack/nova/trunk
Diff against target: 21 lines (+9/-0)
1 file modified
Makefile (+9/-0)
To merge this branch: bzr merge lp:~soren/nova/build-tarball
Reviewer Review Type Date Requested Status
Monty Taylor (community) Approve
Review via email: mp+31096@code.launchpad.net

Commit message

Add sdist make target to build the MANIFEST.in file.

Description of the change

Add a 'sdist' make target. It first generates a MANIFEST.in based on what's in bzr, then calls python setup.py sdist.

I fully expect this will change in the future, but I think it'll do for now.

To post a comment you must log in.
Revision history for this message
Monty Taylor (mordred) wrote :

Excellent.

review: Approve

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
=== modified file 'Makefile'
--- Makefile 2010-07-27 10:26:53 +0000
+++ Makefile 2010-07-27 22:03:49 +0000
@@ -24,8 +24,17 @@
24clean-all: clean24clean-all: clean
25 rm -rf $(venv)25 rm -rf $(venv)
2626
27MANIFEST.in:
28 [ -d .bzr ] || (echo "Must be a bzr checkout" ; exit 1)
29 bzr ls --kind=file -VR | while read f; do echo include "$$f"; done > $@
30
31sdist: MANIFEST.in
32 python setup.py sdist
33
27$(venv):34$(venv):
28 @echo "You need to install the Nova virtualenv before you can run this."35 @echo "You need to install the Nova virtualenv before you can run this."
29 @echo ""36 @echo ""
30 @echo "Please run tools/install_venv.py"37 @echo "Please run tools/install_venv.py"
31 @exit 138 @exit 1
39
40.PHONY: MANIFEST.in