PNG  IHDR;IDATxܻn0K )(pA 7LeG{ §㻢|ذaÆ 6lذaÆ 6lذaÆ 6lom$^yذag5bÆ 6lذaÆ 6lذa{ 6lذaÆ `}HFkm,mӪôô! x|'ܢ˟;E:9&ᶒ}{v]n&6 h_tڠ͵-ҫZ;Z$.Pkž)!o>}leQfJTu іچ\X=8Rن4`Vwl>nG^is"ms$ui?wbs[m6K4O.4%/bC%t Mז -lG6mrz2s%9s@-k9=)kB5\+͂Zsٲ Rn~GRC wIcIn7jJhۛNCS|j08yiHKֶۛkɈ+;SzL/F*\Ԕ#"5m2[S=gnaPeғL lذaÆ 6l^ḵaÆ 6lذaÆ 6lذa; _ذaÆ 6lذaÆ 6lذaÆ RIENDB`  pY&@sdZddlZddlmZddlZyddlZWnek rXdZYnXddlmZddl m Z ddl m Z ddl mZyddlmZWnek rdZYnXydd lmZWnek rdZYnXd d Zd d ZdddddddZddddZded&gdfded'gdfded(gdfded)gdfded*gdfd egd!fiZd"d#Zddddddd$d%ZdS)+zodistutils.archive_util Utility functions for creating archive files (tarballs, zip files, that sort of thing).N)warn)DistutilsExecError)spawn)mkpath)log)getpwnam)getgrnamc Cs_tdks|dkrdSyt|}Wntk rFd}YnX|dk r[|dSdS)z"Returns a gid, given a group name.N)rKeyError)nameresultr +/opt/python35/lib/python3.5/archive_util.py_get_gids   rc Cs_tdks|dkrdSyt|}Wntk rFd}YnX|dk r[|dSdS)z"Returns an uid, given a user name.Nr )rr )r r r r r_get_uid+s   rgzipc sddddddddddi}dd dd dd dd i}|dk rl||jkrltd |d} |dkr| |j|d7} ttjj| d|ddl} tj dt t fdd} |sE| j | d||} z| j |d| Wd| jX|dkrtdt| ||} tjdkr|| | g}n|d| g}t|d|| S| S)a=Create a (possibly compressed) tar file from all the files under 'base_dir'. 'compress' must be "gzip" (the default), "bzip2", "xz", "compress", 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", ".xz" or ".Z"). Returns the output filename. rgzbzip2bz2xzNcompressz.gzz.bz2z.xzz.ZzKbad value for 'compress': must be None, 'gzip', 'bzip2', 'xz' or 'compress'z.tardry_runrzCreating tar archivecs@dk r|_|_dk r<|_|_|S)N)gidgnameuiduname)tarinfo)rgroupownerrr r _set_uid_gidas      z"make_tarball.._set_uid_gidzw|%sfilterz'compress' will be deprecated.win32z-f)keys ValueErrorgetrospathdirnametarfilerinforropenaddcloserPendingDeprecationWarningsysplatformr) base_namebase_dirrverboserrrtar_compression compress_ext archive_namer)r tarZcompressed_namecmdr )rrrrr make_tarball7s<             r9c Cs|d}ttjj|d|tdkr|rAd}nd}y td|||gd|Wqtk rtd|YqXntjd|||sytj |d d tj }Wn-t k rtj |d d tj }YnXxtj |D]t\}}} xb| D]Z} tjjtjj|| } tjj| r|j| | tjd | qWqW|j|S) avCreate 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. z.ziprNz-rz-rqzipzkunable to create zip file '%s': could neither import the 'zipfile' module nor find a standalone zip utilityz#creating '%s' and adding '%s' to itw compressionz adding '%s')rr&r'r(zipfilerrrr*ZipFile ZIP_DEFLATED RuntimeErrorZ ZIP_STOREDwalknormpathjoinisfilewriter-) r1r2r3r zip_filenameZ zipoptionsr:dirpathdirnames filenamesr r'r r r make_zipfiles:         ! rJgztarrzgzip'ed tar-filebztarrzbzip2'ed tar-fileZxztarrzxz'ed tar-fileZztarzcompressed tar filer7zuncompressed tar filer:zZIP filecCs%x|D]}|tkr|SqWdS)zqReturns the first format from the 'format' list that is unknown. If all formats are known, returns None N)ARCHIVE_FORMATS)formatsformatr r rcheck_archive_formatss  rPcCs7tj}|dk rMtjd|tjj|}|sMtj||dkrbtj}d|i} yt|} Wn"t k rt d|YnX| d} x"| dD]\} } | | | sB         G5