[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
Mon Nov 14 15:52:31 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 f71c8f8e68870960f52602d23a0fe56fa6a1431f
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 7db92a9..bea02bb 100755
--- a/virtualenv.py
+++ b/virtualenv.py
@@ -546,9 +546,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