Re: [Python-Dev] Proposal for virtualenv functionality in Python

2010-02-21 Thread Larry Hastings
Ian Bicking wrote: This is a proto-proposal for including some functionality from virtualenv in Python itself. I'm not entirely confident about what I'm proposing, so it's not really PEP-ready, but I wanted to get feedback... First, a bit about how virtualenv works (this will use Linux

Re: [Python-Dev] Proposal for virtualenv functionality in Python

2010-02-21 Thread Ian Bicking
On Sun, Feb 21, 2010 at 12:32 PM, Larry Hastings la...@hastings.org wrote: * I'd rather ~/env/bin/python be a symlink instead of copying it. The thread discussing Windows suggests that we shouldn't use symlinks there. I'd say either copying or symlinking pythonv should be supported, and

Re: [Python-Dev] Proposal for virtualenv functionality in Python

2010-02-21 Thread Tres Seaver
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Gregory P. Smith wrote: On Fri, Feb 19, 2010 at 4:18 PM, P.J. Eby p...@telecommunity.com wrote: At 01:49 PM 2/19/2010 -0500, Ian Bicking wrote: I'm not sure how this should best work on Windows (without symlinks, and where things generally work

Re: [Python-Dev] Proposal for virtualenv functionality in Python

2010-02-21 Thread Larry Hastings
Ian Bicking wrote: On Sun, Feb 21, 2010 at 12:32 PM, Larry Hastings la...@hastings.org mailto:la...@hastings.org wrote: * Override sys.prefix: allow you to put the binary in someplace other than, say, ~/env/bin/python and still support an environment in ~/env/. Also the use case of looking

Re: [Python-Dev] Proposal for virtualenv functionality in Python

2010-02-21 Thread Barry Warsaw
On Feb 21, 2010, at 01:51 PM, Tres Seaver wrote: +1 for having the conf file in the same directory as the pythonv esecutable (yes, I know it isn't FHS compatible, but virtualevn is kind of antithetical to the spirit of FHS anyway). Which is okay, right? because virtualenv is really about

Re: [Python-Dev] Proposal for virtualenv functionality in Python

2010-02-21 Thread Tres Seaver
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Barry Warsaw wrote: On Feb 21, 2010, at 01:51 PM, Tres Seaver wrote: +1 for having the conf file in the same directory as the pythonv esecutable (yes, I know it isn't FHS compatible, but virtualevn is kind of antithetical to the spirit of FHS

Re: [Python-Dev] Proposal for virtualenv functionality in Python

2010-02-21 Thread Neil Hodgson
Larry Hastings: But IIUC telling the compiler how to do that is only vaguely standardized--Microsoft's CL.EXE doesn't seem to support any environment variable containing an include /path/. The INCLUDE environment variable is a list of ';' separated paths

Re: [Python-Dev] Proposal for virtualenv functionality in Python

2010-02-20 Thread Eric Smith
Glenn Linderman wrote: Shortcuts don't work from the shell (well, cmd.exe, at least), do they? Can't test from here. So if you can't test it, why would you state it as a fact... and then back-pedal? :) It was a question, not a statement! Plus, I figured I could con someone into testing it

Re: [Python-Dev] Proposal for virtualenv functionality in Python

2010-02-20 Thread Christian Heimes
Glenn Linderman wrote: Windows also has hard-links for files. A lot of Windows tools are completely ignorant of both of those linking concepts... resulting in disks that look to be over capacity when they are not, for example. Here comes my nit picking mode again. ;) First of all the

Re: [Python-Dev] Proposal for virtualenv functionality in Python

2010-02-20 Thread Eric Smith
Christian Heimes wrote: good stuff deleted As long as Python supports XP we shouldn't use symlinks on Windows for stuff like virtualenv. The python.exe on Windows is small (just a few kb) since it is linked against the dll. Let's copy it and we are on the safe side. +1. Even if we dropped XP

Re: [Python-Dev] Proposal for virtualenv functionality in Python

2010-02-20 Thread Martin v. Löwis
First of all the links are not a feature of the operating system but rather a feature of the file system (version). That's not really true. Even though ext2 supports symbolic links, on XP with an ext2 driver, you still don't get symbolic links. So you need the feature *both* in the operating

Re: [Python-Dev] Proposal for virtualenv functionality in Python

2010-02-20 Thread Christian Heimes
Martin v. Löwis wrote: The latter is not really true: NFS most certainly supports hard links. I can't try right now, but I would be surprised if SMB didn't support both symbolic and hard links, given the right server and client versions. I've never seen nor used NFS on Windows so I can't

Re: [Python-Dev] Proposal for virtualenv functionality in Python

2010-02-20 Thread Georg Brandl
Am 20.02.2010 06:37, schrieb Michael Foord: -- http://www.ironpythoninaction.com Nice signature! On 19 Feb 2010, at 22:52, Eric Smith e...@trueblade.com wrote: Glenn Linderman wrote: On approximately 2/19/2010 1:18 PM, came the following characters from the keyboard of P.J. Eby:

Re: [Python-Dev] Proposal for virtualenv functionality in Python

2010-02-20 Thread Ian Bicking
On Fri, Feb 19, 2010 at 10:39 PM, Glenn Linderman v+pyt...@g.nevcal.comv%2bpyt...@g.nevcal.com wrote: On approximately 2/19/2010 1:18 PM, came the following characters from the keyboard of P.J. Eby: At 01:49 PM 2/19/2010 -0500, Ian Bicking wrote: I'm not sure how this should best work on

Re: [Python-Dev] Proposal for virtualenv functionality in Python

2010-02-20 Thread P.J. Eby
At 02:41 PM 2/20/2010 -0500, Ian Bicking wrote: Virtualenv uses copies when it can't use symlinks. Â A copy (or hard link) seems appropriate on systems that do not have symlinks. Â It would seem reasonable that on Windows it might look in the registry to find the actual location where Python

Re: [Python-Dev] Proposal for virtualenv functionality in Python

2010-02-20 Thread Greg Ewing
Dj Gilcrease wrote: win2k and later have a form of sym link, the api for it is just not provided in a nice simple app like it is on nix platforms. Yes, it's possible to create symlinks on win2k using a command line tool called 'linkd' (I've done it). However, they're extremely dangerous,

[Python-Dev] Proposal for virtualenv functionality in Python

2010-02-19 Thread Ian Bicking
This is a proto-proposal for including some functionality from virtualenv in Python itself. I'm not entirely confident about what I'm proposing, so it's not really PEP-ready, but I wanted to get feedback... First, a bit about how virtualenv works (this will use Linux conventions; Windows and

Re: [Python-Dev] Proposal for virtualenv functionality in Python

2010-02-19 Thread Guido van Rossum
This sounds like a great idea (especially since I proposed something a little bit like it in yesterday's language summit :-). I have to admit I cannot remember what uses are made of sys.prefix; it would be good to explicitly enumerate these in the PEP when you write it. Regarding the Windows

Re: [Python-Dev] Proposal for virtualenv functionality in Python

2010-02-19 Thread Antoine Pitrou
Le Fri, 19 Feb 2010 13:49:23 -0500, Ian Bicking a écrit : * I'd rather ~/env/bin/python be a symlink instead of copying it. How about simply adding a --prefix argument to the interpreter. Then virtualenv can create a python script that simply adds --prefix and forwards all the arguments to

Re: [Python-Dev] Proposal for virtualenv functionality in Python

2010-02-19 Thread Philip Jenvey
On Feb 19, 2010, at 11:45 AM, Antoine Pitrou wrote: Le Fri, 19 Feb 2010 13:49:23 -0500, Ian Bicking a écrit : * I'd rather ~/env/bin/python be a symlink instead of copying it. How about simply adding a --prefix argument to the interpreter. Then virtualenv can create a python script that

Re: [Python-Dev] Proposal for virtualenv functionality in Python

2010-02-19 Thread P.J. Eby
At 01:49 PM 2/19/2010 -0500, Ian Bicking wrote: I'm not sure how this should best work on Windows (without symlinks, and where things generally work differently), but I would hope if this idea is more visible that someone more opinionated than I would propose the appropriate analog on Windows.

Re: [Python-Dev] Proposal for virtualenv functionality in Python

2010-02-19 Thread Gregory P. Smith
On Fri, Feb 19, 2010 at 4:18 PM, P.J. Eby p...@telecommunity.com wrote: At 01:49 PM 2/19/2010 -0500, Ian Bicking wrote: I'm not sure how this should best work on Windows (without symlinks, and where things generally work differently), but I would hope if this idea is more visible that someone

Re: [Python-Dev] Proposal for virtualenv functionality in Python

2010-02-19 Thread Dj Gilcrease
win2k and later have a form of sym link, the api for it is just not provided in a nice simple app like it is on nix platforms. On 2/19/10, P.J. Eby p...@telecommunity.com wrote: At 01:49 PM 2/19/2010 -0500, Ian Bicking wrote: I'm not sure how this should best work on Windows (without symlinks,

Re: [Python-Dev] Proposal for virtualenv functionality in Python

2010-02-19 Thread Dj Gilcrease
I develop OpenRPG and 90% of our user base is on windows. We require the user to install python and wxPython from msi because our app supports GUI plugins so to ensure the user can use any plugin even if it isnt prepackaged they need to have the full python and wxPython installed. We are working

Re: [Python-Dev] Proposal for virtualenv functionality in Python

2010-02-19 Thread R. David Murray
On Fri, 19 Feb 2010 14:35:42 -0700, Dj Gilcrease digitalx...@gmail.com wrote: On 2/19/10, P.J. Eby p...@telecommunity.com wrote: At 01:49 PM 2/19/2010 -0500, Ian Bicking wrote: I'm not sure how this should best work on Windows (without symlinks, and where things generally work differently),

Re: [Python-Dev] Proposal for virtualenv functionality in Python

2010-02-19 Thread Michael Foord
On 19/02/2010 16:30, Gregory P. Smith wrote: On Fri, Feb 19, 2010 at 4:18 PM, P.J. Ebyp...@telecommunity.com wrote: At 01:49 PM 2/19/2010 -0500, Ian Bicking wrote: I'm not sure how this should best work on Windows (without symlinks, and where things generally work differently), but

Re: [Python-Dev] Proposal for virtualenv functionality in Python

2010-02-19 Thread Glenn Linderman
On approximately 2/19/2010 1:18 PM, came the following characters from the keyboard of P.J. Eby: At 01:49 PM 2/19/2010 -0500, Ian Bicking wrote: I'm not sure how this should best work on Windows (without symlinks, and where things generally work differently), but I would hope if this idea is

Re: [Python-Dev] Proposal for virtualenv functionality in Python

2010-02-19 Thread Eric Smith
Glenn Linderman wrote: On approximately 2/19/2010 1:18 PM, came the following characters from the keyboard of P.J. Eby: At 01:49 PM 2/19/2010 -0500, Ian Bicking wrote: I'm not sure how this should best work on Windows (without symlinks, and where things generally work differently), but I would

Re: [Python-Dev] Proposal for virtualenv functionality in Python

2010-02-19 Thread Glenn Linderman
On approximately 2/19/2010 7:52 PM, came the following characters from the keyboard of Eric Smith: Glenn Linderman wrote: On approximately 2/19/2010 1:18 PM, came the following characters from the keyboard of P.J. Eby: At 01:49 PM 2/19/2010 -0500, Ian Bicking wrote: I'm not sure how this

Re: [Python-Dev] Proposal for virtualenv functionality in Python

2010-02-19 Thread Michael Foord
-- http://www.ironpythoninaction.com On 19 Feb 2010, at 22:52, Eric Smith e...@trueblade.com wrote: Glenn Linderman wrote: On approximately 2/19/2010 1:18 PM, came the following characters from the keyboard of P.J. Eby: At 01:49 PM 2/19/2010 -0500, Ian Bicking wrote: I'm not sure how