Re: [Python-Dev] PEP 376

2009-07-01 Thread Paul Moore
2009/7/1 Tarek Ziadé : >> That (at least as I read it) is a function, not a command. >> If it is a command, give an example of its use from the command line >> for us poor "don't want to research" people.  If the following works: >> >>    $ python setup.py uninstall some_package >> >> Then explicit

Re: [Python-Dev] PEP 376

2009-07-01 Thread Stephen J. Turnbull
Tarek Ziadé writes: > On Wed, Jul 1, 2009 at 1:44 PM, Paul Moore wrote: > > General rule - don't document (and commit yourself to) any > > internal details that the user can't access from the public > > API. It just makes backward compatibility harder to maintain. > > The purpose is to prov

Re: [Python-Dev] [Fwd: [issue6397] Implementing Solaris "poll" in the "select" module]

2009-07-01 Thread Alexandre Vassalotti
On Wed, Jul 1, 2009 at 10:05 PM, Guido van Rossum wrote: > The select module already supports the poll() system call. Or is there > a special variant that only Solaris has? > I think Jesus refers to /dev/poll—i.e., the interface for edge-triggered polling on Solaris. This is the Solaris equivalent

Re: [Python-Dev] PEP 376

2009-07-01 Thread Paul Moore
2009/7/1 Tarek Ziadé : >> As I suggested before: >> >>    python -m distutils.uninstall packagename > > yes sorry if it was unclear, I was not thinking about adding something > based on setup.py, > but just saying that I was going to add this feature in the PEP. and > it will be of the form: > >  p

Re: [Python-Dev] PEP 376

2009-07-01 Thread P.J. Eby
At 04:29 PM 7/1/2009 +0200, Tarek Ziadé wrote: - Phase 1 : introduction of the egg-info file in distutils Philipp introduced the creation of a file named xxx.egg-info file in 2006 (see http://bugs.python.org/issue1459476) alongside distutils-installed package, that contains the metadata of the

Re: [Python-Dev] I am back

2009-07-01 Thread Aahz
On Wed, Jul 01, 2009, Brett Cannon wrote: > > Anything happen while I was gone that I should be aware of that is not > covered in a PEP? Yes. -- Aahz (a...@pythoncraft.com) <*> http://www.pythoncraft.com/ "as long as we like the same operating system, things are cool." --piranh

Re: [Python-Dev] PEP 376

2009-07-01 Thread Martin v. Löwis
> I dunno what the right solution is. I feel that it is straight forward. Either provide a /usr/bin/python-uninstall utility, or arrange to make python -mdistutils.uninstall work, so one would do python -mdistutils.uninstall some_package Regards, Martin __

Re: [Python-Dev] [Fwd: [issue6397] Implementing Solaris "poll" in the "select" module]

2009-07-01 Thread Guido van Rossum
The select module already supports the poll() system call. Or is there a special variant that only Solaris has? 2009/7/1 Jesus Cea : > > -- > Jesus Cea Avion                         _/_/      _/_/_/        _/_/_/ > j...@jcea.es - http://www.jcea.es/     _/_/    _/_/  _/_/    _/_/  _/_/ > jabber /

Re: [Python-Dev] Bytes, Strings, Encoding

2009-07-01 Thread Benjamin Peterson
2009/7/1 Eric Pruitt : > Hello, > > I am working on the subprocess.Popen module for Python 2.7 and am now moving > my changes over to Python 3.1 however I am having trouble with the whole > byte situation and I can't quite seem to understand how to go back and forth > between bytes and strings. I a

[Python-Dev] Bytes, Strings, Encoding

2009-07-01 Thread Eric Pruitt
Hello, I am working on the subprocess.Popen module for Python 2.7 and am now moving my changes over to Python 3.1 however I am having trouble with the whole byte situation and I can't quite seem to understand how to go back and forth between bytes and strings. I am also looking for the Python 3k e

Re: [Python-Dev] PEP 376

2009-07-01 Thread Nick Coghlan
Tarek Ziadé wrote: >> - What is a "local absolute path"? Absolute path I understand, relative >> path I understand, but "local absolute" is a novel term to me. > > local means that the "/" separator that is used in the RECORD file for > example, > no matter what platform you are on, is translated

Re: [Python-Dev] PEP 376

2009-07-01 Thread Paul Moore
2009/7/1 Paul Moore : > One other thought. You haven't documented the DistributionMetaData class. The Just noticed that it's defined in distutils. But it's not documented there :-( Maybe just add a bit to the PEP saying that the class exists in distutils, give a brief summary, and say that as par

[Python-Dev] I am back

2009-07-01 Thread Brett Cannon
Assuming Mailman flipped the right bits to start delivering mail to me again, my Python sabbatical is now over. Anything happen while I was gone that I should be aware of that is not covered in a PEP? -Brett ___ Python-Dev mailing list Python-Dev@python.

[Python-Dev] [Fwd: [issue6397] Implementing Solaris "poll" in the "select" module]

2009-07-01 Thread Jesus Cea
-- Jesus Cea Avion _/_/ _/_/_/_/_/_/ j...@jcea.es - http://www.jcea.es/ _/_/_/_/ _/_/_/_/ _/_/ jabber / xmpp:j...@jabber.org _/_/_/_/ _/_/_/_/_/ . _/_/ _/_/_/_/ _/_/ _/_/ "Things ar

Re: [Python-Dev] PEP 376

2009-07-01 Thread Tarek Ziadé
On Wed, Jul 1, 2009 at 10:20 AM, Michael Foord wrote: >> >> Uninstall as a command feels a little weird. Since "python setup.py >> [some-command]" implies that the setup.py contains information about the >> distribution that the command is being applied to. So instead of: >> >> $ python setup.py un

Re: [Python-Dev] PEP 376

2009-07-01 Thread R. David Murray
On Tue, 30 Jun 2009 at 20:06, Scott David Daniels wrote: Kevin Teague wrote: On Jun 30, 2009, at 4:46 PM, Tarek Ziad? wrote: > On Tue, Jun 30, 2009 at 10:06 PM, Scott David > Daniels wrote: > > Tarek Ziad? wrote: > > > On Tue, Jun 30, 2009 at 8:37 PM, Paul Moore > > > wrote: > > > > [1]

Re: [Python-Dev] PEP 376

2009-07-01 Thread Paul Moore
2009/7/1 Paul Moore : > 2009/6/30 Paul Moore : >> Thank you. I'll try to make the time to go through the PEP and comment >> more fully. > > OK, I've now read the PEP through in full. My comments follow. One other thought. You haven't documented the DistributionMetaData class. The And a minor nit:

Re: [Python-Dev] PEP 376

2009-07-01 Thread Paul Moore
2009/7/1 Tarek Ziadé : > Right it's unclear, I'll work on this part. > > To resume : > > - Phase 1 : introduction of the egg-info file in distutils > > Philipp introduced the creation of a file named xxx.egg-info file in 2006 > (see http://bugs.python.org/issue1459476)  alongside > distutils-instal

Re: [Python-Dev] PEP 376

2009-07-01 Thread Paul Moore
2009/6/30 Paul Moore : > Thank you. I'll try to make the time to go through the PEP and comment > more fully. OK, I've now read the PEP through in full. My comments follow. I have deliberately avoided mentioning points that others have already raised, to keep things shorter. First of all, after I

Re: [Python-Dev] PEP 376

2009-07-01 Thread Tarek Ziadé
On Wed, Jul 1, 2009 at 1:44 PM, Paul Moore wrote: > "The problem is that many people use easy_install or pip to install > their packages..." > > As already noted by others, it's not clear why this is a problem. But > worse is the fact that the paragraph reads to me as saying that > easy_install/pip

Re: [Python-Dev] PEP 376

2009-07-01 Thread Tarek Ziadé
Right, the API part is almost empty, http://docs.python.org/distutils/apiref.html I'll complete it for the relevant part. On Wed, Jul 1, 2009 at 2:37 PM, Paul Moore wrote: > 2009/7/1 Paul Moore : >> One other thought. You haven't documented the DistributionMetaData class. The > > Just noticed th

Re: [Python-Dev] PEP 376

2009-07-01 Thread Tarek Ziadé
On Wed, Jul 1, 2009 at 10:35 AM, Paul Moore wrote: > 2009/7/1 Tarek Ziadé : >>> That (at least as I read it) is a function, not a command. >>> If it is a command, give an example of its use from the command line >>> for us poor "don't want to research" people.  If the following works: >>> >>>    $

Re: [Python-Dev] PEP 376

2009-07-01 Thread Nick Coghlan
Kevin Teague wrote: > Uninstall as a command feels a little weird. Since "python setup.py > [some-command]" implies that the setup.py contains information about the > distribution that the command is being applied to. So instead of: > > $ python setup.py uninstall some_package > > It could just b

Re: [Python-Dev] PEP 376

2009-07-01 Thread Tarek Ziadé
On Wed, Jul 1, 2009 at 2:27 PM, Nick Coghlan wrote: > However, having uninstall as a command supported by setup.py also makes > a certain amount of sense. > Yes, that could be an alias that just calls the uninstall global function using the distribution name. __

Re: [Python-Dev] PEP 376

2009-07-01 Thread Michael Foord
Kevin Teague wrote: On Jun 30, 2009, at 4:46 PM, Tarek Ziadé wrote: On Tue, Jun 30, 2009 at 10:06 PM, Scott David Daniels wrote: Tarek Ziadé wrote: On Tue, Jun 30, 2009 at 8:37 PM, Paul Moore wrote: [1] I'd actually like it if the PEP defined an uninstall command - something like "python