/opt/alt/python27/lib64/python2.7/distutils
NameSizeModeActions
command/-0755rm
archive_util.py82190644editdlrm
archive_util.pyc77050644editdlrm
archive_util.pyo77050644editdlrm
bcppcompiler.py149410644editdlrm
bcppcompiler.pyc79990644editdlrm
bcppcompiler.pyo79990644editdlrm
ccompiler.py467260644editdlrm
ccompiler.pyc375970644editdlrm
ccompiler.pyo374560644editdlrm
cmd.py192700644editdlrm
cmd.pyc172850644editdlrm
cmd.pyo172850644editdlrm
config.py41340644editdlrm
config.pyc36560644editdlrm
config.pyo36560644editdlrm
core.py90190644editdlrm
core.pyc75880644editdlrm
core.pyo75880644editdlrm
cygwinccompiler.py177350644editdlrm
cygwinccompiler.pyc99810644editdlrm
cygwinccompiler.pyo99810644editdlrm
debug.py1620644editdlrm
debug.pyc2670644editdlrm
debug.pyo2670644editdlrm
dep_util.py35090644editdlrm
dep_util.pyc32320644editdlrm
dep_util.pyo32320644editdlrm
dir_util.py78680644editdlrm
dir_util.pyc68770644editdlrm
dir_util.pyo68770644editdlrm
dist.py500490644editdlrm
dist.pyc400470644editdlrm
dist.pyo400470644editdlrm
emxccompiler.py119310644editdlrm
emxccompiler.pyc75840644editdlrm
emxccompiler.pyo75840644editdlrm
errors.py34940644editdlrm
errors.pyc65450644editdlrm
errors.pyo65450644editdlrm
extension.py109040644editdlrm
extension.pyc74640644editdlrm
extension.pyo72380644editdlrm
fancy_getopt.py179480644editdlrm
fancy_getopt.pyc122310644editdlrm
fancy_getopt.pyo120540644editdlrm
filelist.py126890644editdlrm
filelist.pyc109770644editdlrm
filelist.pyo109770644editdlrm
file_util.py81310644editdlrm
file_util.pyc68150644editdlrm
file_util.pyo68150644editdlrm
log.py16860644editdlrm
log.pyc29420644editdlrm
log.pyo29420644editdlrm
msvc9compiler.py310040644editdlrm
msvc9compiler.pyc219000644editdlrm
msvc9compiler.pyo218270644editdlrm
msvccompiler.py236370644editdlrm
msvccompiler.pyc178630644editdlrm
msvccompiler.pyo178630644editdlrm
README2950644editdlrm
spawn.py86480644editdlrm
spawn.pyc65180644editdlrm
spawn.pyo65180644editdlrm
sysconfig.py177070644editdlrm
sysconfig.py.debug-build176220644editdlrm
sysconfig.pyc136090644editdlrm
sysconfig.pyo136090644editdlrm
text_file.py124280644editdlrm
text_file.pyc94020644editdlrm
text_file.pyo94020644editdlrm
unixccompiler.py142220644editdlrm
unixccompiler.py.distutils-rpath136770644editdlrm
unixccompiler.pyc83850644editdlrm
unixccompiler.pyo83850644editdlrm
util.py182360644editdlrm
util.pyc145680644editdlrm
util.pyo145680644editdlrm
version.py114330644editdlrm
version.pyc74030644editdlrm
version.pyo74030644editdlrm
versionpredicate.py50950644editdlrm
versionpredicate.pyc56330644editdlrm
versionpredicate.pyo56330644editdlrm
__init__.py2360644editdlrm
__init__.pyc4280644editdlrm
__init__.pyo4280644editdlrm
Edit: /opt/alt/python27/lib64/python2.7/distutils/archive_util.pyc (7705B)
ó Þ[ bc@s“dZdZddlZddlmZddlZddlmZddlm Z ddl m Z ddl m Z ydd lmZWnek r¡dZnXydd lmZWnek rÏdZnXd „Zd „Zd ddddd„Zddd„Ziedgdfd6ed gdfd6ed!gdfd6ed"gdfd6egdfd6Zd„Zddddddd„ZdS(#sodistutils.archive_util Utility functions for creating archive files (tarballs, zip files, that sort of thing).s$Id$iÿÿÿÿN(twarn(tDistutilsExecError(tspawn(tmkpath(tlog(tgetpwnam(tgetgrnamcCs^tdks|dkrdSyt|ƒ}Wntk rEd}nX|dk rZ|dSdS(s"Returns a gid, given a group name.iN(RtNonetKeyError(tnametresult((s;/opt/alt/python27/lib64/python2.7/distutils/archive_util.pyt_get_gids   cCs^tdks|dkrdSyt|ƒ}Wntk rEd}nX|dk rZ|dSdS(s"Returns an uid, given a user name.iN(RRR(R R ((s;/opt/alt/python27/lib64/python2.7/distutils/archive_util.pyt_get_uid's   tgzipics²idd6dd6dd6dd6}idd6dd6d d6}|dk rg||jƒkrgtd ‚n|d } |dkr–| |j|dƒ7} nttjj| ƒd |ƒd dl} t j dƒt ˆƒ‰t ˆƒ‰‡‡‡‡fd†} |sC| j | d||ƒ} z| j|d| ƒWd| jƒXn|dkr®tdtƒ| ||} tjdkr‹|| | g}n|d| g}t|d |ƒ| S| S(s-Create a (possibly compressed) tar file from all the files under 'base_dir'. 'compress' must be "gzip" (the default), "compress", "bzip2", or None. (compress will be deprecated in Python 3.2) 'owner' and 'group' can be used to define an owner and a group for the archive that is being built. If not provided, the current owner and group will be used. The output tar file will be named 'base_dir' + ".tar", possibly plus the appropriate compression extension (".gz", ".bz2" or ".Z"). Returns the output filename. tgzR tbz2tbzip2ttcompresss.gzs.bz2s.ZsEbad value for 'compress': must be None, 'gzip', 'bzip2' or 'compress's.tartdry_runiÿÿÿÿNsCreating tar archivecsFˆdk r!ˆ|_ˆ|_nˆdk rBˆ|_ˆ|_n|S(N(Rtgidtgnametuidtuname(ttarinfo(RtgrouptownerR(s;/opt/alt/python27/lib64/python2.7/distutils/archive_util.pyt _set_uid_gid[s      sw|%stfilters'compress' will be deprecated.twin32s-f(Rtkeyst ValueErrortgetRtostpathtdirnamettarfileRtinfoR R topentaddtcloseRtPendingDeprecationWarningtsystplatformR(t base_nametbase_dirRtverboseRRRttar_compressiont compress_extt archive_nameR$Rttartcompressed_nametcmd((RRRRs;/opt/alt/python27/lib64/python2.7/distutils/archive_util.pyt make_tarball3s8"          c Cs-yddl}Wntk r)d}nX|d}ttjj|ƒd|ƒ|dkrµ|rkd}nd}y td|||gd|ƒWq)tk r±td|‚q)Xntt j d ||ƒ|s)|j |d d |j ƒ}|tj kr<tjjtjj|d ƒƒ}|j||ƒt j d |ƒnxÝtj|ƒD]Ì\} } } xR| D]J} tjjtjj| | d ƒƒ}|j||ƒt j d |ƒqbWxe| D]]} tjjtjj| | ƒƒ}tjj|ƒr·|j||ƒt j d |ƒq·q·WqLW|jƒn|S(svCreate a zip file from all the files under 'base_dir'. The output zip file will be named 'base_name' + ".zip". Uses either the "zipfile" Python module (if available) or the InfoZIP "zip" utility (if installed and found on the default search path). If neither tool is available, raises DistutilsExecError. Returns the name of the output zip file. iÿÿÿÿNs.zipRs-rs-rqtzipskunable to create zip file '%s': could neither import the 'zipfile' module nor find a standalone zip utilitys#creating '%s' and adding '%s' to ittwt compressionRs adding '%s'(tzipfilet ImportErrorRRR!R"R#RRRR%tZipFilet ZIP_DEFLATEDtcurdirtnormpathtjointwritetwalktisfileR(( R,R-R.RR9t zip_filenamet zipoptionsR6R"tdirpathtdirnamest filenamesR ((s;/opt/alt/python27/lib64/python2.7/distutils/archive_util.pyt make_zipfileysL           ! $ ! Rsgzip'ed tar-filetgztarRsbzip2'ed tar-filetbztarscompressed tar filetztarsuncompressed tar fileR2sZIP fileR6cCs%x|D]}|tkr|SqWdS(sqReturns the first format from the 'format' list that is unknown. If all formats are known, returns None N(tARCHIVE_FORMATSR(tformatstformat((s;/opt/alt/python27/lib64/python2.7/distutils/archive_util.pytcheck_archive_formats¿s  cCsCtjƒ}|d k rStjd|ƒtjj|ƒ}|sStj|ƒqSn|d krktj}ni|d6} yt |} Wnt k r¦t d|‚nX| d} x"| dD]\} } | | | tjd |ƒtj|ƒnX|S( sêCreate an archive file (eg. zip or tar). 'base_name' is the name of the file to create, minus any format-specific extension; 'format' is the archive format: one of "zip", "tar", "ztar", or "gztar". 'root_dir' is a directory that will be the root directory of the archive; ie. we typically chdir into 'root_dir' before creating the archive. 'base_dir' is the directory where we start archiving from; ie. 'base_dir' will be the common prefix of all files and directories in the archive. 'root_dir' and 'base_dir' both default to the current directory. Returns the name of the archive file. 'owner' and 'group' are used when creating a tar archive. By default, uses the current owner and group. schanging into '%s'Rsunknown archive format '%s'iiR6RRNschanging back to '%s'( R!tgetcwdRRtdebugR"tabspathtchdirR=RLRR(R,RNtroot_dirR-R.RRRtsave_cwdtkwargst format_infotfunctargtvaltfilename((s;/opt/alt/python27/lib64/python2.7/distutils/archive_util.pyt make_archiveÉs2           (RR (RR(RR(RN(t__doc__t __revision__R!twarningsRR*tdistutils.errorsRtdistutils.spawnRtdistutils.dir_utilRt distutilsRtpwdRR:RtgrpRR R R5RHRLROR\(((s;/opt/alt/python27/lib64/python2.7/distutils/archive_util.pyts<       E>