|
Server : Apache/2.2.17 (Unix) mod_ssl/2.2.17 OpenSSL/0.9.8e-fips-rhel5 DAV/2 PHP/5.2.17 System : Linux localhost 2.6.18-419.el5 #1 SMP Fri Feb 24 22:47:42 UTC 2017 x86_64 User : nobody ( 99) PHP Version : 5.2.17 Disable Function : NONE Directory : /proc/21571/root/usr/lib64/python2.4/distutils/ |
Upload File : |
m
=5Dc @ s d Z d Z d k Z d k Z d k Z d k Z d k l Z d k l Z d k
l Z d k l
Z
d Z d Z d Z d
a d Z d Z d
d Z d a a a d Z d Z d d
d
d Z d Z d
d
d d d d
d d Z d Z d S( su distutils.util
Miscellaneous utility functions -- anything that doesn't fit into
one of the other *util.py modules.
s1 $Id: util.py 36560 2004-07-18 06:16:08Z tim_one $N( s DistutilsPlatformError( s newer( s spawn( s logc C s t i d j p t t d o t i Sn t i \ } } } } } t i | } t i
| d d } t i
| d d } | d d j o d | | f Sn | d d
j oA | d d j o, d
} d t | d d | d f } qn | d d j o d | | f Snw | d d j o d | | | f SnQ | d d j o? d } t i d } | i | } | o | i } qn d | | | f S( s Return a string that identifies the current platform. This is used
mainly to distinguish platform-specific build directories and
platform-specific built distributions. Typically includes the OS name
and version and the architecture (as supplied by 'os.uname()'),
although the exact information included depends on the OS; eg. for IRIX
the architecture isn't particularly important (IRIX only runs on SGI
hardware), but for Linux the kernel version isn't particularly
important.
Examples of returned values:
linux-i586
linux-alpha (?)
solaris-2.6-sun4u
irix-5.3
irix64-6.2
For non-POSIX platforms, currently just returns 'sys.platform'.
t posixt unamet /t t t _i t linuxs %s-%st sunosi t 5t solariss %d.%si i i t irixt aixs %s-%s.%si t cygwins [\d.]+s %s-%s-%sN( t ost namet hasattrt syst platformR t osnamet hostt releaset versiont machinet stringt lowert replacet intt ret compilet rel_ret matcht mt group( R R R R R R R ( ( t&