Re: [Distutils] Single version number

2009-07-11 Thread Zooko Wilcox-O'Hearn
On Jul 10, 2009, at 7:24 AM, Barry Warsaw wrote: On Jul 10, 2009, at 8:58 AM, Marius Gedminas wrote: 1) put __version__ = '4.2' in yourpackage/__init__.py, have setup.py do from yourpackage import __version__ and pass that to setup() This is generally what I do and it seems to work pret

Re: [Distutils] Single version number

2009-07-11 Thread Zooko Wilcox-O'Hearn
On Jul 10, 2009, at 6: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 have a script that reads revision control history an

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

2009-07-11 Thread David Lyon
On Sat, 11 Jul 2009 07:25:10 -0400, Jim Fulton wrote: > Well, I think it's still better asked over on web-sig, as I don't > *think* it's primarily a packaging question. I'll try to make a more > packaging-centric reply here. A major problem with the low cost > providers is that you don't ge

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

2009-07-11 Thread Jim Fulton
On Jul 11, 2009, at 7:04 AM, David Lyon wrote: On Sat, 11 Jul 2009 06:54:53 -0400, Jim Fulton wrote: This is really off topic. I'll reply but I'll switch the list to web- sig. Why is there so many problems with python hosting? What I mean is that any linux host that can run python shou

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

2009-07-11 Thread David Lyon
On Sat, 11 Jul 2009 06:54:53 -0400, Jim Fulton wrote: > This is really off topic. I'll reply but I'll switch the list to web- > sig. >> >> Why is there so many problems with python hosting? What I mean >> is that any linux host that can run python should be able to >> do web hosting easily. Say

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

2009-07-11 Thread Jim Fulton
This is really off topic. I'll reply but I'll switch the list to web- sig. Jim On Jul 11, 2009, at 5:58 AM, David Lyon wrote: On Fri, 10 Jul 2009 10:02:39 -0400, Jim Fulton wrote: I was really just pointing out that there isn't anythin special about web developers. Really the need relates

Re: [Distutils] Single version number

2009-07-11 Thread Marius Gedminas
On Fri, Jul 10, 2009 at 09:29:51AM -0400, Jean-Paul Calderone wrote: > 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 kno

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

2009-07-11 Thread David Lyon
On Fri, 10 Jul 2009 10:02:39 -0400, Jim Fulton wrote: > I was really just pointing out that there isn't > anythin special about web developers. Really the need relates to > application development. That is, wen application developer's needs > aren't really different from other application