PEP 405 (built-in virtualenv) status

A brief status update on PEP 405 (built-in virtualenv) and the open issues: 1. As mentioned in the updated version of the language summit notes, Nick Coghlan has agreed to pronounce on the PEP. 2. Ned Deily discovered at the PyCon sprints that the current reference implementation does not work with an OS X framework build of Python. We're still working to discover the reason for that and determine possible fixes. 3. If anyone knows of a pair of packages in which both need to build compiled extensions, and the compilation of the second depends on header files from the first, that would be helpful to me in testing the other open issue (installation of header files). (I thought numpy and scipy might fit this bill, but I'm currently not able to install numpy at all under Python 3 using pysetup, easy_install, or pip.) Thanks, Carl

-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On 03/15/2012 05:43 PM, Carl Meyer wrote:
ExtensionClass and Acquisition would fit the bill, except they aren't ported to Python3 (Acquisition needs the headers from ExtensionClass). Tres. - -- =================================================================== Tres Seaver +1 540-429-0999 tseaver@palladion.com Palladion Software "Excellence by Design" http://palladion.com -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.10 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ iEYEARECAAYFAk9ix9EACgkQ+gerLs4ltQ5HsgCdEFbb0utGPbBJ2059+KBbhkIB M2IAnjFNoJh1UKB76k6nd6nTMfo78s3Z =T6fh -----END PGP SIGNATURE-----

On Fri, Mar 16, 2012 at 05:55, Tres Seaver <tseaver@palladion.com> wrote:
ExtensionClass and Acquisition would fit the bill, except they aren't ported to Python3 (Acquisition needs the headers from ExtensionClass).
And there were no plans to port them either, really. :-) Only Zope 2 uses them afaik? Or? //Lennart

-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On 03/16/2012 04:46 AM, Lennart Regebro wrote:
I don't know of plans to port them, or even how hard the port would be. The "headers needed" problem is a tricky one, and they do exercise it. Tres. - -- =================================================================== Tres Seaver +1 540-429-0999 tseaver@palladion.com Palladion Software "Excellence by Design" http://palladion.com -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.10 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ iEYEARECAAYFAk9jRRUACgkQ+gerLs4ltQ4cpwCgnLehMsKDV8BKMkix+ZitRnPA LHgAnRLZdjc7+I9/rkepO6iNXEBg7uQo =JmOT -----END PGP SIGNATURE-----

On 15.03.12 22:43, Carl Meyer wrote:
Hi Carl, I appreciate this effort very well, as we are heavily using virtualenv in a project. One urgent question: will this feature be backported to Python 2.7? We still need 2.7 for certain reasons (PyPy is not ready for 3.x). cheers - chris -- Christian Tismer :^)<mailto:tismer@stackless.com> tismerysoft GmbH : Have a break! Take a ride on Python's Karl-Liebknecht-Str. 121 : *Starship* http://starship.python.net/ 14482 Potsdam : PGP key -> http://pgp.uni-mainz.de work +49 173 24 18 776 mobile +49 173 24 18 776 fax n.a. PGP 0x57F3BF04 9064 F4E1 D754 C2FF 1619 305B C09C 5A3B 57F3 BF04 whom do you want to sponsor today? http://www.stackless.com/

Hello Christian, On 06/03/2012 03:56 PM, Éric Araujo wrote:
To add to Éric's answer: the key difference between virtualenv and pyvenv, allowing pyvenv environments to be much simpler, relies on a change to the interpreter itself. This won't be backported to 2.7, and can't be released as a standalone package. It would be possible to backport the Python API and command-line UI of pyvenv (which are different from virtualenv) as a PyPI package compatible with Python 2.7. Because it wouldn't have the interpreter change, it would have to still create environments that look like virtualenv environments (i.e. they'd have to have chunks of the stdlib symlinked in and a custom site.py). I suppose this could be useful if wanting to script creation of venvs across Python 2 and Python 3, but the utility seems limited enough that I have no plans to do this. Carl

On 6/4/12 4:11 PM, Carl Meyer wrote:
Thank you call. Sad, but I see. I guess I could produce an extension as add-on that mutates python2.7's behavior ;-) kidding-ly y'rs - chris -- Christian Tismer :^)<mailto:tismer@stackless.com> tismerysoft GmbH : Have a break! Take a ride on Python's Karl-Liebknecht-Str. 121 : *Starship* http://starship.python.net/ 14482 Potsdam : PGP key -> http://pgp.uni-mainz.de work +49 173 24 18 776 mobile +49 173 24 18 776 fax n.a. PGP 0x57F3BF04 9064 F4E1 D754 C2FF 1619 305B C09C 5A3B 57F3 BF04 whom do you want to sponsor today? http://www.stackless.com/

-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On 03/15/2012 05:43 PM, Carl Meyer wrote:
ExtensionClass and Acquisition would fit the bill, except they aren't ported to Python3 (Acquisition needs the headers from ExtensionClass). Tres. - -- =================================================================== Tres Seaver +1 540-429-0999 tseaver@palladion.com Palladion Software "Excellence by Design" http://palladion.com -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.10 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ iEYEARECAAYFAk9ix9EACgkQ+gerLs4ltQ5HsgCdEFbb0utGPbBJ2059+KBbhkIB M2IAnjFNoJh1UKB76k6nd6nTMfo78s3Z =T6fh -----END PGP SIGNATURE-----

On Fri, Mar 16, 2012 at 05:55, Tres Seaver <tseaver@palladion.com> wrote:
ExtensionClass and Acquisition would fit the bill, except they aren't ported to Python3 (Acquisition needs the headers from ExtensionClass).
And there were no plans to port them either, really. :-) Only Zope 2 uses them afaik? Or? //Lennart

-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On 03/16/2012 04:46 AM, Lennart Regebro wrote:
I don't know of plans to port them, or even how hard the port would be. The "headers needed" problem is a tricky one, and they do exercise it. Tres. - -- =================================================================== Tres Seaver +1 540-429-0999 tseaver@palladion.com Palladion Software "Excellence by Design" http://palladion.com -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.10 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ iEYEARECAAYFAk9jRRUACgkQ+gerLs4ltQ4cpwCgnLehMsKDV8BKMkix+ZitRnPA LHgAnRLZdjc7+I9/rkepO6iNXEBg7uQo =JmOT -----END PGP SIGNATURE-----

On 15.03.12 22:43, Carl Meyer wrote:
Hi Carl, I appreciate this effort very well, as we are heavily using virtualenv in a project. One urgent question: will this feature be backported to Python 2.7? We still need 2.7 for certain reasons (PyPy is not ready for 3.x). cheers - chris -- Christian Tismer :^)<mailto:tismer@stackless.com> tismerysoft GmbH : Have a break! Take a ride on Python's Karl-Liebknecht-Str. 121 : *Starship* http://starship.python.net/ 14482 Potsdam : PGP key -> http://pgp.uni-mainz.de work +49 173 24 18 776 mobile +49 173 24 18 776 fax n.a. PGP 0x57F3BF04 9064 F4E1 D754 C2FF 1619 305B C09C 5A3B 57F3 BF04 whom do you want to sponsor today? http://www.stackless.com/

Hello Christian, On 06/03/2012 03:56 PM, Éric Araujo wrote:
To add to Éric's answer: the key difference between virtualenv and pyvenv, allowing pyvenv environments to be much simpler, relies on a change to the interpreter itself. This won't be backported to 2.7, and can't be released as a standalone package. It would be possible to backport the Python API and command-line UI of pyvenv (which are different from virtualenv) as a PyPI package compatible with Python 2.7. Because it wouldn't have the interpreter change, it would have to still create environments that look like virtualenv environments (i.e. they'd have to have chunks of the stdlib symlinked in and a custom site.py). I suppose this could be useful if wanting to script creation of venvs across Python 2 and Python 3, but the utility seems limited enough that I have no plans to do this. Carl

On 6/4/12 4:11 PM, Carl Meyer wrote:
Thank you call. Sad, but I see. I guess I could produce an extension as add-on that mutates python2.7's behavior ;-) kidding-ly y'rs - chris -- Christian Tismer :^)<mailto:tismer@stackless.com> tismerysoft GmbH : Have a break! Take a ride on Python's Karl-Liebknecht-Str. 121 : *Starship* http://starship.python.net/ 14482 Potsdam : PGP key -> http://pgp.uni-mainz.de work +49 173 24 18 776 mobile +49 173 24 18 776 fax n.a. PGP 0x57F3BF04 9064 F4E1 D754 C2FF 1619 305B C09C 5A3B 57F3 BF04 whom do you want to sponsor today? http://www.stackless.com/
participants (5)
-
Carl Meyer
-
Christian Tismer
-
Lennart Regebro
-
Tres Seaver
-
Éric Araujo