????

Your IP : 216.73.216.152


Current Path : /proc/self/root/proc/self/root/lib/python2.7/site-packages/wheel/
Upload File :
Current File : //proc/self/root/proc/self/root/lib/python2.7/site-packages/wheel/archive.pyc

�
��]c@sjdZddlZddlZddlZddlZddlZejd�Zd�Zdd�Z	dS(s
Archive tools for wheel.
i����NtwheelcCsWtjjtj�}tjj|�}ztj|�t|�SWdtj|�XdS(sWArchive all files under `base_dir` in a whl file and name it like
    `base_name`.
    N(tostpathtabspathtcurdirtchdirtmake_wheelfile_inner(t	base_nametbase_dirtolddir((s,/tmp/pip-build-tmgNo5/wheel/wheel/archive.pytarchive_wheelfiles
t.c
s�|d}tjd||�tjjd�}|dkrDd}ntjt|��dd!}t	j
t|d�ddt	j��id	d
6dd6d
d6}g}�fd�}x�tj
|�D]�\}}	}
x�|
D]z}tjjtjj||��}tjj|�r�|jd�rD|j|j|d�|f�qT|||�q�q�Wq�W|j�x!|D]\}}|||�qmW�j�|S(shCreate a whl file from all the files under 'base_dir'.

    Places .dist-info at the end of the archive.s.whls#creating '%s' and adding '%s' to ittSOURCE_DATE_EPOCHiiswb+twtcompressionitWHEELitMETADATAitRECORDcs�tj|�}|dkr=tj|j�}|dd!}ntj||�}|jd>|_	tj
|_t|d��}�j
||j��WdQXtjd|�dS(Niiitrbsadding '%s'(RtstattNonettimetgmtimetst_mtimetzipfiletZipInfotst_modet
external_attrtZIP_DEFLATEDt
compress_typetopentwritestrtreadtlogtinfo(Rt	date_timetsttmtimetzinfotfp(tzip(s,/tmp/pip-build-tmgNo5/wheel/wheel/archive.pyt	writefile4ss
.dist-infoN(R!R"RtenvirontgetRRRtintRtZipFileRRtwalkRtnormpathtjointisfiletendswithtappendtsorttclose(
RRtzip_filenamet	timestampR#tscoretdeferredR)tdirpathtdirnamest	filenamestnameR((R(s,/tmp/pip-build-tmgNo5/wheel/wheel/archive.pyRs.
	
!"

(
t__doc__RRtloggingtos.pathRt	getLoggerR!R
R(((s,/tmp/pip-build-tmgNo5/wheel/wheel/archive.pyt<module>s