This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

classification
Title: Add activate script to venv root folder
Type: enhancement Stage: resolved
Components: Library (Lib) Versions: Python 3.8
process
Status: closed Resolution: rejected
Dependencies: Superseder:
Assigned To: Nosy List: Ivan Marin, brett.cannon, eric.smith, vinay.sajip
Priority: normal Keywords:

Created on 2019-03-22 13:38 by Ivan Marin, last changed 2022-04-11 14:59 by admin. This issue is now closed.

Messages (3)
msg338604 - (view) Author: Ivan Marin (Ivan Marin) Date: 2019-03-22 13:38
Instead of keeping the activate script of a virtualenv created with venv on the bin folder, move the file or create a link to the root folder of the venv file. Even better if there´s a way to make it easier to make shell autocomplete faster.

The rationale is that every time a virtualenv has to be activated, the path to the virtualenv has to be typed plus the bin folder and the activate script name. Having on the root folder of the virtualenv saves a few keystrokes, that compound to a lot of work when one is activating venvs all day.
msg338605 - (view) Author: Eric V. Smith (eric.smith) * (Python committer) Date: 2019-03-22 13:57
While I think this might have been a reasonable choice when this was first added, I think it's too late to change. We'd have to keep the files in bin (or Scripts) indefinitely because there are a zillion tutorials that talk about them. And having them in both places just leads to confusion.
msg338613 - (view) Author: Brett Cannon (brett.cannon) * (Python committer) Date: 2019-03-22 17:16
I agree with Eric.

Thanks for the idea, Ivan, but I'm closing this as an idea we won't be pursuing.
History
Date User Action Args
2022-04-11 14:59:12adminsetgithub: 80581
2019-03-22 17:16:56brett.cannonsetstatus: open -> closed

nosy: + brett.cannon
messages: + msg338613

resolution: rejected
stage: resolved
2019-03-22 13:57:14eric.smithsetnosy: + eric.smith

messages: + msg338605
versions: - Python 3.5, Python 3.6, Python 3.7, Python 3.9
2019-03-22 13:51:03xtreaksetnosy: + vinay.sajip
2019-03-22 13:38:37Ivan Marincreate