[pypy-commit] cffi default: Don't call %(sys.executable) but simply 'python' here: we are in a

arigo noreply at buildbot.pypy.org
Sat Sep 22 13:53:47 CEST 2012


Author: Armin Rigo <arigo at tunes.org>
Branch: 
Changeset: r966:6d553a541b44
Date: 2012-09-22 13:53 +0200
http://bitbucket.org/cffi/cffi/changeset/6d553a541b44/

Log:	Don't call %(sys.executable) but simply 'python' here: we are in a
	virtualenv.

diff --git a/testing/test_integration.py b/testing/test_integration.py
--- a/testing/test_integration.py
+++ b/testing/test_integration.py
@@ -23,10 +23,9 @@
     python_f.write(py.code.Source(python_snippet))
     try:
         os.chdir(str(SNIPPET_DIR.join(dirname)))
-        python = sys.executable
         venv = venv_dir.join('bin/activate')
-        p = subprocess.Popen(['bash', '-c', '. %(venv)s && %(python)s setup.py '
-                              'install && %(python)s %(python_f)s' % locals()],
+        p = subprocess.Popen(['bash', '-c', '. %(venv)s && python setup.py '
+                              'install && python %(python_f)s' % locals()],
                              stdout=subprocess.PIPE, stderr=subprocess.PIPE)
         stdout, stderr = p.communicate()
         if p.returncode != 0:


More information about the pypy-commit mailing list