2009/9/15 Sridhar Ratnakumar <sridh...@activestate.com>: > On Tue, 15 Sep 2009 02:00:41 -0700, Tarek Ziadé <ziade.ta...@gmail.com> > wrote: > >> [only_windows] >> condition: sys_platform == 'win32' >> requires: pywin32 > > I am ambivalent about using sys.platform. How do I specify Linux? > > >>> sys.platform > 'linux2' > > "linux2"? What are the possible values for `sys.platform`? Is it even a > well-defined list?
Yes of course, http://docs.python.org/library/sys.html os.uname() also give you more details on the platform/ > What if Linux 3.x comes out .. and the package would stop > using the conditional dependent package (that is dependent on 'linux2')? The same thing that what would happen when Python 4 is out I guess, all distributions will have to change their dependencies list (thus the setup.cfg file) accordingly in their next release. > > cf. http://code.google.com/p/platinfo/issues/detail?id=1 > > -srid > > -- Tarek Ziadé | http://ziade.org | オープンソースはすごい! _______________________________________________ Distutils-SIG maillist - Distutils-SIG@python.org http://mail.python.org/mailman/listinfo/distutils-sig