/usr/lib64/python2.7/distutils
NameSizeModeActions
command/-0755rm
archive_util.py82190644editdlrm
archive_util.pyc76010644editdlrm
archive_util.pyo76010644editdlrm
bcppcompiler.py149410644editdlrm
bcppcompiler.pyc78820644editdlrm
bcppcompiler.pyo78820644editdlrm
ccompiler.py467260644editdlrm
ccompiler.pyc368820644editdlrm
ccompiler.pyo367410644editdlrm
cmd.py192700644editdlrm
cmd.pyc168040644editdlrm
cmd.pyo168040644editdlrm
config.py41340644editdlrm
config.pyc35650644editdlrm
config.pyo35650644editdlrm
core.py90190644editdlrm
core.pyc75360644editdlrm
core.pyo75360644editdlrm
cygwinccompiler.py177350644editdlrm
cygwinccompiler.pyc98250644editdlrm
cygwinccompiler.pyo98250644editdlrm
debug.py1620644editdlrm
debug.pyc2540644editdlrm
debug.pyo2540644editdlrm
dep_util.py35090644editdlrm
dep_util.pyc31800644editdlrm
dep_util.pyo31800644editdlrm
dir_util.py78680644editdlrm
dir_util.pyc67860644editdlrm
dir_util.pyo67860644editdlrm
dist.py500490644editdlrm
dist.pyc391760644editdlrm
dist.pyo391760644editdlrm
emxccompiler.py119310644editdlrm
emxccompiler.pyc74670644editdlrm
emxccompiler.pyo74670644editdlrm
errors.py34940644editdlrm
errors.pyc62850644editdlrm
errors.pyo62850644editdlrm
extension.py109040644editdlrm
extension.pyc74120644editdlrm
extension.pyo71860644editdlrm
fancy_getopt.py179480644editdlrm
fancy_getopt.pyc119580644editdlrm
fancy_getopt.pyo117810644editdlrm
filelist.py126890644editdlrm
filelist.pyc107560644editdlrm
filelist.pyo107560644editdlrm
file_util.py81310644editdlrm
file_util.pyc67500644editdlrm
file_util.pyo67500644editdlrm
log.py16860644editdlrm
log.pyc27860644editdlrm
log.pyo27860644editdlrm
msvc9compiler.py310040644editdlrm
msvc9compiler.pyc214970644editdlrm
msvc9compiler.pyo214240644editdlrm
msvccompiler.py236370644editdlrm
msvccompiler.pyc175250644editdlrm
msvccompiler.pyo175250644editdlrm
README2950644editdlrm
spawn.py86480644editdlrm
spawn.pyc64270644editdlrm
spawn.pyo64270644editdlrm
sysconfig.py177070644editdlrm
sysconfig.py.debug-build176220644editdlrm
sysconfig.pyc134040644editdlrm
sysconfig.pyo134040644editdlrm
text_file.py124280644editdlrm
text_file.pyc92590644editdlrm
text_file.pyo92590644editdlrm
unixccompiler.py142220644editdlrm
unixccompiler.py.distutils-rpath136770644editdlrm
unixccompiler.pyc82290644editdlrm
unixccompiler.pyo82290644editdlrm
util.py182360644editdlrm
util.pyc143860644editdlrm
util.pyo143860644editdlrm
version.py114330644editdlrm
version.pyc72080644editdlrm
version.pyo72080644editdlrm
versionpredicate.py50950644editdlrm
versionpredicate.pyc55420644editdlrm
versionpredicate.pyo55420644editdlrm
__init__.py2360644editdlrm
__init__.pyc4150644editdlrm
__init__.pyo4150644editdlrm
Edit: /usr/lib64/python2.7/distutils/archive_util.pyc (7601B)
ó {fc@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./usr/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./usr/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./usr/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./usr/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./usr/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./usr/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./usr/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./usr/lib64/python2.7/distutils/archive_util.pyts<       E>