release.py: use current Python executable for ./be invocation
authorW. Trevor King <wking@tremily.us>
Thu, 25 Oct 2012 23:37:37 +0000 (19:37 -0400)
committerW. Trevor King <wking@tremily.us>
Thu, 25 Oct 2012 23:37:43 +0000 (19:37 -0400)
This allow you to cut a release where your system Python is not
compatible with be.  For example:

  $ python --version
  Python 3.2.3
  $ python2.7 ./release.py 1.1.0

release.py

index 7c5f51c2a7b5244485c8c0ba48d5a6fb759a81d9..c9b35496c2ebe4e01eace7e940de53ddcd05b5f0 100755 (executable)
@@ -124,7 +124,7 @@ def set_vcs_name(be_dir, vcs_name='None'):
 def make_id_cache():
     """Generate .be/id-cache so users won't need to.
     """
-    invoke(['./be', 'list'])
+    invoke([sys.executable, './be', 'list'])
 
 def create_tarball(tag):
     release_name='be-%s' % tag