[Distutils] setup.cfg new format proposal

Greg Ewing greg.ewing at canterbury.ac.nz
Wed Sep 16 10:21:18 CEST 2009


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.

-- 
Greg


More information about the Distutils-SIG mailing list