On Mon, Jan 4, 2021 at 9:47 AM Chris Angelico <[email protected]> wrote:
> On Tue, Jan 5, 2021 at 1:42 AM Abdur-Rahmaan Janhangeer > <[email protected]> wrote: > > > > Greetings list, > > > > put simply, > > > > be able to use > > > > $ python -m venv venv_name activate > > > > To activate an env instead of having each platform have a way of > > handling it > > > > Unfortunately, that wouldn't work. Activating a virtual environment > means setting some env vars in the current shell, and Python is > fundamentally unable to do that - it can only be done within the shell > itself (by sourcing a script). > > You can, of course, simply run the Python executable from that venv, > but activation is *by its nature* a shell feature, and will differ by > shell. > This is true, but... it might be possible to include something more like pipenv's "shell" which spawns a new instance of your shell with the right paths. It effectively achieves the same goal, without needing to source, > > ChrisA > _______________________________________________ > Python-ideas mailing list -- [email protected] > To unsubscribe send an email to [email protected] > https://mail.python.org/mailman3/lists/python-ideas.python.org/ > Message archived at > https://mail.python.org/archives/list/[email protected]/message/SRHBSWZEUGLZG55DGRHQZ4X7VOEPY6XC/ > Code of Conduct: http://python.org/psf/codeofconduct/ > > -- CALVIN SPEALMAN SENIOR QUALITY ENGINEER [email protected] M: +1.336.210.5107 [image: https://red.ht/sig] <https://red.ht/sig> TRIED. TESTED. TRUSTED. <https://redhat.com/trusted>
_______________________________________________ Python-ideas mailing list -- [email protected] To unsubscribe send an email to [email protected] https://mail.python.org/mailman3/lists/python-ideas.python.org/ Message archived at https://mail.python.org/archives/list/[email protected]/message/QV6UHJHTWNMRRBG3YEDJ5NKYHDIJFGRR/ Code of Conduct: http://python.org/psf/codeofconduct/
