[Python-modules-commits] [python-virtualenv] 02/04: Even though /usr/bin/virtualenv is a Python 3 script now, in

Barry Warsaw barry at moszumanska.debian.org
Sat Feb 27 18:45:16 UTC 2016


This is an automated email from the git hooks/post-receive script.

barry pushed a commit to branch master
in repository python-virtualenv.

commit ea9927a503949e563a8898be0b70a4b7bd1188f8
Author: Barry Warsaw <barry at debian.org>
Date:   Fri Oct 9 22:23:59 2015 +0200

    Even though /usr/bin/virtualenv is a Python 3 script now, in
    
     Debian we still want to default to using Python 2 unless the -p/--python
     argument is given.
    Forwarded: not-needed
    
    Patch-Name: python2-default.patch
---
 virtualenv.py | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/virtualenv.py b/virtualenv.py
index d83403c..eafab84 100755
--- a/virtualenv.py
+++ b/virtualenv.py
@@ -543,9 +543,10 @@ def main():
         '-p', '--python',
         dest='python',
         metavar='PYTHON_EXE',
+        default='python2',
         help='The Python interpreter to use, e.g., --python=python2.5 will use the python2.5 '
-        'interpreter to create the new environment.  The default is the interpreter that '
-        'virtualenv was installed with (%s)' % sys.executable)
+        'interpreter to create the new environment.  The default is the python2 '
+        'interpreter on your path (e.g. /usr/bin/python2)')
 
     parser.add_option(
         '--clear',

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/python-modules/packages/python-virtualenv.git



More information about the Python-modules-commits mailing list