[Python-Dev] draft PEP: virtual environments
Paul Moore
p.f.moore at gmail.com
Tue Nov 1 17:43:28 CET 2011
On 1 November 2011 16:40, Paul Moore <p.f.moore at gmail.com> wrote:
> On 1 November 2011 16:29, Paul Moore <p.f.moore at gmail.com> wrote:
>> On 31 October 2011 20:10, Carl Meyer <carl at oddbird.net> wrote:
>>>> For Windows, can you point me at the nt scripts? If they aren't too
>>>> complex, I'd be willing to port to Powershell.
>>>
>>> Thanks! They are here:
>>> https://bitbucket.org/vinay.sajip/pythonv/src/6d057cfaaf53/Lib/venv/scripts/nt
>>
>> The attached should work. Untested at the moment, I'm afraid, as I
>> don't have access to a PC with the venv branch available. But they
>> aren't complex, so they should be fine.
>
> By the way, these do not need to be dot-sourced to activate/deactivate
> the venv, but they do need to be dot-sourced to enable the prompt
> change. As the prompt is more of a cosmetic thing, I'm not sure how
> crucial that is...
... and of course, to prove that anything untested is wrong, here's a
minor fix to deactivate.ps1 :-)
Paul.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: Deactivate.ps1
Type: application/octet-stream
Size: 540 bytes
Desc: not available
URL: <http://mail.python.org/pipermail/python-dev/attachments/20111101/d49e882f/attachment.obj>
More information about the Python-Dev
mailing list