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
1=== modified file 'Makefile'
2--- Makefile 2010-07-27 10:26:53 +0000
3+++ Makefile 2010-07-27 22:03:49 +0000
4@@ -24,8 +24,17 @@
5 clean-all: clean
6 rm -rf $(venv)
7
8+MANIFEST.in:
9+ [ -d .bzr ] || (echo "Must be a bzr checkout" ; exit 1)
10+ bzr ls --kind=file -VR | while read f; do echo include "$$f"; done > $@
11+
12+sdist: MANIFEST.in
13+ python setup.py sdist
14+
15 $(venv):
16 @echo "You need to install the Nova virtualenv before you can run this."
17 @echo ""
18 @echo "Please run tools/install_venv.py"
19 @exit 1
20+
21+.PHONY: MANIFEST.in