Re: [Distutils] current preferred way to specify dependencies? future?

2010-01-11 Thread sstein...@gmail.com
On Jan 11, 2010, at 8:01 PM, David Lyon wrote: > When I run the same thing: > >> import platform >> platform.machine() >> 'x86' Just as a data point, I get: import platform platform.machine() 'i386' on a dual processor quad core Mac Pro. S ___ Distu

Re: [Distutils] current preferred way to specify dependencies? future?

2010-01-11 Thread David Lyon
Martin, > py> import platform > py> platform.machine() > 'i686' > > 'i686' maps very well to a real machine on the market, namely to the > machine on which I'm typing this right now. Ok. When I run the same thing: >import platform >platform.machine() >'x86' So what is being proposed isn

Re: [Distutils] current preferred way to specify dependencies? future?

2010-01-07 Thread Martin v. Löwis
>>> Haven't seen a '386 for over ten years.. Intel have standardised >>> to calling everything 'Pentium' pretty much since at least 2000. >> Irrelevant: > > I don't see how it is irrelevent that the constants don't > map to any 'real' machines on the market. Why do you say that? py> import platf

Re: [Distutils] current preferred way to specify dependencies? future?

2010-01-07 Thread David Lyon
>> > os.machine == 'i386' > > It should be platform.machine, not os.machine. > >> Haven't seen a '386 for over ten years.. Intel have standardised >> to calling everything 'Pentium' pretty much since at least 2000. > > Irrelevant: I don't see how it is irrelevent that the constants don't map to a

Re: [Distutils] current preferred way to specify dependencies? future?

2010-01-06 Thread Tres Seaver
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 John Gabriele wrote: > On Tue, Jan 5, 2010 at 10:44 PM, David Lyon wrote: >> Hi John, >> >>> What is expected to be the standard way to do this in the near future? >> PEP-345 says: >> >> > Requires-Dist: pywin32 (>1.0); sys.platform == 'win32' >> >

Re: [Distutils] current preferred way to specify dependencies? future?

2010-01-06 Thread Tarek Ziadé
On Wed, Jan 6, 2010 at 3:35 PM, John Gabriele wrote: > On Tue, Jan 5, 2010 at 10:44 PM, David Lyon wrote: >> >> Hi John, >> >>> What is expected to be the standard way to do this in the near future? >> >> PEP-345 says: >> >>  > Requires-Dist: pywin32 (>1.0); sys.platform == 'win32' >>  > Obsolete

Re: [Distutils] current preferred way to specify dependencies? future?

2010-01-06 Thread Sridhar Ratnakumar
On 1/6/2010 8:23 AM, John Gabriele wrote: On Wed, Jan 6, 2010 at 11:07 AM, Carl Meyer wrote: > > {snip} Following the principle of least surprise I would assume > they would be requires_dist, provides_dist, etc, and would take lists of > strings, in the same format as in the PEP (name follow

Re: [Distutils] current preferred way to specify dependencies? future?

2010-01-06 Thread Carl Meyer
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hi John, Isn't distutils-sig fun? Ask a simple question, get a recycled rant that doesn't answer your question... ;-) John Gabriele wrote: [snip] > I'm a bit confused myself... PEP-345 says it "describes a mechanism > for adding metadata to Python pa

Re: [Distutils] current preferred way to specify dependencies? future?

2010-01-06 Thread Carl Meyer
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 John Gabriele wrote: > Great. Thanks. Then, I'd like to put: > > requires_dist=['CoolStuff>=2.0.0', 'ReallyNeatStuff>=1.5.5'], > > into my `setup()` call. Currenlty, I've got this at the top of my `setup.py`: > > from distutils.core import s

Re: [Distutils] current preferred way to specify dependencies? future?

2010-01-06 Thread John Gabriele
On Wed, Jan 6, 2010 at 11:07 AM, Carl Meyer wrote: > > {snip} Following the principle of least surprise I would assume > they would be requires_dist, provides_dist, etc, and would take lists of > strings, in the same format as in the PEP (name followed by version spec > in parenths). > {snip} > >>

Re: [Distutils] current preferred way to specify dependencies? future?

2010-01-06 Thread Floris Bruynooghe
Hello John I'll attempt to actually answer your question instead of just voicing disagreement with a current proposal about meta-data. On Tue, Jan 05, 2010 at 10:29:45PM -0500, John Gabriele wrote: > What is currently the preferred way to specify (in your simple > setup.py file) that your distrib

Re: [Distutils] current preferred way to specify dependencies? future?

2010-01-06 Thread John Gabriele
On Tue, Jan 5, 2010 at 10:44 PM, David Lyon wrote: > > Hi John, > >> What is expected to be the standard way to do this in the near future? > > PEP-345 says: > >  > Requires-Dist: pywin32 (>1.0); sys.platform == 'win32' >  > Obsoletes-Dist: pywin31; sys.platform == 'win32' >  > Requires-Dist: foo

Re: [Distutils] current preferred way to specify dependencies? future?

2010-01-05 Thread Martin v. Löwis
> > os.machine == 'i386' It should be platform.machine, not os.machine. > Haven't seen a '386 for over ten years.. Intel have standardised > to calling everything 'Pentium' pretty much since at least 2000. Irrelevant: Python 2.5.4 (r254:67916, Nov 19 2009, 19:46:21) [GCC 4.3.4] on linux2 Type

Re: [Distutils] current preferred way to specify dependencies? future?

2010-01-05 Thread David Lyon
Hi John, > What is expected to be the standard way to do this in the near future? PEP-345 says: > Requires-Dist: pywin32 (>1.0); sys.platform == 'win32' > Obsoletes-Dist: pywin31; sys.platform == 'win32' > Requires-Dist: foo (1,!=1.3); os.machine == 'i386' > Requires-Dist: bar; python_versi

[Distutils] current preferred way to specify dependencies? future?

2010-01-05 Thread John Gabriele
Hi, What is currently the preferred way to specify (in your simple setup.py file) that your distribution depends upon a couple of other distributions? (All located at the PyPI) What is expected to be the standard way to do this in the near future? Also, is it better to specify that your distribu