Merge lp:~gary/launchpad/ec2buildout into lp:launchpad

Proposed by Gary Poster
Status: Merged
Approved by: Māris Fogels
Approved revision: no longer in the source branch.
Merged at revision: 10979
Proposed branch: lp:~gary/launchpad/ec2buildout
Merge into: lp:launchpad
Diff against target: 31 lines (+1/-13)
2 files modified
setup.py (+1/-0)
utilities/ec2 (+0/-13)
To merge this branch: bzr merge lp:~gary/launchpad/ec2buildout
Reviewer Review Type Date Requested Status
Māris Fogels (community) Approve
Review via email: mp+27160@code.launchpad.net

Commit message

Make running ec2 from a symlink more robust by having buildout generate the entry script.

Description of the change

This makes it so that, if you always use ec2 from devel to try and get the latest and greatest version while running your branch, it actually gets the new code even if there's a _pythonpath.py locally.

To post a comment you must log in.
Revision history for this message
Māris Fogels (mars) wrote :

I tested this locally, and it works as expected. bin/ec2 works, utilities/ec2 works, 'make clean && make' work, and it merges cleanly with devel.

r=mars

review: Approve

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'setup.py'
2--- setup.py 2010-03-24 05:28:44 +0000
3+++ setup.py 2010-06-09 14:18:28 +0000
4@@ -137,6 +137,7 @@
5 'twistd = twisted.scripts.twistd:run',
6 'start_librarian '
7 '= canonical.launchpad.scripts.runlaunchpad:start_librarian',
8+ 'ec2 = devscripts.ec2test.entrypoint:main',
9 ]
10 ),
11 )
12
13=== modified file 'utilities/ec2'
14--- utilities/ec2 2010-04-27 19:48:39 +0000
15+++ utilities/ec2 1970-01-01 00:00:00 +0000
16@@ -1,13 +0,0 @@
17-#!/usr/bin/python -S
18-
19-# Copyright 2009 Canonical Ltd. This software is licensed under the
20-# GNU Affero General Public License version 3 (see the file LICENSE).
21-
22-"""Executable for the ec2 scripts."""
23-
24-import _pythonpath
25-
26-__metaclass__ = type
27-
28-from devscripts.ec2test.entrypoint import main
29-main()
30
31=== target is u'../bin/ec2'