Issue 22829: Add --prompt option to venv (original ) (raw )Created on 2014-11-09 17:59 by Łukasz.Balcerzak , last changed 2022-04-11 14:58 by admin . This issue is now closed .
Messages (7)
msg230894 - (view)
Author: Łukasz Balcerzak (Łukasz.Balcerzak) *
Date: 2014-11-09 17:59
virtualenv tool allows to set alternative prompt prefix, Python's venv module should allow this too. Basically, this allows one to run: python -mvenv --prompt Quux myenv And see "(Quux)" as a prefix after environment activation (instead of the "myenv" in this case).
msg241265 - (view)
Author: Stéphane Wirtel (matrixise) *
Date: 2015-04-16 19:24
Based on the patch of Łukasz, I have updated it to the last revision of Python 3.5a3 (today, 16th April) stephane@sg1 ~/p/c/bin> ./python3.5 --version Python 3.5.0a3+ stephane@sg1 ~/p/c/bin> ./python3.5 Python 3.5.0a3+ (default:c969413584cf+, Apr 16 2015, 15:17:46) I tested the patch, this one works fine and the prompt is really changed if we specify it on the command line of -m venv
msg241303 - (view)
Author: Berker Peksag (berker.peksag) *
Date: 2015-04-17 01:31
Thanks! The patch looks good to me. Some review comments: http://bugs.python.org/review/22829/
msg241329 - (view)
Author: Stéphane Wirtel (matrixise) *
Date: 2015-04-17 13:27
ok, I will propose an update with the comments of the review.
msg254193 - (view)
Author: Stéphane Wirtel (matrixise) *
Date: 2015-11-06 13:40
oops, forgotten to provide the patch :/
msg254197 - (view)
Author: Stéphane Wirtel (matrixise) *
Date: 2015-11-06 14:13
Hi @berker.peksag Please, could you review this patch, I have followed your remarks and adjust the patch. Thank you
msg272080 - (view)
Author: Roundup Robot (python-dev)
Date: 2016-08-06 09:44
New changeset 6703847eeb31 by Vinay Sajip in branch 'default': Closes #22829 : Added --prompt option to venv. https://hg.python.org/cpython/rev/6703847eeb31
History
Date
User
Action
Args
2022-04-11 14:58:10
admin
set
github: 67018
2016-08-06 09:44:01
python-dev
set
status: open -> closednosy: + python-dev messages: + resolution: fixedstage: patch review -> resolved
2015-11-06 14:59:18
matrixise
set
versions: + Python 3.6, - Python 3.5
2015-11-06 14:13:08
matrixise
set
files: + venv-prompt-argument-3_6.patch messages: +
2015-11-06 13:40:47
matrixise
set
messages: +
2015-04-17 13:27:21
matrixise
set
messages: +
2015-04-17 01:31:16
berker.peksag
set
nosy: + berker.peksag messages: + components: + Library (Lib)type: enhancementstage: patch review
2015-04-16 19:24:23
matrixise
set
files: + venv-prompt-argument-3_5.patch nosy: + matrixise messages: +
2014-11-10 07:12:49
ned.deily
set
nosy: + vinay.sajip , ncoghlan
2014-11-09 17:59:17
Łukasz.Balcerzak
create