Viewing File: /opt/alt/python35/lib/python3.5/site-packages/pip/_internal/commands/download.pyo

ó
“tÆ_c@@sddlmZddlZddlZddlmZddlmZddlm	Z	m
Z
ddlmZddl
mZddlmZmZmZdd	lmZdd
lmZerãddlmZddlmZnejeƒZd
e	fd„ƒYZdS(i(tabsolute_importN(t
cmdoptions(tmake_target_python(tRequirementCommandtwith_cleanup(tSUCCESS(tget_requirement_tracker(t
ensure_dirtnormalize_pathtwrite_output(t
TempDirectory(tMYPY_CHECK_RUNNING(tValues(tListtDownloadCommandcB@s,eZdZdZd„Zed„ƒZRS(sL
    Download packages from:

    - PyPI (and other indexes) using requirement specifiers.
    - VCS project urls.
    - Local project directories.
    - Local or remote source archives.

    pip also supports downloading from "requirements files", which provide
    an easy way to specify a whole environment to be downloaded.
    s
      %prog [options] <requirement specifier> [package-index-options] ...
      %prog [options] -r <requirements file> [package-index-options] ...
      %prog [options] <vcs project url> ...
      %prog [options] <local project path> ...
      %prog [options] <archive url/path> ...c
C@sÓ|jjtjƒƒ|jjtjƒƒ|jjtjƒƒ|jjtjƒƒ|jjtjƒƒ|jjtjƒƒ|jjtj	ƒƒ|jjtj
ƒƒ|jjtjƒƒ|jjtjƒƒ|jjtj
ƒƒ|jjtjƒƒ|jjtjƒƒ|jjtjƒƒ|jjtjƒƒ|jjddddddddd	tjd
dƒtj|jƒtjtj|jƒ}|jjd|ƒ|jjd|jƒdS(
Ns-ds--dests--destination-dirs--destination-directorytdesttdownload_dirtmetavartdirtdefaultthelpsDownload packages into <dir>.i(tcmd_optst
add_optionRtconstraintstrequirementst	build_dirtno_depstglobal_optionst	no_binarytonly_binaryt
prefer_binarytsrctpretrequire_hashestprogress_bartno_build_isolationt
use_pep517t
no_use_pep517tostcurdirtadd_target_python_optionstmake_option_grouptindex_grouptparsertinsert_option_group(tselft
index_opts((sP/opt/alt/python35/lib/python3.5/site-packages/pip/_internal/commands/download.pytadd_options*s6		cC@s¨t|_g|_tj|ƒt|jƒ|_t|jƒ|j|ƒ}t	|ƒ}|j
d|d|d|ƒ}|jp†|j}|j
tƒƒ}t|jd|dddtƒ}|j||||ƒ}	|jd|d|d	|d|d
|d|jdtƒ}
|jd
|
d
|d|d|jƒ}|j|ƒ|j|	dtƒ}djg|jjƒD]}
|
jrm|
j^qmƒ}|r¤td|ƒntS(Ntoptionstsessiont
target_pythontdeletetkindtdownloadtglobally_managedttemp_build_dirtreq_trackertfinderRt
use_user_sitetpreparertpy_version_infotcheck_supported_wheelst sSuccessfully downloaded %s(tTruetignore_installedt	editablesRtcheck_dist_restrictionRRRtget_default_sessionRt_build_package_findertno_cleanRt
enter_contextRR
tget_requirementstmake_requirement_preparertFalset
make_resolvertpython_versionttrace_basic_infotresolvetjoinRtvaluestsuccessfully_downloadedtnameR	R(R-R0targsR1R2R9tbuild_deleteR8t	directorytreqsR;tresolvertrequirement_settreqt
downloaded((sP/opt/alt/python35/lib/python3.5/site-packages/pip/_internal/commands/download.pytrunNsR		

								
	(t__name__t
__module__t__doc__tusageR/RRZ(((sP/opt/alt/python35/lib/python3.5/site-packages/pip/_internal/commands/download.pyRs	$(t
__future__RtloggingR&tpip._internal.cliRtpip._internal.cli.cmdoptionsRtpip._internal.cli.req_commandRRtpip._internal.cli.status_codesRtpip._internal.req.req_trackerRtpip._internal.utils.miscRRR	tpip._internal.utils.temp_dirR
tpip._internal.utils.typingRtoptparseRttypingR
t	getLoggerR[tloggerR(((sP/opt/alt/python35/lib/python3.5/site-packages/pip/_internal/commands/download.pyt<module>s
Back to Directory File Manager