Why Gemfury? Push, build, and install  RubyGems npm packages Python packages Maven artifacts PHP packages Go Modules Debian packages RPM packages NuGet packages

Repository URL to install this package:

Details    
Size: Mime:
ó
•èRc@s®ddlZddlZddlZddlZddlZddlZddlmZmZm	Z	ddl
mZddlm
Z
ddlmZdefd„ƒYZdS(iÿÿÿÿN(tdisplay_patht
backup_dirtrmtree(tlogger(tInstallationError(tCommandt
ZipCommandcBsƒeZdZdZdZdZd„Zd„Zd„Zd„Z	d„Z
d„Zd	„Zd
„Z
d„Zd„Zd
„ZRS(sZip individual packages.tzips#
     %prog [options] <package> ...c
Os9tt|ƒj||Ž|jdkrM|jjdddddddƒn(|jjd	dd
dddtddƒ|jjd
ddddddƒ|jjddddddddƒ|jjdddddddƒ|jjdddddddƒ|jjddddddƒ|jjd|jƒdS(NRs--unziptactiont
store_truetdesttunzipthelps"Unzip (rather than zip) a package.s--ziptstore_falsetdefaults"Zip (rather than unzip) a package.s--no-pyctno_pycsEDo not include .pyc files in zip files (useful on Google App Engine).s-ls--listtlists2List the packages available, and their zip status.s--sort-filest
sort_filessDWith --list, sort packages according to how many files they contain.s--pathtappendtpathss?Restrict operations to the given paths (may include wildcards).s-ns
--simulates0Do not actually perform the zip/unzip operation.i(	tsuperRt__init__tnametcmd_optst
add_optiontTruetparsertinsert_option_group(tselftargstkw((sE/home/tvault/.virtenv/lib/python2.7/site-packages/pip/commands/zip.pyRsL	
								cCsp|jstjSg}tƒ}xýtjD]ò}tjjtjj|ƒƒ}xË|jD]}tjjtjj|ƒƒ}d|krÇtjt	j
|dƒ|ƒrô|j|ƒ|j|ƒPqôqW|j
|ƒrW|j|ƒ|j|ƒPqWqWWtjd|dj|jƒfƒq)WxJ|jD]?}||kr)d|kr)|j|ƒtjd|ƒq)q)W|S(s:All the entries of sys.path, possibly restricted by --patht*s,Skipping path %s because it doesn't match %ss, sDAdding path %s because it doesn't match anything already on sys.path(tselect_pathstsystpathtsettostnormcasetabspathtretsearchtfnmatcht	translateRtaddt
startswithRtdebugtjoin(Rtresultt	match_anyR"tmatch((sE/home/tvault/.virtenv/lib/python2.7/site-packages/pip/commands/zip.pyR>s2		



	
	cCsF|j|_|j|_|jr1|j||ƒS|sFtdƒ‚ng}x |D]˜}|j|ƒ\}}|jr¢tjj	|ƒr¢td||fƒ‚n6|jrØtjj	|ƒrØtd||fƒ‚n|j
||fƒqSWd}xJ|D]B\}}|jr&|j||ƒ}qü|j
|||jƒ}qüW|S(Ns2You must give at least one package to zip or unzips;The module %s (in %s) is not a zip file; cannot be unzippeds:The module %s (in %s) is not a directory; cannot be zipped(RR tsimulateRRtfind_packageRR$R"tisdirRtNonet
unzip_packagetzip_packageR(RtoptionsRtpackagestargtmodule_nametfilenametlast_status((sE/home/tvault/.virtenv/lib/python2.7/site-packages/pip/commands/zip.pytrun\s2	
	cCsÚtjj|ƒ}tjj|ƒrPtj|ƒrPtd|||fƒ‚ntjj|ƒ}||jƒkr£tj	dt
|ƒt
|ƒt
|ƒfƒntjd|t
|ƒfƒ|jrÚtjdƒdStj
d7_
zÚtj|ƒ}g}x|jƒD]}|j}|j|tjjƒrþ|j|ƒ}	tjj||ƒ}
tjjtjj|
ƒƒs”tjtjj|
ƒƒn|	rÕ|
jtjjƒrÕtjj|
ƒsûtj|
ƒqûqt|
dƒ}|j|	ƒ|jƒq|j||j|ƒfƒqW|jƒ|sbtjdt
|ƒƒtj|ƒ|j|ƒn`tjd|t
|ƒfƒtj|d	ƒ}x$|D]\}}	|j||	ƒq˜W|jƒWdtj
d8_
XdS(
Ns3Module %s (in %s) isn't located in a zip file in %ss/Unpacking %s into %s, but %s is not on sys.pathsUnzipping %s (in %s)s3Skipping remaining operations because of --simulateitwbsRemoving now-empty zip file %ss(Removing entries in %s/ from zip file %stw( R$R"tdirnametisfiletzipfilet
is_zipfileRRRtwarnRtnotifyR2tindenttZipFiletinfolistR<R,tseptreadR.texiststmakedirstendswithtopentwritetcloseRtinfotunlinktremove_filename_from_pthtwritestr(RR;R<tzip_filenametpackage_pathRtto_saveRRRtcontentR
tf((sE/home/tvault/.virtenv/lib/python2.7/site-packages/pip/commands/zip.pyR6xsX"	
	

 

cCsb|}tjd|t|ƒfƒtjd7_|jdƒrJ|}n
|d}z÷||kr¥t|ƒ}tjd||fƒ|js¥tj||ƒq¥ny‹tj	dt|ƒƒ|jst
j|dƒ}|j|dd	ƒxt
j|ƒD]ó\}}}	|rDg|	D]!}
|
jƒjd
ƒs|
^q}	nxª|tf|	tfgD]\}}x|D]y}
t
jj||
ƒ}t
jj||t|ƒjt
jjƒ|
ƒ}|rÙ|j|dd	ƒqp|j||ƒqpWq]WqþW|jƒntj	dt|ƒƒ|js/t|ƒnWn
‚nX|j|ƒWdtjd8_XdS(NsZip %s (in %s)is.eggs.zipsMoving %s aside to %ssCreating zip file in %sR@t/ts.pycsRemoving old directory %s(RRFRRGRNRR2tshutiltmoveRRRCRHRUR$twalktlowerRtFalseR"R.tlentlstripRJRPRQRtadd_filename_to_pth(RR;R<Rt
orig_filenamet
dest_filenameRtdirpathtdirnamest	filenamesRZtfnstis_dirtfntfullR
((sE/home/tvault/.virtenv/lib/python2.7/site-packages/pip/commands/zip.pyR7«sH	
		
$%
1
	cCs9x|jƒD]
}t|dƒ}|jƒ}|jƒg|D]}|jƒ|kr?|^q?}||kr
tjdt|ƒt|ƒfƒg|D]}|r™|^q™sätjdt|ƒƒ|jst	j
|ƒqn2|jst|dƒ}|j|ƒ|jƒndSq
Wtjdt|ƒƒdS(Ntrs*Removing reference to %s from .pth file %ss %s file would be empty: deletingR?s.Cannot find a reference to %s in any .pth file(
t	pth_filesROt	readlinesRQtstripRRRRR2R$RSt
writelinesRE(RR<tpthRZtlinestlt	new_linestline((sE/home/tvault/.virtenv/lib/python2.7/site-packages/pip/commands/zip.pyRT×s$
+			

cCstjj|ƒ}|d}||jƒkrHtjdt|ƒƒn|jsütjj|ƒrÆt	|ƒ}|j
ƒ}|jƒ|r²|djdƒr²|dcd7<n|j
|dƒn
|dg}t	|dƒ}|j|ƒ|jƒndS(Ns.pths.Adding .pth file %s, but it is not on sys.pathiÿÿÿÿs
R?(R$R"RARRRERR2RLRORpRQRNRRr(RR<R"R
RZRt((sE/home/tvault/.virtenv/lib/python2.7/site-packages/pip/commands/zip.pyRdís 
	


ccs‡x€|jƒD]r}tjj|ƒs
tjj|ƒr?q
nx=tj|ƒD],}|jdƒrOtjj||ƒVqOqOWq
WdS(Ns.pth(RR$R"RLR4tlistdirRNR.(RR"R<((sE/home/tvault/.virtenv/lib/python2.7/site-packages/pip/commands/zip.pyRos&cCsåxÎ|jƒD]À}tjj||ƒ}tjj|ƒrD||fStjj|ƒr
tj|ƒr
tj|dƒ}y |j	tjj|dƒƒWnt
k
r«nX|jƒ||fS|jƒq
q
Wtd|ƒ‚dS(NRns__init__.pys!No package with the name %s found(
RR$R"R.RLR4RCRDRHRKtKeyErrorRQR(RtpackageR"RmR((sE/home/tvault/.virtenv/lib/python2.7/site-packages/pip/commands/zip.pyR3s
" 


c
CsA|rtdƒ‚nx%t|jƒƒD]}tjj|ƒsFq(ntjj|jtjjƒƒ}tjj	|ƒrÆt
j|ƒrÆtjj|ƒ|jƒkr(t
jdt|ƒƒq(q(n|dkr|dkr|jddƒjdƒrq(nt
jdt|ƒƒt
jd	7_g}g}zôxðttj|ƒƒD]Ù}tjj|ƒd
jƒ}|dkrqKn|dkr¨t
jdt|ƒƒqKntjj||ƒ}	tjj|	ƒrî|j||j|	ƒfƒqKt
j|	ƒr
|j|ƒqKt
jdt|ƒƒqKW|r‚t
jdƒt
jd	7_z"x|D]}t
j|ƒqTWWdt
jd	8_Xn
t
jdƒ|r|jr´|jdd„ƒnt
jdƒt
jd	7_z2x+|D]#\}}
t
jd||
fƒqÚWWdt
jd	8_Xn
t
jdƒWdt
jd	8_Xq(WdS(Ns'You cannot give an argument with --listsZipped egg: %ss
site-packagess
dist-packagess\R[s
lib/pythonsIn %s:iis.pths	.egg-infos	.egg-links.pys Not displaying %s: not a packagesUnknown file: %ssZipped packages:sNo zipped packages.tkeycSs	|dS(Ni((tx((sE/home/tvault/.virtenv/lib/python2.7/site-packages/pip/commands/zip.pyt<lambda>IssUnzipped packages:s%s  (%i files)sNo unzipped packages.(s.pths	.egg-infos	.egg-link(RtsortedRR$R"RLtbasenametrstripRJRBRCRDRARRFRtreplaceRNRGRxtsplitextR`RRR.R4Rt
count_packageRtsort(RR8RR"RtzippedtunzippedR<textRmtcount((sE/home/tvault/.virtenv/lib/python2.7/site-packages/pip/commands/zip.pyRsf!!


	
cCskd}x^tj|ƒD]M\}}}g|D]!}|jƒjdƒs,|^q,}|t|ƒ7}qW|S(Nis.pyc(R$R_R`RNRb(RR"ttotalRgRhRiRZ((sE/home/tvault/.virtenv/lib/python2.7/site-packages/pip/commands/zip.pyRƒVs
!(t__name__t
__module__t__doc__RtusagetsummaryRRR>R6R7RTRdRoR3RRƒ(((sE/home/tvault/.virtenv/lib/python2.7/site-packages/pip/commands/zip.pyR
s	*			3	,					;(R!R'R)R$R]RCtpip.utilRRRtpip.logRtpip.exceptionsRtpip.basecommandRR(((sE/home/tvault/.virtenv/lib/python2.7/site-packages/pip/commands/zip.pyt<module>s