[Distutils] early preview of pythonv

Carl Meyer carl at oddbird.net
Wed Mar 16 22:50:06 CET 2011


Hi Antonio,

Thanks for the pointer to this. It does look interesting, but I think it hits a rather different set of use cases than virtualenv or pythonv. In particular, virtualenv/pythonv is useful for situations where:

- I may not have administrator access to the system,
- I want to run many projects on exactly the same version of Python, but with different working sets of packages,
- I'd like a cross-platform solution (including Windows and OS X) that maintains a similar workflow on all platforms.

I may not be fully understanding pyvm, but it appears to me that it would not fit those use cases. So while I think it looks interesting and useful, I don't think its a viable alternative for the goals of pythonv.

Carl

Sent from my Android phone

----- Reply message -----
From: a.cavallo at cavallinux.eu
Date: Wed, Mar 16, 2011 7:38 am
Subject: [Distutils] early preview of pythonv
To: "distutils-sig" <distutils-sig at python.org>

Hi,

please have a look into my little project:

http://pyvm.sf.net

It does exactly this integration (and build integration and
run time testing) on several different linux distros.
It works stright out of the svn py27 trunk but the work flow
can be implemented for 3.x.

Regards,
Antonio

 On Wed 16/03/11 13:00, "Jim Fulton" jim at zope.com wrote:
> On Wed, Mar 16, 2011 at 4:31 AM, Carl Meyer <carl at oddbird
> .net> wrote:
> Hello all,
> >
> > Here at PyCon we've had some discussion about
> building a
> virtualenv-alike into Python core for Python 3.3.
> The goal is to improve
> on virtualenv by providing something that does what
> virtualenv does
> without requiring a copied Python binary,
> symlinked/copied parts of the
> standard library, or a forked site.py.
> >
> > (I'm not entirely sure that distutils-sig is the
> right venue for
> discussing this, but it's the closest I know of and
> was recommended by
> others in our conversations here; if there's a
> better place please let
> me know; maybe python-ideas? The patch as is stands
> does affect
> sysconfig.py, which is used more by distutils than
> anything else.)
>
> > The idea we discussed is to add to Python's built-in
> site.py the ability
> to set paths up for a virtual environment, triggered
> by certain
> environment variables. Then, for convenience,
> there'll be a small
> executable which can be placed in the "bin/"
> directory of a virtual
> environment and knows how to set up these
> environment variables and then
> exec() the system Python binary.
> >
> > Larry Hastings had already created this wrapper
> executable at last
> year's PyCon, and tonight I made the necessary
> modifications to site.py
> and sysconfig.py to support it on the Python side.
> The early prototype
> is now working well (at least on Linux; I think it
> ought to work on OS
> X, and should work partially on Windows as well),
> and I'd welcome review
> and comment: https://bitbucket.org/carljm/cpythonv  Look
> in
> Tools/pythonv/README.rst for
> instructions.
>
> > This is an early prototype and will certainly
> require refinement (not to
> mention most likely a PEP, at some point). Please
> try it out and let me
> know if it works for you!
> 
> Carl,
> 
> Thanks for posting this.  I'm very hopeful that buildout can use this
> same mechanism to get the isolation it needs.  I would really
> appreciate it if buildout users who care about this would test it with
> buildout.  In particular, I know of 2 basic use cases:
> 
> - Get complete isolation from local additions relative to the standard
> Python distribution.
> 
> - Have the ability to cherry pick some local additions while having
> isolation from the rest. (Gary and Ubuntu, I'm looking at you.)
> 
> Please, let's make sure this mechanism is enough. To raise the stakes
> a bit, when this mechanism is available, presumably in Python 3.3, I
> plan to use it exclusively to provide isolation in buildout.
> 
> Jim
> 
> --
> Jim Fulton
> http://www.linkedin.com/in/jimfulton
_______________________________________________
> Distutils-SIG maillist  -  Distutils-SIG at python.org
> http://mail.python.org/mailman/listinfo/distutils-sig
> 
> 

_______________________________________________
Distutils-SIG maillist  -  Distutils-SIG at python.org
http://mail.python.org/mailman/listinfo/distutils-sig
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/distutils-sig/attachments/20110316/a6015c3b/attachment.html>


More information about the Distutils-SIG mailing list