[py-dev] revised proposal for py.test/tool install

schmir at gmail.com schmir at gmail.com
Wed Dec 23 11:41:56 CET 2009


holger krekel <holger at merlinux.eu> writes:

> Hi Ralf,
>
>> >
>> > Sounds fine? 
>> 
>> no. these things should really be handled by distribute (or
>> setuptools/distutils). there is nothing special about the py.test
>> script. just imagine a world where every python package X came with a
>> custom X_INHIBIT_VERSIONINSTALL environment variable. 
>
> which part do you disagree on?  Everything? 
>
> If so, I don't get it - does setuptools currently (pje and distribute variant) 
> care for installing binaries with version-suffixes?  
>

afaik no

> Would it even generally make sense?  Most scripts (see the the py.* helpers)
> probably don't need version suffixes.  With py.test it's special because a user
> program runs in its very interpreter context (unless distributed testing is
> used) and testing against different interpreters is a common need. 

I disagree with this point. And even if I would agree, I still think
that using the major and minor number as a suffix is insufficient for
some people (think about the same interpreter version compiled for 32 or
64 bit architecture, or wide vs narrow unicode builds, or different
compilers). 

>
>> If you really like it that way, try to persuade the distribute guys to
>> implement that feature (probably with a switch in ~/.pydistutils.cfg)
>
> Will see to talk to Tarek Ziade or other distutils people about this. 

makes sense. they are very responsive. I can see how this feature is
useful to some people. 

> Not sure i'd like to wait until that becomes mainstream and certainly
> don't want to try to convince PJE whose setuptools package is still
> in wide use. 

that would probably take a long time... :)

regards,
- ralf



More information about the Pytest-dev mailing list