U n a@sddlmZddlZddlZddlmZddlmZddlm Z m Z ddl m Z ddl mZmZmZddlmZeeZGd d d e ZdS) )absolute_importN) cmdoptions)make_target_python)RequirementCommand with_cleanup)get_requirement_tracker) ensure_dirnormalize_path write_output) TempDirectorycs0eZdZdZdZfddZeddZZS)DownloadCommandaL 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. a %prog [options] [package-index-options] ... %prog [options] -r [package-index-options] ... %prog [options] ... %prog [options] ... %prog [options] ...c s@tt|j|||j}|t|t|t|t |t |t |t |t |t|t|t|t|t|t|t|jddddddtjddt|ttj|j}|jd ||jd |dS) Nz-dz--destz--destination-dirz--destination-directory download_dirdirzDownload packages into .)destmetavardefaulthelpr)superr __init__cmd_opts add_optionr constraints requirements build_dirno_depsglobal_options no_binary only_binary prefer_binarysrcprerequire_hashes progress_barno_build_isolation use_pep517 no_use_pep517oscurdiradd_target_python_optionsmake_option_group index_groupparserinsert_option_group)selfargskwr index_opts __class__`C:\Users\vtejo\AppData\Local\Temp\pip-unpacked-wheel-6mt8ur68\pip\_internal\commands\download.pyr'sD zDownloadCommand.__init__c Csd|_g|_t|t|j|_t|j||}t|}|j |||d}|j pX|j }| t }t|j |ddd}|||||} |j||||||jdd} |j| |||jd} ||| j| dd} d d d | jD} | rtd | | S) NT)optionssession target_pythondownload)deletekindglobally_managedF)temp_build_dirr5 req_trackerr6finderr use_user_site)preparerr>r5py_version_info)check_supported_wheels cSsg|]}|jr|jqSr3)successfully_downloadedname).0reqr3r3r4 sz'DownloadCommand.run..zSuccessfully downloaded %s)ignore_installed editablesrcheck_dist_restrictionr r rget_default_sessionr_build_package_finderno_cleanr enter_contextrr get_requirementsmake_requirement_preparer make_resolverpython_versiontrace_basic_inforesolvejoinrvaluesr )r-r5r.r6r7r> build_deleter= directoryreqsr@resolverrequirement_set downloadedr3r3r4runNs^         zDownloadCommand.run) __name__ __module__ __qualname____doc__usagerrr^ __classcell__r3r3r1r4r s   'r ) __future__rloggingr&Zpip._internal.clirZpip._internal.cli.cmdoptionsrpip._internal.cli.req_commandrrpip._internal.req.req_trackerrpip._internal.utils.miscrr r pip._internal.utils.temp_dirr getLoggerr_loggerr r3r3r3r4s