[Distutils] setup.cfg new format proposal

Tarek Ziadé ziade.tarek at gmail.com
Wed Sep 16 12:23:00 CEST 2009


On Wed, Sep 16, 2009 at 10:21 AM, Greg Ewing
<greg.ewing at canterbury.ac.nz> wrote:
> Sridhar Ratnakumar wrote:
>
>>   >>> sys.platform
>>   'linux2'
>>
>> "linux2"? What are the possible values for `sys.platform`?
>
> This is why I usually write Python code that checks sys.platform
> like
>
>  if sys.platform.startswith("linux"):
>    ...
>
> So the condition language for the metadata needs a "startswith"
> operator, I think.

What about 'in' ?

'linux' in sys.platform should cover all cases

>
> --
> Greg
> _______________________________________________
> Distutils-SIG maillist  -  Distutils-SIG at python.org
> http://mail.python.org/mailman/listinfo/distutils-sig
>



-- 
Tarek Ziadé | http://ziade.org | オープンソースはすごい!


More information about the Distutils-SIG mailing list