Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and
privacy statement. We’ll occasionally send you account related emails.
Already on GitHub?
to your account
Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.
assignee = None
closed_at = <Date 2016-08-06.09:44:01.281>
created_at = <Date 2014-11-09.17:59:17.089>
labels = ['type-feature', 'library']
title = 'Add --prompt option to venv'
updated_at = <Date 2016-08-06.09:44:01.278>
user = 'https://bugs.python.org/ukaszBalcerzak'
activity = <Date 2016-08-06.09:44:01.278>
actor = 'python-dev'
assignee = 'none'
closed = True
closed_date = <Date 2016-08-06.09:44:01.281>
closer = 'python-dev'
components = ['Library (Lib)']
creation = <Date 2014-11-09.17:59:17.089>
creator = '\xc5\x81ukasz.Balcerzak'
dependencies = 
files = ['37156', '39076', '40962']
hgrepos = 
issue_num = 22829
keywords = ['patch']
message_count = 7.0
messages = ['230894', '241265', '241303', '241329', '254193', '254197', '272080']
nosy_count = 6.0
nosy_names = ['vinay.sajip', 'ncoghlan', 'python-dev', 'berker.peksag', 'matrixise', '\xc5\x81ukasz.Balcerzak']
pr_nums = 
priority = 'normal'
resolution = 'fixed'
stage = 'resolved'
status = 'closed'
superseder = None
type = 'enhancement'
url = 'https://bugs.python.org/issue22829'
versions = ['Python 3.6']
The text was updated successfully, but these errors were encountered:
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).
Sorry, something went wrong.
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
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
Thanks! The patch looks good to me. Some review comments: http://bugs.python.org/review/22829/
ok, I will propose an update with the comments of the review.
oops, forgotten to provide the patch :/
Please, could you review this patch, I have followed your remarks and adjust the patch.
New changeset 6703847eeb31 by Vinay Sajip in branch 'default':
Closes bpo-22829: Added --prompt option to venv.
No branches or pull requests