Re: [Distutils] Single version number

2009-07-10 Thread Floris Bruynooghe
On Fri, Jul 10, 2009 at 10:19:56AM -0400, Gary Poster wrote: > > On Jul 10, 2009, at 9:24 AM, Barry Warsaw wrote: > >> On Jul 10, 2009, at 8:58 AM, Marius Gedminas wrote: >> >>> What do people use to avoid repeating the version number both in the >>> setup.py as well as in application/library code,

Re: [Distutils] Single version number

2009-07-10 Thread Barry Warsaw
On Jul 10, 2009, at 2:07 PM, P.J. Eby wrote: At 09:24 AM 7/10/2009 -0400, Barry Warsaw wrote: On Jul 10, 2009, at 8:58 AM, Marius Gedminas wrote: What do people use to avoid repeating the version number both in the setup.py as well as in application/library code, when the application/library

Re: [Distutils] Single version number

2009-07-10 Thread P.J. Eby
At 09:24 AM 7/10/2009 -0400, Barry Warsaw wrote: On Jul 10, 2009, at 8:58 AM, Marius Gedminas wrote: What do people use to avoid repeating the version number both in the setup.py as well as in application/library code, when the application/library wants to know its own version number? I've see

Re: [Distutils] Single version number

2009-07-10 Thread P.J. Eby
At 03:58 PM 7/10/2009 +0300, Marius Gedminas wrote: What do people use to avoid repeating the version number both in the setup.py as well as in application/library code, when the application/library wants to know its own version number? I've seen several options: 1) put __version__ = '4.2' in

Re: [Distutils] easy_install from behind an http proxy which requires authentication

2009-07-10 Thread Fadhley Salim
One additional fact: I just discovered that the proxy uses NTLM authentication. There's a plugin here: http://code.google.com/p/python-ntlm/ Which allows me to do an NTLM auth on the proxy server - but is there a way to hook this auth-handler into easy_install, but is that even possible? Could t

[Distutils] easy_install from behind an http proxy which requires authentication

2009-07-10 Thread Fadhley Salim
Dear Distutils SIG, I note that easy_install can be used behind a proxy simply by setting the "HTTP_PROXY" environment variable. But what of a proxy which requires authentication? Is there a technique that will allow me to specify some kind of authentication credentials in addition to the addres

Re: [Distutils] Single version number

2009-07-10 Thread Gary Poster
On Jul 10, 2009, at 9:24 AM, Barry Warsaw wrote: On Jul 10, 2009, at 8:58 AM, Marius Gedminas wrote: What do people use to avoid repeating the version number both in the setup.py as well as in application/library code, when the application/library wants to know its own version number? I've s

Re: [Distutils] Single version number

2009-07-10 Thread Ben Finney
Marius Gedminas writes: > What do people use to avoid repeating the version number both in the > setup.py as well as in application/library code, when the > application/library wants to know its own version number? > > I've seen several options: > > 1) put __version__ = '4.2' in yourpackage/_

Re: [Distutils] "setup.py needs to go away" (was [PEP 376] - Open questions on python-dev)

2009-07-10 Thread Jim Fulton
On Jul 10, 2009, at 9:20 AM, Paul Moore wrote: 2009/7/10 Jim Fulton : I don't think this perspective is reflective so much of web development as of application development. Those of us who work on web applications need to provide working applications, often with hard scalability and reli

Re: [Distutils] Single version number

2009-07-10 Thread Jim Fulton
On Jul 10, 2009, at 8:58 AM, Marius Gedminas wrote: What do people use to avoid repeating the version number both in the setup.py as well as in application/library code, when the application/library wants to know its own version number? ... 4) I don't recall actually ever seeing this one,

Re: [Distutils] "setup.py needs to go away" (was [PEP 376] - Open questions on python-dev)

2009-07-10 Thread Jim Fulton
On Jul 10, 2009, at 7:39 AM, David Cournapeau wrote: Jim Fulton wrote: On Jul 10, 2009, at 1:21 AM, David Cournapeau wrote: I think it is important that people who come from different communities participate to this: people who work on web development have problems which are mostly orthog

Re: [Distutils] Single version number

2009-07-10 Thread Jean-Paul Calderone
On Fri, 10 Jul 2009 15:58:32 +0300, Marius Gedminas wrote: What do people use to avoid repeating the version number both in the setup.py as well as in application/library code, when the application/library wants to know its own version number? I've seen several options: 1) put __version__ = '

Re: [Distutils] Single version number

2009-07-10 Thread Barry Warsaw
On Jul 10, 2009, at 8:58 AM, Marius Gedminas wrote: What do people use to avoid repeating the version number both in the setup.py as well as in application/library code, when the application/library wants to know its own version number? I've seen several options: 1) put __version__ = '4.2' in

Re: [Distutils] "setup.py needs to go away" (was [PEP 376] - Open questions on python-dev)

2009-07-10 Thread Paul Moore
2009/7/10 Jim Fulton : > I don't think this perspective is reflective so much of web development as > of application development.  Those of us who work on web applications need > to provide working applications, often with hard scalability and reliability > requirements.  We need to have control ov

[Distutils] Single version number

2009-07-10 Thread Marius Gedminas
What do people use to avoid repeating the version number both in the setup.py as well as in application/library code, when the application/library wants to know its own version number? I've seen several options: 1) put __version__ = '4.2' in yourpackage/__init__.py, have setup.py do from y

Re: [Distutils] "setup.py needs to go away" (was [PEP 376] - Open questions on python-dev)

2009-07-10 Thread David Cournapeau
Jim Fulton wrote: > > On Jul 10, 2009, at 1:21 AM, David Cournapeau wrote: >> I think it is important that people who come from different communities >> participate to this: people who work on web development have problems >> which are mostly orthogonal to mine, but I get the impression that most >

Re: [Distutils] "setup.py needs to go away" (was [PEP 376] - Open questions on python-dev)

2009-07-10 Thread Jim Fulton
On Jul 10, 2009, at 1:21 AM, David Cournapeau wrote: I think it is important that people who come from different communities participate to this: people who work on web development have problems which are mostly orthogonal to mine, but I get the impression that most people on distutils-sig