Warning: session_start(): Session cannot be started after headers have already been sent in /home/tvrreohg/public_html/manga.php on line 13
3 ÝPf‚ã@sžddlmZddlZddlZddlmZddlmZddlm Z ddl m Z ddl m Z ddlmZmZdd lmZdd lmZejeƒZGd d „d e ƒZdS) é)Úabsolute_importN)Ú CommandError)Ú FormatControl)ÚRequirementSet)ÚRequirementCommand)Ú cmdoptions)Ú ensure_dirÚnormalize_path)ÚBuildDirectory)Úcheck_path_ownercs4eZdZdZdZdZdZ‡fdd„Zdd„Z‡Z S) Ú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. Zdownloada% %prog [options] [package-index-options] ... %prog [options] -r [package-index-options] ... %prog [options] [-e] ... %prog [options] [-e] ... %prog [options] ...zDownload packages.c s\tt|ƒj||Ž|j}|jtjƒƒ|jtjƒƒ|jtjƒƒ|jtj ƒƒ|jtj ƒƒ|jtj ƒƒ|jtj ƒƒ|jtj ƒƒ|jtjƒƒ|jtjƒƒ|jtjƒƒ|jtjƒƒ|jddddddtjdd�|jd d d dd d�|jd d d ddd�|jdddddd�|jdddddd�tjtj|jƒ}|jjd|ƒ|jjd|ƒdS)Nz-dz--destz--destination-dirz--destination-directoryÚ download_dirÚdirzDownload packages into .)ÚdestÚmetavarÚdefaultÚhelpz --platformÚplatformz`Only download wheels compatible with . Defaults to the platform of the running system.z--python-versionÚpython_versiona&Only download wheels compatible with Python interpreter version . If not specified, then the current system interpreter minor version is used. A major version (e.g. '2') can be specified to match all minor revs of that major version. A minor version (e.g. '34') can also be specified.z--implementationÚimplementationzçOnly download wheels compatible with Python implementation , e.g. 'pp', 'jy', 'cp', or 'ip'. If not specified, then the current interpreter implementation is used. Use 'py' to force implementation-agnostic wheels.z--abiÚabizöOnly download wheels compatible with Python abi , e.g. 'pypy_41'. If not specified, then the current interpreter abi tag is used. Generally you will need to specify --implementation, --platform, and --python-version when using this option.r)Úsuperr Ú__init__Úcmd_optsZ add_optionrZ constraintsZeditableZ requirementsÚ build_dirZno_depsZglobal_optionsZ no_binaryZ only_binaryÚsrcZpreÚno_cleanÚrequire_hashesÚosÚcurdirZmake_option_groupZnon_deprecated_index_groupÚparserZinsert_option_group)ÚselfÚargsÚkwrZ index_opts)Ú __class__©ú/usr/lib/python3.6/download.pyr*sbzDownloadCommand.__init__c CsŒd|_|jr|jg}nd}t|j|j|j|jgƒ}ttƒtdgƒƒ}|rZ|j|krZt dƒ‚t j j |j ƒ|_ t|jƒ|_t|jƒ|j|ƒ�ø}|j|||j||j|jd�}|jp²|j }|jrÜt|jƒ rÜtjd|jƒd|_t|j|d��Ž} t| |j |jd|j||j|jd�} |j| |||||jdƒ| j �s2dS| j!|ƒdj"d d „| j#Dƒƒ} | �rdtj$d | ƒ|j�st| j%ƒWdQRXWdQRX| S) NTz:all:zÐ--only-binary=:all: must be set and --no-binary must not be set (or must be set to :none:) when restricting platform and interpreter constraints using --python-version, --platform, --abi, or --implementation.)ÚoptionsÚsessionrÚpython_versionsrrzÝThe directory '%s' or its parent directory is not owned by the current user and caching wheels has been disabled. check the permissions and owner of that directory. If executing pip with sudo, you may want sudo's -H flag.)Údelete)rÚsrc_dirr Úignore_installedÚignore_dependenciesr(Úisolatedrú cSsg|] }|j‘qSr%)Úname)Ú.0Zreqr%r%r&ú Ész'DownloadCommand.run..zSuccessfully downloaded %s)&r,rÚanyrrrrÚsetZformat_controlrrÚpathÚabspathr+r r rZ_build_sessionZ_build_package_finderrrÚ cache_dirr ÚloggerZwarningr rr-Z isolated_moderZpopulate_requirement_setr0Zhas_requirementsZ prepare_filesÚjoinZsuccessfully_downloadedÚinfoZ cleanup_files) r!r'r"r)Zdist_restriction_setZ binary_onlyr(ÚfinderZ build_deleterZrequirement_setZ downloadedr%r%r&Úrun{sx         zDownloadCommand.run) Ú__name__Ú __module__Ú __qualname__Ú__doc__r0ZusageZsummaryrr<Ú __classcell__r%r%)r$r&r s   Qr )Z __future__rZloggingrZpip.exceptionsrZ pip.indexrZpip.reqrZpip.basecommandrZpiprZ pip.utilsrr Zpip.utils.buildr Zpip.utils.filesystemr Z getLoggerr=r8r r%r%r%r&Ús