Re: PEP 405 vs 370



http://www.python.org/dev/peps/pep-0405/

I don't get what PEP 405 (Python Virtual Environments) brings vs what we
already had in PEP 370 since Python 2.6.

Obviously 405 has a tool to create virtual environments, but that's
trivial for PEP 370 [1], and has support for isolation from the
system-wide site patch which could've been added in addition to PEP 370.

So maybe I'm missing something?

> My PEP 370 is about installing additional packages as an unprivileged
> user and for the current user. It's a simplistic approach that just
> adds one more site-package directory in the user's home directory.

well you can have and activate several different directories (venvs) with PYTHONUSERBASE. I do use that very nicely, and haven't seen any problems with that.


> PEP 405 is a different beast. It adds support for isolated environment
> that don't share state with the site wide installation. A user can
> have multiple virtual envs and install different sets of packages in
> each env.

Wouldn't it be easier to just add isolation to 370?
Again, you can have multiple virtual envs with 370 too.


ps.
sorry for the late response, it seems my NNTP server doesn't relay all messages. I might need to switch.

--
damjan

.



Relevant Pages

  • PEP 405 vs 370
    ... I don't get what PEP 405 (Python Virtual Environments) brings vs what we already had in PEP 370 since Python 2.6. ... Obviously 405 has a tool to create virtual environments, but that's trivial for PEP 370, and has support for isolation from the system-wide site patch which could've been added in addition to PEP 370. ...
    (comp.lang.python)
  • python-dev Summary for 2005-05-01 through 2005-05-15
    ... introduction of `PEP 340`_. ... non-looping anonymous blocks accompanied by finalization semantics ... Brett C. volunteered to write a PEP targetted at Python 3000 covering ... previous summaries is available online. ...
    (comp.lang.python)
  • python-dev Summary for 2005-05-01 through 2005-05-15
    ... introduction of `PEP 340`_. ... non-looping anonymous blocks accompanied by finalization semantics ... Brett C. volunteered to write a PEP targetted at Python 3000 covering ... previous summaries is available online. ...
    (comp.lang.python.announce)
  • python-dev Summary for 2005-06-16 through 2005-06-30
    ... Contributing Thread: ... PEP Clean Up ... proposed on the grounds that as of Python 2.4 its use case is easily ... previous summaries is available online. ...
    (comp.lang.python)
  • python-dev Summary for 2005-06-16 through 2005-06-30
    ... Contributing Thread: ... PEP Clean Up ... proposed on the grounds that as of Python 2.4 its use case is easily ... previous summaries is available online. ...
    (comp.lang.python.announce)