On 11 Sep, 2009, at 17:14, Tarek Ziadé wrote:


- os_sysname
- os_nodename
- os_release
- os_version
- os_machine

Os.uname() does have a usability issue: the various values don't have a clear meaning, nor even a clear mapping to "marketing" numbers.

Examples:
* os_sysname is "darwin" on a macosx machine, not something that would be clear to a novice OSX developer * os_release is not necessarily the same as the version of the OS but returns the version of the kernel. Examples of operating systems where the kernel version number and OS version number aren't the same: Solaris, MacOSX, and of course Linux

os_nodename shouldn't be used in setup.cfg at all, I don't see a good reason to include the hostname in check conditions in setup.cfg. There's always the full setup.py if you want complicated conditions.

Ronald

Attachment: smime.p7s
Description: S/MIME cryptographic signature

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

Reply via email to