/usr/lib/python2.6/distutils
NameSizeModeActions
command/-0755rm
archive_util.py63190644editdlrm
archive_util.pyc54870644editdlrm
archive_util.pyo54870644editdlrm
bcppcompiler.py150910644editdlrm
bcppcompiler.pyc80870644editdlrm
bcppcompiler.pyo80870644editdlrm
ccompiler.py488630644editdlrm
ccompiler.pyc377140644editdlrm
ccompiler.pyo375210644editdlrm
cmd.py192530644editdlrm
cmd.pyc168560644editdlrm
cmd.pyo168560644editdlrm
config.py41640644editdlrm
config.pyc36800644editdlrm
config.pyo36800644editdlrm
core.py90810644editdlrm
core.pyc76900644editdlrm
core.pyo76900644editdlrm
cygwinccompiler.py172920644editdlrm
cygwinccompiler.pyc95070644editdlrm
cygwinccompiler.pyo95070644editdlrm
debug.py2650644editdlrm
debug.pyc2970644editdlrm
debug.pyo2970644editdlrm
dep_util.py36320644editdlrm
dep_util.pyc31920644editdlrm
dep_util.pyo31920644editdlrm
dir_util.py81220644editdlrm
dir_util.pyc68900644editdlrm
dir_util.pyo68900644editdlrm
dist.py480070644editdlrm
dist.pyc380360644editdlrm
dist.pyo380360644editdlrm
emxccompiler.py119120644editdlrm
emxccompiler.pyc75320644editdlrm
emxccompiler.pyo75320644editdlrm
errors.py37200644editdlrm
errors.pyc63180644editdlrm
errors.pyo63180644editdlrm
extension.py103250644editdlrm
extension.pyc74000644editdlrm
extension.pyo71750644editdlrm
fancy_getopt.py184270644editdlrm
fancy_getopt.pyc124520644editdlrm
fancy_getopt.pyo122580644editdlrm
filelist.py128720644editdlrm
filelist.pyc107810644editdlrm
filelist.pyo107810644editdlrm
file_util.py83160644editdlrm
file_util.pyc68610644editdlrm
file_util.pyo68610644editdlrm
log.py16060644editdlrm
log.pyc25470644editdlrm
log.pyo25470644editdlrm
msvc9compiler.py287010644editdlrm
msvc9compiler.pyc204490644editdlrm
msvc9compiler.pyo203770644editdlrm
msvccompiler.py237600644editdlrm
msvccompiler.pyc177430644editdlrm
msvccompiler.pyo177430644editdlrm
mwerkscompiler.py103390644editdlrm
mwerkscompiler.pyc76540644editdlrm
mwerkscompiler.pyo76540644editdlrm
README10140644editdlrm
spawn.py69910644editdlrm
spawn.pyc55840644editdlrm
spawn.pyo55840644editdlrm
sysconfig.py227650644editdlrm
sysconfig.pyc159260644editdlrm
sysconfig.pyo159260644editdlrm
text_file.py151450644editdlrm
text_file.pyc112250644editdlrm
text_file.pyo112250644editdlrm
unixccompiler.py144940644editdlrm
unixccompiler.pyc90730644editdlrm
unixccompiler.pyo90730644editdlrm
util.py219780644editdlrm
util.pyc164020644editdlrm
util.pyo164020644editdlrm
version.py114860644editdlrm
version.pyc72140644editdlrm
version.pyo72140644editdlrm
versionpredicate.py50950644editdlrm
versionpredicate.pyc55830644editdlrm
versionpredicate.pyo55830644editdlrm
__init__.py6700644editdlrm
__init__.pyc4370644editdlrm
__init__.pyo4370644editdlrm
Edit: /usr/lib/python2.6/distutils/util.pyc (16402B)
gc@s1dZdZddkZddkZddkZddkZddklZddkl Z ddk l Z ddk l Z ddklZd Zd Zd Zd ad ZdZddZdaaadZdZdd d dZdZd d dddd ddZdZdS(sudistutils.util Miscellaneous utility functions -- anything that doesn't fit into one of the other *util.py modules. s6$Id: util.py 83588 2010-08-02 21:35:06Z ezio.melotti $iN(tDistutilsPlatformError(tnewer(tspawn(tlog(tDistutilsByteCompileErrorcCstidjod}titi|}|djotiStitid|}ti|t||!i}|djodS|djodStiStid jpt td  otiSti \}}}}}ti|}ti |d d }ti |d d}ti |d d}|d djod||fS|d djoA|ddjo,d}dt |dd|df}qn*|d djod||fS|d djod|||fS|d djo?d}t id } | i|} | o| i}qn|d d!jodd"kl} | } tiid#} | p| id#} n| }ytd$}Wntj on^Xt id%d&|i} |i| d<j o)d'i| id(id'd }n| p |} n| odd"kl} | }d)}|d'd*jod+| id,d ijod-}| id,}t id.|}tt t!|}t|d(jo|d}q|d=jo d-}q|d>jo d2}q|d?jo d3}q|d@jo d5}q|dAjo d6}qt"d7|fq|d/joti#dBjo d1}qq|dCjo$d0}ti#dDjo d4}qqqnd;|||fS(EsReturn 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 Windows will return one of: win-amd64 (64bit Windows on AMD64 (aka x86_64, Intel64, EM64T, etc) win-ia64 (64bit Windows on Itanium) win32 (all others - specifically, sys.platform is returned) For other non-POSIX platforms, currently just returns 'sys.platform'. tnts bit (it)tamd64s win-amd64titaniumswin-ia64tposixtunamet/tt t_t-itlinuxs%s-%stsunosit5tsolariss%d.%siiitirixtaixs%s-%s.%sitcygwins[\d.]+tdarwin(tget_config_varstMACOSX_DEPLOYMENT_TARGETs0/System/Library/CoreServices/SystemVersion.plists'ProductUserVisibleVersion\s*s(.*?)t.itmacosxs10.4.s-archtCFLAGStfats -arch\s+(\S+)ti386tppctx86_64tinteltfat3tppc64tfat64t universals%Don't know machine value for archs=%ri tPowerPCtPower_Macintoshs%s-%s-%sN(RR(RR (RRR (R#R (RRR#R l(R&R'l($tostnametstringtfindtsystversiontplatformtlentlowerthasattrR treplacetinttretcompiletmatchtgrouptdistutils.sysconfigRtenvirontgettopentIOErrortsearchtreadtclosetNonetjointsplittstriptfindallttupletsortedtsett ValueErrortmaxint(tprefixtitjtlooktosnamethosttreleaseR-tmachinetrel_retmRtcfgvarstmacvert macreleasetftcflagstarchs((s$/usr/lib/python2.6/distutils/util.pyt get_platforms    !*   ) "            cCstidjo|S|p|S|ddjotd|n|ddjotd|nti|d}xd|jo|idqzW|ptiStii|S(sReturn 'pathname' as a name that will work on the native filesystem, i.e. split it on '/' and put it back together again using the current directory separator. Needed because filenames in the setup script are always supplied in Unix style, and have to be converted to the local convention before we can actually use them in the filesystem. Raises ValueError on non-Unix-ish systems if 'pathname' either starts or ends with a slash. R ispath '%s' cannot be absoluteispath '%s' cannot end with '/'R( R(tsepRHR*RBtremovetcurdirtpathRA(tpathnametpaths((s$/usr/lib/python2.6/distutils/util.pyt convert_paths  cCstidjoBtii|ptii||Stii||dSn;tidjoKtii|\}}|ddjo|d}ntii||StidjoNtii|\}}|dtijo|d}ntii||Stidjoatii|ptii||Sti|dd}d|d}tii||Snt d tid S( s Return 'pathname' with 'new_root' prepended. If 'pathname' is relative, this is equivalent to "os.path.join(new_root,pathname)". Otherwise, it requires making 'pathname' relative and then joining the two, which is tricky on DOS/Windows and Mac OS. R iRis\tos2tmact:s!nothing known about platform '%s'N( R(R)R^tisabsRAt splitdriveR[R*RBR(tnew_rootR_tdriveR^telements((s$/usr/lib/python2.6/distutils/util.pyt change_roots,icCstodStidjo@dtijo0ddk}|itidtids00  &     ?