quarchpy 2.1.14.dev4__py2.py3-none-any.whl → 2.1.14.dev5__py2.py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- quarchpy/.idea/.name +1 -0
- quarchpy/.idea/workspace.xml +70 -11
- quarchpy/__pycache__/_version.cpython-311.pyc +0 -0
- quarchpy/__pycache__/run.cpython-311.pyc +0 -0
- quarchpy/_version.py +1 -1
- quarchpy/_version.py.bak +1 -0
- quarchpy/connection_specific/QPS/qis/qis.jar +0 -0
- quarchpy/connection_specific/QPS/qis/qis_lib/CInterface-1.7.04.jar +0 -0
- quarchpy/connection_specific/QPS/qps.jar +0 -0
- quarchpy/connection_specific/QPS/scriptCommands.txt +2 -2
- quarchpy/connection_specific/__pycache__/connection_QIS.cpython-311.pyc +0 -0
- quarchpy/connection_specific/connection_QIS.py +6 -4
- quarchpy/connection_specific/connection_ReST.py +26 -16
- quarchpy/debug/__pycache__/module_debug.cpython-311.pyc +0 -0
- quarchpy/debug/__pycache__/simple_terminal.cpython-311.pyc +0 -0
- quarchpy/debug/__pycache__/upgrade_quarchpy.cpython-311.pyc +0 -0
- quarchpy/device/__pycache__/scanDevices.cpython-311.pyc +0 -0
- quarchpy/device/scanDevices.py +2 -4
- quarchpy/device/scanDevices.py.bak +657 -0
- quarchpy/qis/qisFuncs.py +25 -42
- quarchpy/qis/qisFuncs.py.bak +213 -0
- quarchpy/qps/__pycache__/qpsFuncs.cpython-311.pyc +0 -0
- quarchpy/qps/qpsFuncs.py +18 -22
- quarchpy/qps/qpsFuncs.py.bak +224 -0
- quarchpy/venv/.gitignore +2 -0
- quarchpy/venv/Include/Python-ast.h +535 -0
- quarchpy/venv/Include/Python.h +181 -0
- quarchpy/venv/Include/abstract.h +1396 -0
- quarchpy/venv/Include/asdl.h +45 -0
- quarchpy/venv/Include/ast.h +13 -0
- quarchpy/venv/Include/bitset.h +32 -0
- quarchpy/venv/Include/boolobject.h +36 -0
- quarchpy/venv/Include/bufferobject.h +33 -0
- quarchpy/venv/Include/bytearrayobject.h +57 -0
- quarchpy/venv/Include/bytes_methods.h +75 -0
- quarchpy/venv/Include/bytesobject.h +27 -0
- quarchpy/venv/Include/cStringIO.h +73 -0
- quarchpy/venv/Include/cellobject.h +28 -0
- quarchpy/venv/Include/ceval.h +154 -0
- quarchpy/venv/Include/classobject.h +83 -0
- quarchpy/venv/Include/cobject.h +89 -0
- quarchpy/venv/Include/code.h +116 -0
- quarchpy/venv/Include/codecs.h +212 -0
- quarchpy/venv/Include/compile.h +40 -0
- quarchpy/venv/Include/complexobject.h +66 -0
- quarchpy/venv/Include/datetime.h +239 -0
- quarchpy/venv/Include/descrobject.h +94 -0
- quarchpy/venv/Include/dictobject.h +160 -0
- quarchpy/venv/Include/dtoa.h +15 -0
- quarchpy/venv/Include/enumobject.h +17 -0
- quarchpy/venv/Include/errcode.h +37 -0
- quarchpy/venv/Include/eval.h +25 -0
- quarchpy/venv/Include/fileobject.h +97 -0
- quarchpy/venv/Include/floatobject.h +140 -0
- quarchpy/venv/Include/frameobject.h +89 -0
- quarchpy/venv/Include/funcobject.h +76 -0
- quarchpy/venv/Include/genobject.h +40 -0
- quarchpy/venv/Include/graminit.h +87 -0
- quarchpy/venv/Include/grammar.h +94 -0
- quarchpy/venv/Include/import.h +71 -0
- quarchpy/venv/Include/intobject.h +84 -0
- quarchpy/venv/Include/intrcheck.h +15 -0
- quarchpy/venv/Include/iterobject.h +23 -0
- quarchpy/venv/Include/listobject.h +68 -0
- quarchpy/venv/Include/longintrepr.h +103 -0
- quarchpy/venv/Include/longobject.h +135 -0
- quarchpy/venv/Include/marshal.h +25 -0
- quarchpy/venv/Include/memoryobject.h +74 -0
- quarchpy/venv/Include/metagrammar.h +18 -0
- quarchpy/venv/Include/methodobject.h +93 -0
- quarchpy/venv/Include/modsupport.h +134 -0
- quarchpy/venv/Include/moduleobject.h +24 -0
- quarchpy/venv/Include/node.h +41 -0
- quarchpy/venv/Include/object.h +1046 -0
- quarchpy/venv/Include/objimpl.h +369 -0
- quarchpy/venv/Include/opcode.h +171 -0
- quarchpy/venv/Include/osdefs.h +63 -0
- quarchpy/venv/Include/parsetok.h +64 -0
- quarchpy/venv/Include/patchlevel.h +43 -0
- quarchpy/venv/Include/pgen.h +18 -0
- quarchpy/venv/Include/pgenheaders.h +43 -0
- quarchpy/venv/Include/py_curses.h +177 -0
- quarchpy/venv/Include/pyarena.h +62 -0
- quarchpy/venv/Include/pycapsule.h +56 -0
- quarchpy/venv/Include/pyconfig.h +770 -0
- quarchpy/venv/Include/pyctype.h +31 -0
- quarchpy/venv/Include/pydebug.h +41 -0
- quarchpy/venv/Include/pyerrors.h +329 -0
- quarchpy/venv/Include/pyexpat.h +50 -0
- quarchpy/venv/Include/pyfpe.h +176 -0
- quarchpy/venv/Include/pygetopt.h +18 -0
- quarchpy/venv/Include/pymacconfig.h +102 -0
- quarchpy/venv/Include/pymactoolbox.h +232 -0
- quarchpy/venv/Include/pymath.h +214 -0
- quarchpy/venv/Include/pymem.h +122 -0
- quarchpy/venv/Include/pyport.h +950 -0
- quarchpy/venv/Include/pystate.h +200 -0
- quarchpy/venv/Include/pystrcmp.h +23 -0
- quarchpy/venv/Include/pystrtod.h +45 -0
- quarchpy/venv/Include/pythonrun.h +181 -0
- quarchpy/venv/Include/pythread.h +41 -0
- quarchpy/venv/Include/rangeobject.h +28 -0
- quarchpy/venv/Include/setobject.h +99 -0
- quarchpy/venv/Include/sliceobject.h +50 -0
- quarchpy/venv/Include/stringobject.h +210 -0
- quarchpy/venv/Include/structmember.h +99 -0
- quarchpy/venv/Include/structseq.h +41 -0
- quarchpy/venv/Include/symtable.h +98 -0
- quarchpy/venv/Include/sysmodule.h +31 -0
- quarchpy/venv/Include/timefuncs.h +26 -0
- quarchpy/venv/Include/token.h +85 -0
- quarchpy/venv/Include/traceback.h +31 -0
- quarchpy/venv/Include/tupleobject.h +61 -0
- quarchpy/venv/Include/ucnhash.h +33 -0
- quarchpy/venv/Include/unicodeobject.h +1413 -0
- quarchpy/venv/Include/warnings.h +23 -0
- quarchpy/venv/Include/weakrefobject.h +82 -0
- quarchpy/venv/Lib/os.py +742 -0
- quarchpy/venv/Lib/os.pyc +0 -0
- quarchpy/venv/Lib/site-packages/_virtualenv.pth +1 -0
- quarchpy/venv/Lib/site-packages/_virtualenv.py +130 -0
- quarchpy/venv/Lib/site-packages/_virtualenv.pyc +0 -0
- quarchpy/venv/Lib/site-packages/easy_install.py +5 -0
- quarchpy/venv/Lib/site-packages/pip/__init__.py +18 -0
- quarchpy/venv/Lib/site-packages/pip/__main__.py +26 -0
- quarchpy/venv/Lib/site-packages/pip/_internal/__init__.py +17 -0
- quarchpy/venv/Lib/site-packages/pip/_internal/build_env.py +242 -0
- quarchpy/venv/Lib/site-packages/pip/_internal/cache.py +346 -0
- quarchpy/venv/Lib/site-packages/pip/_internal/cli/__init__.py +4 -0
- quarchpy/venv/Lib/site-packages/pip/_internal/cli/autocompletion.py +164 -0
- quarchpy/venv/Lib/site-packages/pip/_internal/cli/base_command.py +260 -0
- quarchpy/venv/Lib/site-packages/pip/_internal/cli/cmdoptions.py +971 -0
- quarchpy/venv/Lib/site-packages/pip/_internal/cli/command_context.py +36 -0
- quarchpy/venv/Lib/site-packages/pip/_internal/cli/main.py +75 -0
- quarchpy/venv/Lib/site-packages/pip/_internal/cli/main_parser.py +96 -0
- quarchpy/venv/Lib/site-packages/pip/_internal/cli/parser.py +285 -0
- quarchpy/venv/Lib/site-packages/pip/_internal/cli/progress_bars.py +280 -0
- quarchpy/venv/Lib/site-packages/pip/_internal/cli/req_command.py +436 -0
- quarchpy/venv/Lib/site-packages/pip/_internal/cli/spinners.py +173 -0
- quarchpy/venv/Lib/site-packages/pip/_internal/cli/status_codes.py +8 -0
- quarchpy/venv/Lib/site-packages/pip/_internal/commands/__init__.py +123 -0
- quarchpy/venv/Lib/site-packages/pip/_internal/commands/cache.py +234 -0
- quarchpy/venv/Lib/site-packages/pip/_internal/commands/check.py +51 -0
- quarchpy/venv/Lib/site-packages/pip/_internal/commands/completion.py +98 -0
- quarchpy/venv/Lib/site-packages/pip/_internal/commands/configuration.py +280 -0
- quarchpy/venv/Lib/site-packages/pip/_internal/commands/debug.py +230 -0
- quarchpy/venv/Lib/site-packages/pip/_internal/commands/download.py +143 -0
- quarchpy/venv/Lib/site-packages/pip/_internal/commands/freeze.py +116 -0
- quarchpy/venv/Lib/site-packages/pip/_internal/commands/hash.py +63 -0
- quarchpy/venv/Lib/site-packages/pip/_internal/commands/help.py +46 -0
- quarchpy/venv/Lib/site-packages/pip/_internal/commands/install.py +737 -0
- quarchpy/venv/Lib/site-packages/pip/_internal/commands/list.py +327 -0
- quarchpy/venv/Lib/site-packages/pip/_internal/commands/search.py +169 -0
- quarchpy/venv/Lib/site-packages/pip/_internal/commands/show.py +186 -0
- quarchpy/venv/Lib/site-packages/pip/_internal/commands/uninstall.py +95 -0
- quarchpy/venv/Lib/site-packages/pip/_internal/commands/wheel.py +198 -0
- quarchpy/venv/Lib/site-packages/pip/_internal/configuration.py +407 -0
- quarchpy/venv/Lib/site-packages/pip/_internal/distributions/__init__.py +24 -0
- quarchpy/venv/Lib/site-packages/pip/_internal/distributions/base.py +46 -0
- quarchpy/venv/Lib/site-packages/pip/_internal/distributions/installed.py +25 -0
- quarchpy/venv/Lib/site-packages/pip/_internal/distributions/sdist.py +105 -0
- quarchpy/venv/Lib/site-packages/pip/_internal/distributions/wheel.py +37 -0
- quarchpy/venv/Lib/site-packages/pip/_internal/exceptions.py +391 -0
- quarchpy/venv/Lib/site-packages/pip/_internal/index/__init__.py +2 -0
- quarchpy/venv/Lib/site-packages/pip/_internal/index/collector.py +667 -0
- quarchpy/venv/Lib/site-packages/pip/_internal/index/package_finder.py +1015 -0
- quarchpy/venv/Lib/site-packages/pip/_internal/locations.py +193 -0
- quarchpy/venv/Lib/site-packages/pip/_internal/main.py +16 -0
- quarchpy/venv/Lib/site-packages/pip/_internal/models/__init__.py +2 -0
- quarchpy/venv/Lib/site-packages/pip/_internal/models/candidate.py +39 -0
- quarchpy/venv/Lib/site-packages/pip/_internal/models/direct_url.py +243 -0
- quarchpy/venv/Lib/site-packages/pip/_internal/models/format_control.py +92 -0
- quarchpy/venv/Lib/site-packages/pip/_internal/models/index.py +34 -0
- quarchpy/venv/Lib/site-packages/pip/_internal/models/link.py +246 -0
- quarchpy/venv/Lib/site-packages/pip/_internal/models/scheme.py +31 -0
- quarchpy/venv/Lib/site-packages/pip/_internal/models/search_scope.py +135 -0
- quarchpy/venv/Lib/site-packages/pip/_internal/models/selection_prefs.py +50 -0
- quarchpy/venv/Lib/site-packages/pip/_internal/models/target_python.py +117 -0
- quarchpy/venv/Lib/site-packages/pip/_internal/models/wheel.py +78 -0
- quarchpy/venv/Lib/site-packages/pip/_internal/network/__init__.py +2 -0
- quarchpy/venv/Lib/site-packages/pip/_internal/network/auth.py +310 -0
- quarchpy/venv/Lib/site-packages/pip/_internal/network/cache.py +79 -0
- quarchpy/venv/Lib/site-packages/pip/_internal/network/download.py +202 -0
- quarchpy/venv/Lib/site-packages/pip/_internal/network/lazy_wheel.py +231 -0
- quarchpy/venv/Lib/site-packages/pip/_internal/network/session.py +428 -0
- quarchpy/venv/Lib/site-packages/pip/_internal/network/utils.py +97 -0
- quarchpy/venv/Lib/site-packages/pip/_internal/network/xmlrpc.py +53 -0
- quarchpy/venv/Lib/site-packages/pip/_internal/operations/__init__.py +0 -0
- quarchpy/venv/Lib/site-packages/pip/_internal/operations/build/__init__.py +0 -0
- quarchpy/venv/Lib/site-packages/pip/_internal/operations/build/metadata.py +38 -0
- quarchpy/venv/Lib/site-packages/pip/_internal/operations/build/metadata_legacy.py +77 -0
- quarchpy/venv/Lib/site-packages/pip/_internal/operations/build/wheel.py +47 -0
- quarchpy/venv/Lib/site-packages/pip/_internal/operations/build/wheel_legacy.py +113 -0
- quarchpy/venv/Lib/site-packages/pip/_internal/operations/check.py +155 -0
- quarchpy/venv/Lib/site-packages/pip/_internal/operations/freeze.py +277 -0
- quarchpy/venv/Lib/site-packages/pip/_internal/operations/install/__init__.py +2 -0
- quarchpy/venv/Lib/site-packages/pip/_internal/operations/install/editable_legacy.py +52 -0
- quarchpy/venv/Lib/site-packages/pip/_internal/operations/install/legacy.py +130 -0
- quarchpy/venv/Lib/site-packages/pip/_internal/operations/install/wheel.py +846 -0
- quarchpy/venv/Lib/site-packages/pip/_internal/operations/prepare.py +608 -0
- quarchpy/venv/Lib/site-packages/pip/_internal/pyproject.py +196 -0
- quarchpy/venv/Lib/site-packages/pip/_internal/req/__init__.py +103 -0
- quarchpy/venv/Lib/site-packages/pip/_internal/req/constructors.py +476 -0
- quarchpy/venv/Lib/site-packages/pip/_internal/req/req_file.py +574 -0
- quarchpy/venv/Lib/site-packages/pip/_internal/req/req_install.py +907 -0
- quarchpy/venv/Lib/site-packages/pip/_internal/req/req_set.py +204 -0
- quarchpy/venv/Lib/site-packages/pip/_internal/req/req_tracker.py +151 -0
- quarchpy/venv/Lib/site-packages/pip/_internal/req/req_uninstall.py +657 -0
- quarchpy/venv/Lib/site-packages/pip/_internal/resolution/__init__.py +0 -0
- quarchpy/venv/Lib/site-packages/pip/_internal/resolution/base.py +21 -0
- quarchpy/venv/Lib/site-packages/pip/_internal/resolution/legacy/__init__.py +0 -0
- quarchpy/venv/Lib/site-packages/pip/_internal/resolution/legacy/resolver.py +473 -0
- quarchpy/venv/Lib/site-packages/pip/_internal/resolution/resolvelib/__init__.py +0 -0
- quarchpy/venv/Lib/site-packages/pip/_internal/resolution/resolvelib/base.py +156 -0
- quarchpy/venv/Lib/site-packages/pip/_internal/resolution/resolvelib/candidates.py +604 -0
- quarchpy/venv/Lib/site-packages/pip/_internal/resolution/resolvelib/factory.py +504 -0
- quarchpy/venv/Lib/site-packages/pip/_internal/resolution/resolvelib/found_candidates.py +101 -0
- quarchpy/venv/Lib/site-packages/pip/_internal/resolution/resolvelib/provider.py +174 -0
- quarchpy/venv/Lib/site-packages/pip/_internal/resolution/resolvelib/reporter.py +84 -0
- quarchpy/venv/Lib/site-packages/pip/_internal/resolution/resolvelib/requirements.py +201 -0
- quarchpy/venv/Lib/site-packages/pip/_internal/resolution/resolvelib/resolver.py +296 -0
- quarchpy/venv/Lib/site-packages/pip/_internal/self_outdated_check.py +197 -0
- quarchpy/venv/Lib/site-packages/pip/_internal/utils/__init__.py +0 -0
- quarchpy/venv/Lib/site-packages/pip/_internal/utils/appdirs.py +44 -0
- quarchpy/venv/Lib/site-packages/pip/_internal/utils/compat.py +293 -0
- quarchpy/venv/Lib/site-packages/pip/_internal/utils/compatibility_tags.py +178 -0
- quarchpy/venv/Lib/site-packages/pip/_internal/utils/datetime.py +14 -0
- quarchpy/venv/Lib/site-packages/pip/_internal/utils/deprecation.py +104 -0
- quarchpy/venv/Lib/site-packages/pip/_internal/utils/direct_url_helpers.py +126 -0
- quarchpy/venv/Lib/site-packages/pip/_internal/utils/distutils_args.py +48 -0
- quarchpy/venv/Lib/site-packages/pip/_internal/utils/encoding.py +41 -0
- quarchpy/venv/Lib/site-packages/pip/_internal/utils/entrypoints.py +31 -0
- quarchpy/venv/Lib/site-packages/pip/_internal/utils/filesystem.py +224 -0
- quarchpy/venv/Lib/site-packages/pip/_internal/utils/filetypes.py +26 -0
- quarchpy/venv/Lib/site-packages/pip/_internal/utils/glibc.py +98 -0
- quarchpy/venv/Lib/site-packages/pip/_internal/utils/hashes.py +169 -0
- quarchpy/venv/Lib/site-packages/pip/_internal/utils/inject_securetransport.py +36 -0
- quarchpy/venv/Lib/site-packages/pip/_internal/utils/logging.py +399 -0
- quarchpy/venv/Lib/site-packages/pip/_internal/utils/misc.py +962 -0
- quarchpy/venv/Lib/site-packages/pip/_internal/utils/models.py +44 -0
- quarchpy/venv/Lib/site-packages/pip/_internal/utils/packaging.py +95 -0
- quarchpy/venv/Lib/site-packages/pip/_internal/utils/parallel.py +107 -0
- quarchpy/venv/Lib/site-packages/pip/_internal/utils/pkg_resources.py +44 -0
- quarchpy/venv/Lib/site-packages/pip/_internal/utils/setuptools_build.py +181 -0
- quarchpy/venv/Lib/site-packages/pip/_internal/utils/subprocess.py +299 -0
- quarchpy/venv/Lib/site-packages/pip/_internal/utils/temp_dir.py +284 -0
- quarchpy/venv/Lib/site-packages/pip/_internal/utils/typing.py +38 -0
- quarchpy/venv/Lib/site-packages/pip/_internal/utils/unpacking.py +281 -0
- quarchpy/venv/Lib/site-packages/pip/_internal/utils/urls.py +55 -0
- quarchpy/venv/Lib/site-packages/pip/_internal/utils/virtualenv.py +119 -0
- quarchpy/venv/Lib/site-packages/pip/_internal/utils/wheel.py +225 -0
- quarchpy/venv/Lib/site-packages/pip/_internal/vcs/__init__.py +15 -0
- quarchpy/venv/Lib/site-packages/pip/_internal/vcs/bazaar.py +123 -0
- quarchpy/venv/Lib/site-packages/pip/_internal/vcs/git.py +454 -0
- quarchpy/venv/Lib/site-packages/pip/_internal/vcs/mercurial.py +172 -0
- quarchpy/venv/Lib/site-packages/pip/_internal/vcs/subversion.py +340 -0
- quarchpy/venv/Lib/site-packages/pip/_internal/vcs/versioncontrol.py +735 -0
- quarchpy/venv/Lib/site-packages/pip/_internal/wheel_builder.py +362 -0
- quarchpy/venv/Lib/site-packages/pip/_vendor/__init__.py +114 -0
- quarchpy/venv/Lib/site-packages/pip/_vendor/appdirs.py +633 -0
- quarchpy/venv/Lib/site-packages/pip/_vendor/cachecontrol/__init__.py +11 -0
- quarchpy/venv/Lib/site-packages/pip/_vendor/cachecontrol/_cmd.py +57 -0
- quarchpy/venv/Lib/site-packages/pip/_vendor/cachecontrol/adapter.py +133 -0
- quarchpy/venv/Lib/site-packages/pip/_vendor/cachecontrol/cache.py +39 -0
- quarchpy/venv/Lib/site-packages/pip/_vendor/cachecontrol/caches/__init__.py +2 -0
- quarchpy/venv/Lib/site-packages/pip/_vendor/cachecontrol/caches/file_cache.py +146 -0
- quarchpy/venv/Lib/site-packages/pip/_vendor/cachecontrol/caches/redis_cache.py +33 -0
- quarchpy/venv/Lib/site-packages/pip/_vendor/cachecontrol/compat.py +29 -0
- quarchpy/venv/Lib/site-packages/pip/_vendor/cachecontrol/controller.py +376 -0
- quarchpy/venv/Lib/site-packages/pip/_vendor/cachecontrol/filewrapper.py +80 -0
- quarchpy/venv/Lib/site-packages/pip/_vendor/cachecontrol/heuristics.py +135 -0
- quarchpy/venv/Lib/site-packages/pip/_vendor/cachecontrol/serialize.py +188 -0
- quarchpy/venv/Lib/site-packages/pip/_vendor/cachecontrol/wrapper.py +29 -0
- quarchpy/venv/Lib/site-packages/pip/_vendor/certifi/__init__.py +3 -0
- quarchpy/venv/Lib/site-packages/pip/_vendor/certifi/__main__.py +12 -0
- quarchpy/venv/Lib/site-packages/pip/_vendor/certifi/cacert.pem +4606 -0
- quarchpy/venv/Lib/site-packages/pip/_vendor/certifi/core.py +60 -0
- quarchpy/venv/Lib/site-packages/pip/_vendor/chardet/__init__.py +39 -0
- quarchpy/venv/Lib/site-packages/pip/_vendor/chardet/big5freq.py +386 -0
- quarchpy/venv/Lib/site-packages/pip/_vendor/chardet/big5prober.py +47 -0
- quarchpy/venv/Lib/site-packages/pip/_vendor/chardet/chardistribution.py +233 -0
- quarchpy/venv/Lib/site-packages/pip/_vendor/chardet/charsetgroupprober.py +106 -0
- quarchpy/venv/Lib/site-packages/pip/_vendor/chardet/charsetprober.py +145 -0
- quarchpy/venv/Lib/site-packages/pip/_vendor/chardet/cli/__init__.py +1 -0
- quarchpy/venv/Lib/site-packages/pip/_vendor/chardet/cli/chardetect.py +85 -0
- quarchpy/venv/Lib/site-packages/pip/_vendor/chardet/codingstatemachine.py +88 -0
- quarchpy/venv/Lib/site-packages/pip/_vendor/chardet/compat.py +34 -0
- quarchpy/venv/Lib/site-packages/pip/_vendor/chardet/cp949prober.py +49 -0
- quarchpy/venv/Lib/site-packages/pip/_vendor/chardet/enums.py +76 -0
- quarchpy/venv/Lib/site-packages/pip/_vendor/chardet/escprober.py +101 -0
- quarchpy/venv/Lib/site-packages/pip/_vendor/chardet/escsm.py +246 -0
- quarchpy/venv/Lib/site-packages/pip/_vendor/chardet/eucjpprober.py +92 -0
- quarchpy/venv/Lib/site-packages/pip/_vendor/chardet/euckrfreq.py +195 -0
- quarchpy/venv/Lib/site-packages/pip/_vendor/chardet/euckrprober.py +47 -0
- quarchpy/venv/Lib/site-packages/pip/_vendor/chardet/euctwfreq.py +387 -0
- quarchpy/venv/Lib/site-packages/pip/_vendor/chardet/euctwprober.py +46 -0
- quarchpy/venv/Lib/site-packages/pip/_vendor/chardet/gb2312freq.py +283 -0
- quarchpy/venv/Lib/site-packages/pip/_vendor/chardet/gb2312prober.py +46 -0
- quarchpy/venv/Lib/site-packages/pip/_vendor/chardet/hebrewprober.py +292 -0
- quarchpy/venv/Lib/site-packages/pip/_vendor/chardet/jisfreq.py +325 -0
- quarchpy/venv/Lib/site-packages/pip/_vendor/chardet/jpcntx.py +233 -0
- quarchpy/venv/Lib/site-packages/pip/_vendor/chardet/langbulgarianmodel.py +228 -0
- quarchpy/venv/Lib/site-packages/pip/_vendor/chardet/langcyrillicmodel.py +333 -0
- quarchpy/venv/Lib/site-packages/pip/_vendor/chardet/langgreekmodel.py +225 -0
- quarchpy/venv/Lib/site-packages/pip/_vendor/chardet/langhebrewmodel.py +200 -0
- quarchpy/venv/Lib/site-packages/pip/_vendor/chardet/langhungarianmodel.py +225 -0
- quarchpy/venv/Lib/site-packages/pip/_vendor/chardet/langthaimodel.py +199 -0
- quarchpy/venv/Lib/site-packages/pip/_vendor/chardet/langturkishmodel.py +193 -0
- quarchpy/venv/Lib/site-packages/pip/_vendor/chardet/latin1prober.py +145 -0
- quarchpy/venv/Lib/site-packages/pip/_vendor/chardet/mbcharsetprober.py +91 -0
- quarchpy/venv/Lib/site-packages/pip/_vendor/chardet/mbcsgroupprober.py +54 -0
- quarchpy/venv/Lib/site-packages/pip/_vendor/chardet/mbcssm.py +572 -0
- quarchpy/venv/Lib/site-packages/pip/_vendor/chardet/sbcharsetprober.py +132 -0
- quarchpy/venv/Lib/site-packages/pip/_vendor/chardet/sbcsgroupprober.py +73 -0
- quarchpy/venv/Lib/site-packages/pip/_vendor/chardet/sjisprober.py +92 -0
- quarchpy/venv/Lib/site-packages/pip/_vendor/chardet/universaldetector.py +286 -0
- quarchpy/venv/Lib/site-packages/pip/_vendor/chardet/utf8prober.py +82 -0
- quarchpy/venv/Lib/site-packages/pip/_vendor/chardet/version.py +9 -0
- quarchpy/venv/Lib/site-packages/pip/_vendor/colorama/__init__.py +6 -0
- quarchpy/venv/Lib/site-packages/pip/_vendor/colorama/ansi.py +102 -0
- quarchpy/venv/Lib/site-packages/pip/_vendor/colorama/ansitowin32.py +258 -0
- quarchpy/venv/Lib/site-packages/pip/_vendor/colorama/initialise.py +80 -0
- quarchpy/venv/Lib/site-packages/pip/_vendor/colorama/win32.py +152 -0
- quarchpy/venv/Lib/site-packages/pip/_vendor/colorama/winterm.py +169 -0
- quarchpy/venv/Lib/site-packages/pip/_vendor/contextlib2.py +518 -0
- quarchpy/venv/Lib/site-packages/pip/_vendor/distlib/__init__.py +23 -0
- quarchpy/venv/Lib/site-packages/pip/_vendor/distlib/_backport/__init__.py +6 -0
- quarchpy/venv/Lib/site-packages/pip/_vendor/distlib/_backport/misc.py +41 -0
- quarchpy/venv/Lib/site-packages/pip/_vendor/distlib/_backport/shutil.py +764 -0
- quarchpy/venv/Lib/site-packages/pip/_vendor/distlib/_backport/sysconfig.cfg +84 -0
- quarchpy/venv/Lib/site-packages/pip/_vendor/distlib/_backport/sysconfig.py +786 -0
- quarchpy/venv/Lib/site-packages/pip/_vendor/distlib/_backport/tarfile.py +2607 -0
- quarchpy/venv/Lib/site-packages/pip/_vendor/distlib/compat.py +1120 -0
- quarchpy/venv/Lib/site-packages/pip/_vendor/distlib/database.py +1339 -0
- quarchpy/venv/Lib/site-packages/pip/_vendor/distlib/index.py +516 -0
- quarchpy/venv/Lib/site-packages/pip/_vendor/distlib/locators.py +1302 -0
- quarchpy/venv/Lib/site-packages/pip/_vendor/distlib/manifest.py +393 -0
- quarchpy/venv/Lib/site-packages/pip/_vendor/distlib/markers.py +131 -0
- quarchpy/venv/Lib/site-packages/pip/_vendor/distlib/metadata.py +1056 -0
- quarchpy/venv/Lib/site-packages/pip/_vendor/distlib/resources.py +355 -0
- quarchpy/venv/Lib/site-packages/pip/_vendor/distlib/scripts.py +419 -0
- quarchpy/venv/Lib/site-packages/pip/_vendor/distlib/t32.exe +0 -0
- quarchpy/venv/Lib/site-packages/pip/_vendor/distlib/t64.exe +0 -0
- quarchpy/venv/Lib/site-packages/pip/_vendor/distlib/util.py +1761 -0
- quarchpy/venv/Lib/site-packages/pip/_vendor/distlib/version.py +736 -0
- quarchpy/venv/Lib/site-packages/pip/_vendor/distlib/w32.exe +0 -0
- quarchpy/venv/Lib/site-packages/pip/_vendor/distlib/w64.exe +0 -0
- quarchpy/venv/Lib/site-packages/pip/_vendor/distlib/wheel.py +1018 -0
- quarchpy/venv/Lib/site-packages/pip/_vendor/distro.py +1230 -0
- quarchpy/venv/Lib/site-packages/pip/_vendor/html5lib/__init__.py +35 -0
- quarchpy/venv/Lib/site-packages/pip/_vendor/html5lib/_ihatexml.py +289 -0
- quarchpy/venv/Lib/site-packages/pip/_vendor/html5lib/_inputstream.py +918 -0
- quarchpy/venv/Lib/site-packages/pip/_vendor/html5lib/_tokenizer.py +1735 -0
- quarchpy/venv/Lib/site-packages/pip/_vendor/html5lib/_trie/__init__.py +5 -0
- quarchpy/venv/Lib/site-packages/pip/_vendor/html5lib/_trie/_base.py +40 -0
- quarchpy/venv/Lib/site-packages/pip/_vendor/html5lib/_trie/py.py +67 -0
- quarchpy/venv/Lib/site-packages/pip/_vendor/html5lib/_utils.py +159 -0
- quarchpy/venv/Lib/site-packages/pip/_vendor/html5lib/constants.py +2946 -0
- quarchpy/venv/Lib/site-packages/pip/_vendor/html5lib/filters/__init__.py +0 -0
- quarchpy/venv/Lib/site-packages/pip/_vendor/html5lib/filters/alphabeticalattributes.py +29 -0
- quarchpy/venv/Lib/site-packages/pip/_vendor/html5lib/filters/base.py +12 -0
- quarchpy/venv/Lib/site-packages/pip/_vendor/html5lib/filters/inject_meta_charset.py +73 -0
- quarchpy/venv/Lib/site-packages/pip/_vendor/html5lib/filters/lint.py +93 -0
- quarchpy/venv/Lib/site-packages/pip/_vendor/html5lib/filters/optionaltags.py +207 -0
- quarchpy/venv/Lib/site-packages/pip/_vendor/html5lib/filters/sanitizer.py +916 -0
- quarchpy/venv/Lib/site-packages/pip/_vendor/html5lib/filters/whitespace.py +38 -0
- quarchpy/venv/Lib/site-packages/pip/_vendor/html5lib/html5parser.py +2795 -0
- quarchpy/venv/Lib/site-packages/pip/_vendor/html5lib/serializer.py +409 -0
- quarchpy/venv/Lib/site-packages/pip/_vendor/html5lib/treeadapters/__init__.py +30 -0
- quarchpy/venv/Lib/site-packages/pip/_vendor/html5lib/treeadapters/genshi.py +54 -0
- quarchpy/venv/Lib/site-packages/pip/_vendor/html5lib/treeadapters/sax.py +50 -0
- quarchpy/venv/Lib/site-packages/pip/_vendor/html5lib/treebuilders/__init__.py +88 -0
- quarchpy/venv/Lib/site-packages/pip/_vendor/html5lib/treebuilders/base.py +417 -0
- quarchpy/venv/Lib/site-packages/pip/_vendor/html5lib/treebuilders/dom.py +239 -0
- quarchpy/venv/Lib/site-packages/pip/_vendor/html5lib/treebuilders/etree.py +343 -0
- quarchpy/venv/Lib/site-packages/pip/_vendor/html5lib/treebuilders/etree_lxml.py +392 -0
- quarchpy/venv/Lib/site-packages/pip/_vendor/html5lib/treewalkers/__init__.py +154 -0
- quarchpy/venv/Lib/site-packages/pip/_vendor/html5lib/treewalkers/base.py +252 -0
- quarchpy/venv/Lib/site-packages/pip/_vendor/html5lib/treewalkers/dom.py +43 -0
- quarchpy/venv/Lib/site-packages/pip/_vendor/html5lib/treewalkers/etree.py +131 -0
- quarchpy/venv/Lib/site-packages/pip/_vendor/html5lib/treewalkers/etree_lxml.py +215 -0
- quarchpy/venv/Lib/site-packages/pip/_vendor/html5lib/treewalkers/genshi.py +69 -0
- quarchpy/venv/Lib/site-packages/pip/_vendor/idna/__init__.py +2 -0
- quarchpy/venv/Lib/site-packages/pip/_vendor/idna/codec.py +118 -0
- quarchpy/venv/Lib/site-packages/pip/_vendor/idna/compat.py +12 -0
- quarchpy/venv/Lib/site-packages/pip/_vendor/idna/core.py +400 -0
- quarchpy/venv/Lib/site-packages/pip/_vendor/idna/idnadata.py +2050 -0
- quarchpy/venv/Lib/site-packages/pip/_vendor/idna/intranges.py +53 -0
- quarchpy/venv/Lib/site-packages/pip/_vendor/idna/package_data.py +2 -0
- quarchpy/venv/Lib/site-packages/pip/_vendor/idna/uts46data.py +8357 -0
- quarchpy/venv/Lib/site-packages/pip/_vendor/ipaddress.py +2420 -0
- quarchpy/venv/Lib/site-packages/pip/_vendor/msgpack/__init__.py +54 -0
- quarchpy/venv/Lib/site-packages/pip/_vendor/msgpack/_version.py +1 -0
- quarchpy/venv/Lib/site-packages/pip/_vendor/msgpack/exceptions.py +48 -0
- quarchpy/venv/Lib/site-packages/pip/_vendor/msgpack/ext.py +191 -0
- quarchpy/venv/Lib/site-packages/pip/_vendor/msgpack/fallback.py +1063 -0
- quarchpy/venv/Lib/site-packages/pip/_vendor/packaging/__about__.py +27 -0
- quarchpy/venv/Lib/site-packages/pip/_vendor/packaging/__init__.py +26 -0
- quarchpy/venv/Lib/site-packages/pip/_vendor/packaging/_compat.py +38 -0
- quarchpy/venv/Lib/site-packages/pip/_vendor/packaging/_structures.py +86 -0
- quarchpy/venv/Lib/site-packages/pip/_vendor/packaging/_typing.py +48 -0
- quarchpy/venv/Lib/site-packages/pip/_vendor/packaging/markers.py +328 -0
- quarchpy/venv/Lib/site-packages/pip/_vendor/packaging/requirements.py +151 -0
- quarchpy/venv/Lib/site-packages/pip/_vendor/packaging/specifiers.py +864 -0
- quarchpy/venv/Lib/site-packages/pip/_vendor/packaging/tags.py +852 -0
- quarchpy/venv/Lib/site-packages/pip/_vendor/packaging/utils.py +67 -0
- quarchpy/venv/Lib/site-packages/pip/_vendor/packaging/version.py +556 -0
- quarchpy/venv/Lib/site-packages/pip/_vendor/pep517/__init__.py +6 -0
- quarchpy/venv/Lib/site-packages/pip/_vendor/pep517/_in_process.py +280 -0
- quarchpy/venv/Lib/site-packages/pip/_vendor/pep517/build.py +124 -0
- quarchpy/venv/Lib/site-packages/pip/_vendor/pep517/check.py +203 -0
- quarchpy/venv/Lib/site-packages/pip/_vendor/pep517/colorlog.py +115 -0
- quarchpy/venv/Lib/site-packages/pip/_vendor/pep517/compat.py +34 -0
- quarchpy/venv/Lib/site-packages/pip/_vendor/pep517/dirtools.py +44 -0
- quarchpy/venv/Lib/site-packages/pip/_vendor/pep517/envbuild.py +167 -0
- quarchpy/venv/Lib/site-packages/pip/_vendor/pep517/meta.py +92 -0
- quarchpy/venv/Lib/site-packages/pip/_vendor/pep517/wrappers.py +327 -0
- quarchpy/venv/Lib/site-packages/pip/_vendor/pkg_resources/__init__.py +3296 -0
- quarchpy/venv/Lib/site-packages/pip/_vendor/pkg_resources/py31compat.py +23 -0
- quarchpy/venv/Lib/site-packages/pip/_vendor/progress/__init__.py +177 -0
- quarchpy/venv/Lib/site-packages/pip/_vendor/progress/bar.py +91 -0
- quarchpy/venv/Lib/site-packages/pip/_vendor/progress/counter.py +41 -0
- quarchpy/venv/Lib/site-packages/pip/_vendor/progress/spinner.py +43 -0
- quarchpy/venv/Lib/site-packages/pip/_vendor/pyparsing.py +7107 -0
- quarchpy/venv/Lib/site-packages/pip/_vendor/requests/__init__.py +144 -0
- quarchpy/venv/Lib/site-packages/pip/_vendor/requests/__version__.py +14 -0
- quarchpy/venv/Lib/site-packages/pip/_vendor/requests/_internal_utils.py +42 -0
- quarchpy/venv/Lib/site-packages/pip/_vendor/requests/adapters.py +533 -0
- quarchpy/venv/Lib/site-packages/pip/_vendor/requests/api.py +161 -0
- quarchpy/venv/Lib/site-packages/pip/_vendor/requests/auth.py +305 -0
- quarchpy/venv/Lib/site-packages/pip/_vendor/requests/certs.py +18 -0
- quarchpy/venv/Lib/site-packages/pip/_vendor/requests/compat.py +76 -0
- quarchpy/venv/Lib/site-packages/pip/_vendor/requests/cookies.py +549 -0
- quarchpy/venv/Lib/site-packages/pip/_vendor/requests/exceptions.py +123 -0
- quarchpy/venv/Lib/site-packages/pip/_vendor/requests/help.py +119 -0
- quarchpy/venv/Lib/site-packages/pip/_vendor/requests/hooks.py +34 -0
- quarchpy/venv/Lib/site-packages/pip/_vendor/requests/models.py +956 -0
- quarchpy/venv/Lib/site-packages/pip/_vendor/requests/packages.py +16 -0
- quarchpy/venv/Lib/site-packages/pip/_vendor/requests/sessions.py +781 -0
- quarchpy/venv/Lib/site-packages/pip/_vendor/requests/status_codes.py +123 -0
- quarchpy/venv/Lib/site-packages/pip/_vendor/requests/structures.py +105 -0
- quarchpy/venv/Lib/site-packages/pip/_vendor/requests/utils.py +988 -0
- quarchpy/venv/Lib/site-packages/pip/_vendor/resolvelib/__init__.py +26 -0
- quarchpy/venv/Lib/site-packages/pip/_vendor/resolvelib/compat/__init__.py +0 -0
- quarchpy/venv/Lib/site-packages/pip/_vendor/resolvelib/compat/collections_abc.py +6 -0
- quarchpy/venv/Lib/site-packages/pip/_vendor/resolvelib/providers.py +119 -0
- quarchpy/venv/Lib/site-packages/pip/_vendor/resolvelib/reporters.py +37 -0
- quarchpy/venv/Lib/site-packages/pip/_vendor/resolvelib/resolvers.py +454 -0
- quarchpy/venv/Lib/site-packages/pip/_vendor/resolvelib/structs.py +149 -0
- quarchpy/venv/Lib/site-packages/pip/_vendor/retrying.py +267 -0
- quarchpy/venv/Lib/site-packages/pip/_vendor/six.py +982 -0
- quarchpy/venv/Lib/site-packages/pip/_vendor/toml/__init__.py +25 -0
- quarchpy/venv/Lib/site-packages/pip/_vendor/toml/decoder.py +1057 -0
- quarchpy/venv/Lib/site-packages/pip/_vendor/toml/encoder.py +304 -0
- quarchpy/venv/Lib/site-packages/pip/_vendor/toml/ordered.py +15 -0
- quarchpy/venv/Lib/site-packages/pip/_vendor/toml/tz.py +24 -0
- quarchpy/venv/Lib/site-packages/pip/_vendor/urllib3/__init__.py +85 -0
- quarchpy/venv/Lib/site-packages/pip/_vendor/urllib3/_collections.py +337 -0
- quarchpy/venv/Lib/site-packages/pip/_vendor/urllib3/_version.py +2 -0
- quarchpy/venv/Lib/site-packages/pip/_vendor/urllib3/connection.py +535 -0
- quarchpy/venv/Lib/site-packages/pip/_vendor/urllib3/connectionpool.py +1067 -0
- quarchpy/venv/Lib/site-packages/pip/_vendor/urllib3/contrib/__init__.py +0 -0
- quarchpy/venv/Lib/site-packages/pip/_vendor/urllib3/contrib/_appengine_environ.py +36 -0
- quarchpy/venv/Lib/site-packages/pip/_vendor/urllib3/contrib/_securetransport/__init__.py +0 -0
- quarchpy/venv/Lib/site-packages/pip/_vendor/urllib3/contrib/_securetransport/bindings.py +519 -0
- quarchpy/venv/Lib/site-packages/pip/_vendor/urllib3/contrib/_securetransport/low_level.py +396 -0
- quarchpy/venv/Lib/site-packages/pip/_vendor/urllib3/contrib/appengine.py +314 -0
- quarchpy/venv/Lib/site-packages/pip/_vendor/urllib3/contrib/ntlmpool.py +121 -0
- quarchpy/venv/Lib/site-packages/pip/_vendor/urllib3/contrib/pyopenssl.py +509 -0
- quarchpy/venv/Lib/site-packages/pip/_vendor/urllib3/contrib/securetransport.py +920 -0
- quarchpy/venv/Lib/site-packages/pip/_vendor/urllib3/contrib/socks.py +216 -0
- quarchpy/venv/Lib/site-packages/pip/_vendor/urllib3/exceptions.py +313 -0
- quarchpy/venv/Lib/site-packages/pip/_vendor/urllib3/fields.py +274 -0
- quarchpy/venv/Lib/site-packages/pip/_vendor/urllib3/filepost.py +98 -0
- quarchpy/venv/Lib/site-packages/pip/_vendor/urllib3/packages/__init__.py +5 -0
- quarchpy/venv/Lib/site-packages/pip/_vendor/urllib3/packages/backports/__init__.py +0 -0
- quarchpy/venv/Lib/site-packages/pip/_vendor/urllib3/packages/backports/makefile.py +51 -0
- quarchpy/venv/Lib/site-packages/pip/_vendor/urllib3/packages/six.py +1021 -0
- quarchpy/venv/Lib/site-packages/pip/_vendor/urllib3/packages/ssl_match_hostname/__init__.py +22 -0
- quarchpy/venv/Lib/site-packages/pip/_vendor/urllib3/packages/ssl_match_hostname/_implementation.py +160 -0
- quarchpy/venv/Lib/site-packages/pip/_vendor/urllib3/poolmanager.py +536 -0
- quarchpy/venv/Lib/site-packages/pip/_vendor/urllib3/request.py +170 -0
- quarchpy/venv/Lib/site-packages/pip/_vendor/urllib3/response.py +821 -0
- quarchpy/venv/Lib/site-packages/pip/_vendor/urllib3/util/__init__.py +49 -0
- quarchpy/venv/Lib/site-packages/pip/_vendor/urllib3/util/connection.py +150 -0
- quarchpy/venv/Lib/site-packages/pip/_vendor/urllib3/util/proxy.py +56 -0
- quarchpy/venv/Lib/site-packages/pip/_vendor/urllib3/util/queue.py +22 -0
- quarchpy/venv/Lib/site-packages/pip/_vendor/urllib3/util/request.py +143 -0
- quarchpy/venv/Lib/site-packages/pip/_vendor/urllib3/util/response.py +107 -0
- quarchpy/venv/Lib/site-packages/pip/_vendor/urllib3/util/retry.py +601 -0
- quarchpy/venv/Lib/site-packages/pip/_vendor/urllib3/util/ssl_.py +474 -0
- quarchpy/venv/Lib/site-packages/pip/_vendor/urllib3/util/ssltransport.py +221 -0
- quarchpy/venv/Lib/site-packages/pip/_vendor/urllib3/util/timeout.py +268 -0
- quarchpy/venv/Lib/site-packages/pip/_vendor/urllib3/util/url.py +430 -0
- quarchpy/venv/Lib/site-packages/pip/_vendor/urllib3/util/wait.py +153 -0
- quarchpy/venv/Lib/site-packages/pip/_vendor/vendor.txt +24 -0
- quarchpy/venv/Lib/site-packages/pip/_vendor/webencodings/__init__.py +342 -0
- quarchpy/venv/Lib/site-packages/pip/_vendor/webencodings/labels.py +231 -0
- quarchpy/venv/Lib/site-packages/pip/_vendor/webencodings/mklabels.py +59 -0
- quarchpy/venv/Lib/site-packages/pip/_vendor/webencodings/tests.py +153 -0
- quarchpy/venv/Lib/site-packages/pip/_vendor/webencodings/x_user_defined.py +325 -0
- quarchpy/venv/Lib/site-packages/pip-20.3.4.dist-info/INSTALLER +1 -0
- quarchpy/venv/Lib/site-packages/pip-20.3.4.dist-info/LICENSE.txt +20 -0
- quarchpy/venv/Lib/site-packages/pip-20.3.4.dist-info/METADATA +94 -0
- quarchpy/venv/Lib/site-packages/pip-20.3.4.dist-info/RECORD +812 -0
- quarchpy/venv/Lib/site-packages/pip-20.3.4.dist-info/WHEEL +6 -0
- quarchpy/venv/Lib/site-packages/pip-20.3.4.dist-info/entry_points.txt +5 -0
- quarchpy/venv/Lib/site-packages/pip-20.3.4.dist-info/top_level.txt +1 -0
- quarchpy/venv/Lib/site-packages/pip-20.3.4.virtualenv +0 -0
- quarchpy/venv/Lib/site-packages/pkg_resources/__init__.py +3296 -0
- quarchpy/venv/Lib/site-packages/pkg_resources/__init__.pyc +0 -0
- quarchpy/venv/Lib/site-packages/pkg_resources/_vendor/__init__.py +0 -0
- quarchpy/venv/Lib/site-packages/pkg_resources/_vendor/__init__.pyc +0 -0
- quarchpy/venv/Lib/site-packages/pkg_resources/_vendor/appdirs.py +608 -0
- quarchpy/venv/Lib/site-packages/pkg_resources/_vendor/appdirs.pyc +0 -0
- quarchpy/venv/Lib/site-packages/pkg_resources/_vendor/packaging/__about__.py +21 -0
- quarchpy/venv/Lib/site-packages/pkg_resources/_vendor/packaging/__about__.pyc +0 -0
- quarchpy/venv/Lib/site-packages/pkg_resources/_vendor/packaging/__init__.py +14 -0
- quarchpy/venv/Lib/site-packages/pkg_resources/_vendor/packaging/__init__.pyc +0 -0
- quarchpy/venv/Lib/site-packages/pkg_resources/_vendor/packaging/_compat.py +30 -0
- quarchpy/venv/Lib/site-packages/pkg_resources/_vendor/packaging/_compat.pyc +0 -0
- quarchpy/venv/Lib/site-packages/pkg_resources/_vendor/packaging/_structures.py +68 -0
- quarchpy/venv/Lib/site-packages/pkg_resources/_vendor/packaging/_structures.pyc +0 -0
- quarchpy/venv/Lib/site-packages/pkg_resources/_vendor/packaging/markers.py +301 -0
- quarchpy/venv/Lib/site-packages/pkg_resources/_vendor/packaging/markers.pyc +0 -0
- quarchpy/venv/Lib/site-packages/pkg_resources/_vendor/packaging/requirements.py +127 -0
- quarchpy/venv/Lib/site-packages/pkg_resources/_vendor/packaging/requirements.pyc +0 -0
- quarchpy/venv/Lib/site-packages/pkg_resources/_vendor/packaging/specifiers.py +774 -0
- quarchpy/venv/Lib/site-packages/pkg_resources/_vendor/packaging/specifiers.pyc +0 -0
- quarchpy/venv/Lib/site-packages/pkg_resources/_vendor/packaging/utils.py +14 -0
- quarchpy/venv/Lib/site-packages/pkg_resources/_vendor/packaging/version.py +393 -0
- quarchpy/venv/Lib/site-packages/pkg_resources/_vendor/packaging/version.pyc +0 -0
- quarchpy/venv/Lib/site-packages/pkg_resources/_vendor/pyparsing.py +5742 -0
- quarchpy/venv/Lib/site-packages/pkg_resources/_vendor/pyparsing.pyc +0 -0
- quarchpy/venv/Lib/site-packages/pkg_resources/_vendor/six.py +868 -0
- quarchpy/venv/Lib/site-packages/pkg_resources/_vendor/six.pyc +0 -0
- quarchpy/venv/Lib/site-packages/pkg_resources/extern/__init__.py +73 -0
- quarchpy/venv/Lib/site-packages/pkg_resources/extern/__init__.pyc +0 -0
- quarchpy/venv/Lib/site-packages/pkg_resources/py31compat.py +23 -0
- quarchpy/venv/Lib/site-packages/pkg_resources/py31compat.pyc +0 -0
- quarchpy/venv/Lib/site-packages/setuptools/__init__.py +245 -0
- quarchpy/venv/Lib/site-packages/setuptools/_deprecation_warning.py +7 -0
- quarchpy/venv/Lib/site-packages/setuptools/_imp.py +73 -0
- quarchpy/venv/Lib/site-packages/setuptools/_vendor/__init__.py +0 -0
- quarchpy/venv/Lib/site-packages/setuptools/_vendor/ordered_set.py +488 -0
- quarchpy/venv/Lib/site-packages/setuptools/_vendor/packaging/__about__.py +27 -0
- quarchpy/venv/Lib/site-packages/setuptools/_vendor/packaging/__init__.py +26 -0
- quarchpy/venv/Lib/site-packages/setuptools/_vendor/packaging/_compat.py +31 -0
- quarchpy/venv/Lib/site-packages/setuptools/_vendor/packaging/_structures.py +68 -0
- quarchpy/venv/Lib/site-packages/setuptools/_vendor/packaging/markers.py +296 -0
- quarchpy/venv/Lib/site-packages/setuptools/_vendor/packaging/requirements.py +138 -0
- quarchpy/venv/Lib/site-packages/setuptools/_vendor/packaging/specifiers.py +749 -0
- quarchpy/venv/Lib/site-packages/setuptools/_vendor/packaging/tags.py +404 -0
- quarchpy/venv/Lib/site-packages/setuptools/_vendor/packaging/utils.py +57 -0
- quarchpy/venv/Lib/site-packages/setuptools/_vendor/packaging/version.py +420 -0
- quarchpy/venv/Lib/site-packages/setuptools/_vendor/pyparsing.py +5742 -0
- quarchpy/venv/Lib/site-packages/setuptools/_vendor/six.py +868 -0
- quarchpy/venv/Lib/site-packages/setuptools/archive_util.py +173 -0
- quarchpy/venv/Lib/site-packages/setuptools/build_meta.py +264 -0
- quarchpy/venv/Lib/site-packages/setuptools/cli-32.exe +0 -0
- quarchpy/venv/Lib/site-packages/setuptools/cli-64.exe +0 -0
- quarchpy/venv/Lib/site-packages/setuptools/cli.exe +0 -0
- quarchpy/venv/Lib/site-packages/setuptools/command/__init__.py +17 -0
- quarchpy/venv/Lib/site-packages/setuptools/command/alias.py +80 -0
- quarchpy/venv/Lib/site-packages/setuptools/command/bdist_egg.py +502 -0
- quarchpy/venv/Lib/site-packages/setuptools/command/bdist_rpm.py +43 -0
- quarchpy/venv/Lib/site-packages/setuptools/command/bdist_wininst.py +21 -0
- quarchpy/venv/Lib/site-packages/setuptools/command/build_clib.py +98 -0
- quarchpy/venv/Lib/site-packages/setuptools/command/build_ext.py +327 -0
- quarchpy/venv/Lib/site-packages/setuptools/command/build_py.py +270 -0
- quarchpy/venv/Lib/site-packages/setuptools/command/develop.py +221 -0
- quarchpy/venv/Lib/site-packages/setuptools/command/dist_info.py +36 -0
- quarchpy/venv/Lib/site-packages/setuptools/command/easy_install.py +2347 -0
- quarchpy/venv/Lib/site-packages/setuptools/command/egg_info.py +717 -0
- quarchpy/venv/Lib/site-packages/setuptools/command/install.py +125 -0
- quarchpy/venv/Lib/site-packages/setuptools/command/install_egg_info.py +62 -0
- quarchpy/venv/Lib/site-packages/setuptools/command/install_lib.py +121 -0
- quarchpy/venv/Lib/site-packages/setuptools/command/install_scripts.py +65 -0
- quarchpy/venv/Lib/site-packages/setuptools/command/launcher manifest.xml +15 -0
- quarchpy/venv/Lib/site-packages/setuptools/command/py36compat.py +136 -0
- quarchpy/venv/Lib/site-packages/setuptools/command/register.py +18 -0
- quarchpy/venv/Lib/site-packages/setuptools/command/rotate.py +66 -0
- quarchpy/venv/Lib/site-packages/setuptools/command/saveopts.py +22 -0
- quarchpy/venv/Lib/site-packages/setuptools/command/sdist.py +252 -0
- quarchpy/venv/Lib/site-packages/setuptools/command/setopt.py +149 -0
- quarchpy/venv/Lib/site-packages/setuptools/command/test.py +279 -0
- quarchpy/venv/Lib/site-packages/setuptools/command/upload.py +17 -0
- quarchpy/venv/Lib/site-packages/setuptools/command/upload_docs.py +206 -0
- quarchpy/venv/Lib/site-packages/setuptools/config.py +659 -0
- quarchpy/venv/Lib/site-packages/setuptools/dep_util.py +23 -0
- quarchpy/venv/Lib/site-packages/setuptools/depends.py +176 -0
- quarchpy/venv/Lib/site-packages/setuptools/dist.py +1274 -0
- quarchpy/venv/Lib/site-packages/setuptools/errors.py +16 -0
- quarchpy/venv/Lib/site-packages/setuptools/extension.py +57 -0
- quarchpy/venv/Lib/site-packages/setuptools/extern/__init__.py +73 -0
- quarchpy/venv/Lib/site-packages/setuptools/glob.py +174 -0
- quarchpy/venv/Lib/site-packages/setuptools/gui-32.exe +0 -0
- quarchpy/venv/Lib/site-packages/setuptools/gui-64.exe +0 -0
- quarchpy/venv/Lib/site-packages/setuptools/gui.exe +0 -0
- quarchpy/venv/Lib/site-packages/setuptools/installer.py +150 -0
- quarchpy/venv/Lib/site-packages/setuptools/launch.py +35 -0
- quarchpy/venv/Lib/site-packages/setuptools/lib2to3_ex.py +62 -0
- quarchpy/venv/Lib/site-packages/setuptools/monkey.py +179 -0
- quarchpy/venv/Lib/site-packages/setuptools/msvc.py +1679 -0
- quarchpy/venv/Lib/site-packages/setuptools/namespaces.py +107 -0
- quarchpy/venv/Lib/site-packages/setuptools/package_index.py +1136 -0
- quarchpy/venv/Lib/site-packages/setuptools/py27compat.py +60 -0
- quarchpy/venv/Lib/site-packages/setuptools/py31compat.py +32 -0
- quarchpy/venv/Lib/site-packages/setuptools/py33compat.py +59 -0
- quarchpy/venv/Lib/site-packages/setuptools/py34compat.py +13 -0
- quarchpy/venv/Lib/site-packages/setuptools/sandbox.py +491 -0
- quarchpy/venv/Lib/site-packages/setuptools/script (dev).tmpl +6 -0
- quarchpy/venv/Lib/site-packages/setuptools/script.tmpl +3 -0
- quarchpy/venv/Lib/site-packages/setuptools/site-patch.py +74 -0
- quarchpy/venv/Lib/site-packages/setuptools/ssl_support.py +260 -0
- quarchpy/venv/Lib/site-packages/setuptools/unicode_utils.py +44 -0
- quarchpy/venv/Lib/site-packages/setuptools/version.py +6 -0
- quarchpy/venv/Lib/site-packages/setuptools/wheel.py +220 -0
- quarchpy/venv/Lib/site-packages/setuptools/windows_support.py +29 -0
- quarchpy/venv/Lib/site-packages/setuptools-44.1.1.dist-info/INSTALLER +1 -0
- quarchpy/venv/Lib/site-packages/setuptools-44.1.1.dist-info/LICENSE +19 -0
- quarchpy/venv/Lib/site-packages/setuptools-44.1.1.dist-info/METADATA +86 -0
- quarchpy/venv/Lib/site-packages/setuptools-44.1.1.dist-info/RECORD +207 -0
- quarchpy/venv/Lib/site-packages/setuptools-44.1.1.dist-info/WHEEL +6 -0
- quarchpy/venv/Lib/site-packages/setuptools-44.1.1.dist-info/dependency_links.txt +2 -0
- quarchpy/venv/Lib/site-packages/setuptools-44.1.1.dist-info/entry_points.txt +69 -0
- quarchpy/venv/Lib/site-packages/setuptools-44.1.1.dist-info/top_level.txt +3 -0
- quarchpy/venv/Lib/site-packages/setuptools-44.1.1.dist-info/zip-safe +1 -0
- quarchpy/venv/Lib/site-packages/setuptools-44.1.1.virtualenv +0 -0
- quarchpy/venv/Lib/site-packages/wheel/__init__.py +1 -0
- quarchpy/venv/Lib/site-packages/wheel/__main__.py +19 -0
- quarchpy/venv/Lib/site-packages/wheel/bdist_wheel.py +492 -0
- quarchpy/venv/Lib/site-packages/wheel/cli/__init__.py +88 -0
- quarchpy/venv/Lib/site-packages/wheel/cli/convert.py +269 -0
- quarchpy/venv/Lib/site-packages/wheel/cli/pack.py +82 -0
- quarchpy/venv/Lib/site-packages/wheel/cli/unpack.py +25 -0
- quarchpy/venv/Lib/site-packages/wheel/macosx_libfile.py +428 -0
- quarchpy/venv/Lib/site-packages/wheel/metadata.py +133 -0
- quarchpy/venv/Lib/site-packages/wheel/pkginfo.py +43 -0
- quarchpy/venv/Lib/site-packages/wheel/util.py +46 -0
- quarchpy/venv/Lib/site-packages/wheel/vendored/__init__.py +0 -0
- quarchpy/venv/Lib/site-packages/wheel/vendored/packaging/__init__.py +0 -0
- quarchpy/venv/Lib/site-packages/wheel/vendored/packaging/_typing.py +48 -0
- quarchpy/venv/Lib/site-packages/wheel/vendored/packaging/tags.py +866 -0
- quarchpy/venv/Lib/site-packages/wheel/wheelfile.py +181 -0
- quarchpy/venv/Lib/site-packages/wheel-0.37.1.dist-info/INSTALLER +1 -0
- quarchpy/venv/Lib/site-packages/wheel-0.37.1.dist-info/LICENSE.txt +22 -0
- quarchpy/venv/Lib/site-packages/wheel-0.37.1.dist-info/METADATA +69 -0
- quarchpy/venv/Lib/site-packages/wheel-0.37.1.dist-info/RECORD +49 -0
- quarchpy/venv/Lib/site-packages/wheel-0.37.1.dist-info/WHEEL +6 -0
- quarchpy/venv/Lib/site-packages/wheel-0.37.1.dist-info/entry_points.txt +6 -0
- quarchpy/venv/Lib/site-packages/wheel-0.37.1.dist-info/top_level.txt +1 -0
- quarchpy/venv/Lib/site-packages/wheel-0.37.1.virtualenv +0 -0
- quarchpy/venv/Lib/site.py +190 -0
- quarchpy/venv/Lib/site.pyc +0 -0
- quarchpy/venv/Scripts/activate +83 -0
- quarchpy/venv/Scripts/activate.bat +39 -0
- quarchpy/venv/Scripts/activate.fish +100 -0
- quarchpy/venv/Scripts/activate.nu +41 -0
- quarchpy/venv/Scripts/activate.ps1 +60 -0
- quarchpy/venv/Scripts/activate_this.py +32 -0
- quarchpy/venv/Scripts/deactivate.bat +19 -0
- quarchpy/venv/Scripts/deactivate.nu +11 -0
- quarchpy/venv/Scripts/easy_install-2.7.exe +0 -0
- quarchpy/venv/Scripts/easy_install.exe +0 -0
- quarchpy/venv/Scripts/easy_install2.7.exe +0 -0
- quarchpy/venv/Scripts/easy_install2.exe +0 -0
- quarchpy/venv/Scripts/pip-2.7.exe +0 -0
- quarchpy/venv/Scripts/pip.exe +0 -0
- quarchpy/venv/Scripts/pip2.7.exe +0 -0
- quarchpy/venv/Scripts/pip2.exe +0 -0
- quarchpy/venv/Scripts/pydoc.bat +1 -0
- quarchpy/venv/Scripts/python.exe +0 -0
- quarchpy/venv/Scripts/python27.dll +0 -0
- quarchpy/venv/Scripts/pythonw.exe +0 -0
- quarchpy/venv/Scripts/wheel-2.7.exe +0 -0
- quarchpy/venv/Scripts/wheel.exe +0 -0
- quarchpy/venv/Scripts/wheel2.7.exe +0 -0
- quarchpy/venv/Scripts/wheel2.exe +0 -0
- quarchpy/venv/libs/_bsddb.lib +0 -0
- quarchpy/venv/libs/_ctypes.lib +0 -0
- quarchpy/venv/libs/_ctypes_test.lib +0 -0
- quarchpy/venv/libs/_elementtree.lib +0 -0
- quarchpy/venv/libs/_hashlib.lib +0 -0
- quarchpy/venv/libs/_msi.lib +0 -0
- quarchpy/venv/libs/_multiprocessing.lib +0 -0
- quarchpy/venv/libs/_socket.lib +0 -0
- quarchpy/venv/libs/_sqlite3.lib +0 -0
- quarchpy/venv/libs/_ssl.lib +0 -0
- quarchpy/venv/libs/_testcapi.lib +0 -0
- quarchpy/venv/libs/_tkinter.lib +0 -0
- quarchpy/venv/libs/bz2.lib +0 -0
- quarchpy/venv/libs/libpython27.a +0 -0
- quarchpy/venv/libs/pyexpat.lib +0 -0
- quarchpy/venv/libs/python27.lib +0 -0
- quarchpy/venv/libs/select.lib +0 -0
- quarchpy/venv/libs/unicodedata.lib +0 -0
- quarchpy/venv/libs/winsound.lib +0 -0
- quarchpy/venv/pyvenv.cfg +8 -0
- {quarchpy-2.1.14.dev4.dist-info → quarchpy-2.1.14.dev5.dist-info}/METADATA +1 -1
- quarchpy-2.1.14.dev5.dist-info/RECORD +1219 -0
- quarchpy/connection_specific/QPS/qis/qis_lib/CInterface-1.7.02.jar +0 -0
- quarchpy/connection_specific/QPS/qis/qis_lib/CInterface-1.7.8.jar +0 -0
- quarchpy/connection_specific/QPS/qis/qis_lib/Collections-1.2.jar +0 -0
- quarchpy/connection_specific/QPS/qis/qis_lib/Desktop-1.0.jar +0 -0
- quarchpy/connection_specific/QPS/qis/qis_lib/Executor-3.11.jar +0 -0
- quarchpy/connection_specific/QPS/qis/qis_lib/JNA-1.0.jar +0 -0
- quarchpy/connection_specific/QPS/qis/qis_lib/OS-1.6.jar +0 -0
- quarchpy/connection_specific/QPS/qis/qis_lib/QuarchCommon-0.2.9.jar +0 -0
- quarchpy/connection_specific/QPS/qis/qis_lib/SystemTray-4.2.1.jar +0 -0
- quarchpy/connection_specific/QPS/qis/qis_lib/Updates-1.1.jar +0 -0
- quarchpy/connection_specific/QPS/qis/qis_lib/Utilities-1.39.jar +0 -0
- quarchpy/connection_specific/QPS/qis/qis_lib/commons-csv-1.8.jar +0 -0
- quarchpy/connection_specific/QPS/qis/qis_lib/javassist-3.29.2-GA.jar +0 -0
- quarchpy/connection_specific/QPS/qis/qis_lib/jna-jpms-5.12.1.jar +0 -0
- quarchpy/connection_specific/QPS/qis/qis_lib/jna-platform-jpms-5.12.1.jar +0 -0
- quarchpy/connection_specific/QPS/qis/qis_lib/kotlin-stdlib-1.7.22.jar +0 -0
- quarchpy/connection_specific/QPS/qis/qis_lib/slf4j-api-2.0.9.jar +0 -0
- quarchpy/connection_specific/QPS/qis/qis_lib/slf4j-simple-2.0.9.jar +0 -0
- quarchpy/connection_specific/QPS/qis/resources/filters/filters.csv +0 -1004
- quarchpy/connection_specific/QPS/qps_lib/QuarchCommon-0.2.9.jar +0 -0
- quarchpy/connection_specific/QPS/qps_lib/commons-lang3-3.12.0.jar +0 -0
- quarchpy/connection_specific/QPS/qps_lib/opencsv-5.9.jar +0 -0
- quarchpy/connection_specific/QPS/qps_lib/qis-1.39.4.jar +0 -0
- quarchpy/connection_specific/QPS/qps_lib/qis-1.39.5.jar +0 -0
- quarchpy/connection_specific/QPS/qps_lib/qis-1.39.6.jar +0 -0
- quarchpy/connection_specific/QPS/qps_lib/qis-1.39.7.jar +0 -0
- quarchpy-2.1.14.dev4.dist-info/RECORD +0 -561
- {quarchpy-2.1.14.dev4.dist-info → quarchpy-2.1.14.dev5.dist-info}/WHEEL +0 -0
- {quarchpy-2.1.14.dev4.dist-info → quarchpy-2.1.14.dev5.dist-info}/top_level.txt +0 -0
@@ -0,0 +1,907 @@
|
|
1
|
+
# The following comment should be removed at some point in the future.
|
2
|
+
# mypy: strict-optional=False
|
3
|
+
|
4
|
+
from __future__ import absolute_import
|
5
|
+
|
6
|
+
import logging
|
7
|
+
import os
|
8
|
+
import shutil
|
9
|
+
import sys
|
10
|
+
import uuid
|
11
|
+
import zipfile
|
12
|
+
|
13
|
+
from pip._vendor import pkg_resources, six
|
14
|
+
from pip._vendor.packaging.requirements import Requirement
|
15
|
+
from pip._vendor.packaging.utils import canonicalize_name
|
16
|
+
from pip._vendor.packaging.version import Version
|
17
|
+
from pip._vendor.packaging.version import parse as parse_version
|
18
|
+
from pip._vendor.pep517.wrappers import Pep517HookCaller
|
19
|
+
|
20
|
+
from pip._internal.build_env import NoOpBuildEnvironment
|
21
|
+
from pip._internal.exceptions import InstallationError
|
22
|
+
from pip._internal.locations import get_scheme
|
23
|
+
from pip._internal.models.link import Link
|
24
|
+
from pip._internal.operations.build.metadata import generate_metadata
|
25
|
+
from pip._internal.operations.build.metadata_legacy import (
|
26
|
+
generate_metadata as generate_metadata_legacy,
|
27
|
+
)
|
28
|
+
from pip._internal.operations.install.editable_legacy import (
|
29
|
+
install_editable as install_editable_legacy,
|
30
|
+
)
|
31
|
+
from pip._internal.operations.install.legacy import LegacyInstallFailure
|
32
|
+
from pip._internal.operations.install.legacy import install as install_legacy
|
33
|
+
from pip._internal.operations.install.wheel import install_wheel
|
34
|
+
from pip._internal.pyproject import load_pyproject_toml, make_pyproject_path
|
35
|
+
from pip._internal.req.req_uninstall import UninstallPathSet
|
36
|
+
from pip._internal.utils.deprecation import deprecated
|
37
|
+
from pip._internal.utils.direct_url_helpers import direct_url_from_link
|
38
|
+
from pip._internal.utils.hashes import Hashes
|
39
|
+
from pip._internal.utils.logging import indent_log
|
40
|
+
from pip._internal.utils.misc import (
|
41
|
+
ask_path_exists,
|
42
|
+
backup_dir,
|
43
|
+
display_path,
|
44
|
+
dist_in_site_packages,
|
45
|
+
dist_in_usersite,
|
46
|
+
get_distribution,
|
47
|
+
get_installed_version,
|
48
|
+
hide_url,
|
49
|
+
redact_auth_from_url,
|
50
|
+
)
|
51
|
+
from pip._internal.utils.packaging import get_metadata
|
52
|
+
from pip._internal.utils.temp_dir import TempDirectory, tempdir_kinds
|
53
|
+
from pip._internal.utils.typing import MYPY_CHECK_RUNNING
|
54
|
+
from pip._internal.utils.virtualenv import running_under_virtualenv
|
55
|
+
from pip._internal.vcs import vcs
|
56
|
+
|
57
|
+
if MYPY_CHECK_RUNNING:
|
58
|
+
from typing import Any, Dict, Iterable, List, Optional, Sequence, Union
|
59
|
+
|
60
|
+
from pip._vendor.packaging.markers import Marker
|
61
|
+
from pip._vendor.packaging.specifiers import SpecifierSet
|
62
|
+
from pip._vendor.pkg_resources import Distribution
|
63
|
+
|
64
|
+
from pip._internal.build_env import BuildEnvironment
|
65
|
+
|
66
|
+
|
67
|
+
logger = logging.getLogger(__name__)
|
68
|
+
|
69
|
+
|
70
|
+
def _get_dist(metadata_directory):
|
71
|
+
# type: (str) -> Distribution
|
72
|
+
"""Return a pkg_resources.Distribution for the provided
|
73
|
+
metadata directory.
|
74
|
+
"""
|
75
|
+
dist_dir = metadata_directory.rstrip(os.sep)
|
76
|
+
|
77
|
+
# Build a PathMetadata object, from path to metadata. :wink:
|
78
|
+
base_dir, dist_dir_name = os.path.split(dist_dir)
|
79
|
+
metadata = pkg_resources.PathMetadata(base_dir, dist_dir)
|
80
|
+
|
81
|
+
# Determine the correct Distribution object type.
|
82
|
+
if dist_dir.endswith(".egg-info"):
|
83
|
+
dist_cls = pkg_resources.Distribution
|
84
|
+
dist_name = os.path.splitext(dist_dir_name)[0]
|
85
|
+
else:
|
86
|
+
assert dist_dir.endswith(".dist-info")
|
87
|
+
dist_cls = pkg_resources.DistInfoDistribution
|
88
|
+
dist_name = os.path.splitext(dist_dir_name)[0].split("-")[0]
|
89
|
+
|
90
|
+
return dist_cls(
|
91
|
+
base_dir,
|
92
|
+
project_name=dist_name,
|
93
|
+
metadata=metadata,
|
94
|
+
)
|
95
|
+
|
96
|
+
|
97
|
+
class InstallRequirement(object):
|
98
|
+
"""
|
99
|
+
Represents something that may be installed later on, may have information
|
100
|
+
about where to fetch the relevant requirement and also contains logic for
|
101
|
+
installing the said requirement.
|
102
|
+
"""
|
103
|
+
|
104
|
+
def __init__(
|
105
|
+
self,
|
106
|
+
req, # type: Optional[Requirement]
|
107
|
+
comes_from, # type: Optional[Union[str, InstallRequirement]]
|
108
|
+
editable=False, # type: bool
|
109
|
+
link=None, # type: Optional[Link]
|
110
|
+
markers=None, # type: Optional[Marker]
|
111
|
+
use_pep517=None, # type: Optional[bool]
|
112
|
+
isolated=False, # type: bool
|
113
|
+
install_options=None, # type: Optional[List[str]]
|
114
|
+
global_options=None, # type: Optional[List[str]]
|
115
|
+
hash_options=None, # type: Optional[Dict[str, List[str]]]
|
116
|
+
constraint=False, # type: bool
|
117
|
+
extras=(), # type: Iterable[str]
|
118
|
+
user_supplied=False, # type: bool
|
119
|
+
):
|
120
|
+
# type: (...) -> None
|
121
|
+
assert req is None or isinstance(req, Requirement), req
|
122
|
+
self.req = req
|
123
|
+
self.comes_from = comes_from
|
124
|
+
self.constraint = constraint
|
125
|
+
self.editable = editable
|
126
|
+
self.legacy_install_reason = None # type: Optional[int]
|
127
|
+
|
128
|
+
# source_dir is the local directory where the linked requirement is
|
129
|
+
# located, or unpacked. In case unpacking is needed, creating and
|
130
|
+
# populating source_dir is done by the RequirementPreparer. Note this
|
131
|
+
# is not necessarily the directory where pyproject.toml or setup.py is
|
132
|
+
# located - that one is obtained via unpacked_source_directory.
|
133
|
+
self.source_dir = None # type: Optional[str]
|
134
|
+
if self.editable:
|
135
|
+
assert link
|
136
|
+
if link.is_file:
|
137
|
+
self.source_dir = os.path.normpath(
|
138
|
+
os.path.abspath(link.file_path)
|
139
|
+
)
|
140
|
+
|
141
|
+
if link is None and req and req.url:
|
142
|
+
# PEP 508 URL requirement
|
143
|
+
link = Link(req.url)
|
144
|
+
self.link = self.original_link = link
|
145
|
+
self.original_link_is_in_wheel_cache = False
|
146
|
+
|
147
|
+
# Path to any downloaded or already-existing package.
|
148
|
+
self.local_file_path = None # type: Optional[str]
|
149
|
+
if self.link and self.link.is_file:
|
150
|
+
self.local_file_path = self.link.file_path
|
151
|
+
|
152
|
+
if extras:
|
153
|
+
self.extras = extras
|
154
|
+
elif req:
|
155
|
+
self.extras = {
|
156
|
+
pkg_resources.safe_extra(extra) for extra in req.extras
|
157
|
+
}
|
158
|
+
else:
|
159
|
+
self.extras = set()
|
160
|
+
if markers is None and req:
|
161
|
+
markers = req.marker
|
162
|
+
self.markers = markers
|
163
|
+
|
164
|
+
# This holds the pkg_resources.Distribution object if this requirement
|
165
|
+
# is already available:
|
166
|
+
self.satisfied_by = None # type: Optional[Distribution]
|
167
|
+
# Whether the installation process should try to uninstall an existing
|
168
|
+
# distribution before installing this requirement.
|
169
|
+
self.should_reinstall = False
|
170
|
+
# Temporary build location
|
171
|
+
self._temp_build_dir = None # type: Optional[TempDirectory]
|
172
|
+
# Set to True after successful installation
|
173
|
+
self.install_succeeded = None # type: Optional[bool]
|
174
|
+
# Supplied options
|
175
|
+
self.install_options = install_options if install_options else []
|
176
|
+
self.global_options = global_options if global_options else []
|
177
|
+
self.hash_options = hash_options if hash_options else {}
|
178
|
+
# Set to True after successful preparation of this requirement
|
179
|
+
self.prepared = False
|
180
|
+
# User supplied requirement are explicitly requested for installation
|
181
|
+
# by the user via CLI arguments or requirements files, as opposed to,
|
182
|
+
# e.g. dependencies, extras or constraints.
|
183
|
+
self.user_supplied = user_supplied
|
184
|
+
|
185
|
+
self.isolated = isolated
|
186
|
+
self.build_env = NoOpBuildEnvironment() # type: BuildEnvironment
|
187
|
+
|
188
|
+
# For PEP 517, the directory where we request the project metadata
|
189
|
+
# gets stored. We need this to pass to build_wheel, so the backend
|
190
|
+
# can ensure that the wheel matches the metadata (see the PEP for
|
191
|
+
# details).
|
192
|
+
self.metadata_directory = None # type: Optional[str]
|
193
|
+
|
194
|
+
# The static build requirements (from pyproject.toml)
|
195
|
+
self.pyproject_requires = None # type: Optional[List[str]]
|
196
|
+
|
197
|
+
# Build requirements that we will check are available
|
198
|
+
self.requirements_to_check = [] # type: List[str]
|
199
|
+
|
200
|
+
# The PEP 517 backend we should use to build the project
|
201
|
+
self.pep517_backend = None # type: Optional[Pep517HookCaller]
|
202
|
+
|
203
|
+
# Are we using PEP 517 for this requirement?
|
204
|
+
# After pyproject.toml has been loaded, the only valid values are True
|
205
|
+
# and False. Before loading, None is valid (meaning "use the default").
|
206
|
+
# Setting an explicit value before loading pyproject.toml is supported,
|
207
|
+
# but after loading this flag should be treated as read only.
|
208
|
+
self.use_pep517 = use_pep517
|
209
|
+
|
210
|
+
# This requirement needs more preparation before it can be built
|
211
|
+
self.needs_more_preparation = False
|
212
|
+
|
213
|
+
def __str__(self):
|
214
|
+
# type: () -> str
|
215
|
+
if self.req:
|
216
|
+
s = str(self.req)
|
217
|
+
if self.link:
|
218
|
+
s += ' from {}'.format(redact_auth_from_url(self.link.url))
|
219
|
+
elif self.link:
|
220
|
+
s = redact_auth_from_url(self.link.url)
|
221
|
+
else:
|
222
|
+
s = '<InstallRequirement>'
|
223
|
+
if self.satisfied_by is not None:
|
224
|
+
s += ' in {}'.format(display_path(self.satisfied_by.location))
|
225
|
+
if self.comes_from:
|
226
|
+
if isinstance(self.comes_from, six.string_types):
|
227
|
+
comes_from = self.comes_from # type: Optional[str]
|
228
|
+
else:
|
229
|
+
comes_from = self.comes_from.from_path()
|
230
|
+
if comes_from:
|
231
|
+
s += ' (from {})'.format(comes_from)
|
232
|
+
return s
|
233
|
+
|
234
|
+
def __repr__(self):
|
235
|
+
# type: () -> str
|
236
|
+
return '<{} object: {} editable={!r}>'.format(
|
237
|
+
self.__class__.__name__, str(self), self.editable)
|
238
|
+
|
239
|
+
def format_debug(self):
|
240
|
+
# type: () -> str
|
241
|
+
"""An un-tested helper for getting state, for debugging.
|
242
|
+
"""
|
243
|
+
attributes = vars(self)
|
244
|
+
names = sorted(attributes)
|
245
|
+
|
246
|
+
state = (
|
247
|
+
"{}={!r}".format(attr, attributes[attr]) for attr in sorted(names)
|
248
|
+
)
|
249
|
+
return '<{name} object: {{{state}}}>'.format(
|
250
|
+
name=self.__class__.__name__,
|
251
|
+
state=", ".join(state),
|
252
|
+
)
|
253
|
+
|
254
|
+
# Things that are valid for all kinds of requirements?
|
255
|
+
@property
|
256
|
+
def name(self):
|
257
|
+
# type: () -> Optional[str]
|
258
|
+
if self.req is None:
|
259
|
+
return None
|
260
|
+
return six.ensure_str(pkg_resources.safe_name(self.req.name))
|
261
|
+
|
262
|
+
@property
|
263
|
+
def specifier(self):
|
264
|
+
# type: () -> SpecifierSet
|
265
|
+
return self.req.specifier
|
266
|
+
|
267
|
+
@property
|
268
|
+
def is_pinned(self):
|
269
|
+
# type: () -> bool
|
270
|
+
"""Return whether I am pinned to an exact version.
|
271
|
+
|
272
|
+
For example, some-package==1.2 is pinned; some-package>1.2 is not.
|
273
|
+
"""
|
274
|
+
specifiers = self.specifier
|
275
|
+
return (len(specifiers) == 1 and
|
276
|
+
next(iter(specifiers)).operator in {'==', '==='})
|
277
|
+
|
278
|
+
@property
|
279
|
+
def installed_version(self):
|
280
|
+
# type: () -> Optional[str]
|
281
|
+
return get_installed_version(self.name)
|
282
|
+
|
283
|
+
def match_markers(self, extras_requested=None):
|
284
|
+
# type: (Optional[Iterable[str]]) -> bool
|
285
|
+
if not extras_requested:
|
286
|
+
# Provide an extra to safely evaluate the markers
|
287
|
+
# without matching any extra
|
288
|
+
extras_requested = ('',)
|
289
|
+
if self.markers is not None:
|
290
|
+
return any(
|
291
|
+
self.markers.evaluate({'extra': extra})
|
292
|
+
for extra in extras_requested)
|
293
|
+
else:
|
294
|
+
return True
|
295
|
+
|
296
|
+
@property
|
297
|
+
def has_hash_options(self):
|
298
|
+
# type: () -> bool
|
299
|
+
"""Return whether any known-good hashes are specified as options.
|
300
|
+
|
301
|
+
These activate --require-hashes mode; hashes specified as part of a
|
302
|
+
URL do not.
|
303
|
+
|
304
|
+
"""
|
305
|
+
return bool(self.hash_options)
|
306
|
+
|
307
|
+
def hashes(self, trust_internet=True):
|
308
|
+
# type: (bool) -> Hashes
|
309
|
+
"""Return a hash-comparer that considers my option- and URL-based
|
310
|
+
hashes to be known-good.
|
311
|
+
|
312
|
+
Hashes in URLs--ones embedded in the requirements file, not ones
|
313
|
+
downloaded from an index server--are almost peers with ones from
|
314
|
+
flags. They satisfy --require-hashes (whether it was implicitly or
|
315
|
+
explicitly activated) but do not activate it. md5 and sha224 are not
|
316
|
+
allowed in flags, which should nudge people toward good algos. We
|
317
|
+
always OR all hashes together, even ones from URLs.
|
318
|
+
|
319
|
+
:param trust_internet: Whether to trust URL-based (#md5=...) hashes
|
320
|
+
downloaded from the internet, as by populate_link()
|
321
|
+
|
322
|
+
"""
|
323
|
+
good_hashes = self.hash_options.copy()
|
324
|
+
link = self.link if trust_internet else self.original_link
|
325
|
+
if link and link.hash:
|
326
|
+
good_hashes.setdefault(link.hash_name, []).append(link.hash)
|
327
|
+
return Hashes(good_hashes)
|
328
|
+
|
329
|
+
def from_path(self):
|
330
|
+
# type: () -> Optional[str]
|
331
|
+
"""Format a nice indicator to show where this "comes from"
|
332
|
+
"""
|
333
|
+
if self.req is None:
|
334
|
+
return None
|
335
|
+
s = str(self.req)
|
336
|
+
if self.comes_from:
|
337
|
+
if isinstance(self.comes_from, six.string_types):
|
338
|
+
comes_from = self.comes_from
|
339
|
+
else:
|
340
|
+
comes_from = self.comes_from.from_path()
|
341
|
+
if comes_from:
|
342
|
+
s += '->' + comes_from
|
343
|
+
return s
|
344
|
+
|
345
|
+
def ensure_build_location(self, build_dir, autodelete, parallel_builds):
|
346
|
+
# type: (str, bool, bool) -> str
|
347
|
+
assert build_dir is not None
|
348
|
+
if self._temp_build_dir is not None:
|
349
|
+
assert self._temp_build_dir.path
|
350
|
+
return self._temp_build_dir.path
|
351
|
+
if self.req is None:
|
352
|
+
# Some systems have /tmp as a symlink which confuses custom
|
353
|
+
# builds (such as numpy). Thus, we ensure that the real path
|
354
|
+
# is returned.
|
355
|
+
self._temp_build_dir = TempDirectory(
|
356
|
+
kind=tempdir_kinds.REQ_BUILD, globally_managed=True
|
357
|
+
)
|
358
|
+
|
359
|
+
return self._temp_build_dir.path
|
360
|
+
|
361
|
+
# This is the only remaining place where we manually determine the path
|
362
|
+
# for the temporary directory. It is only needed for editables where
|
363
|
+
# it is the value of the --src option.
|
364
|
+
|
365
|
+
# When parallel builds are enabled, add a UUID to the build directory
|
366
|
+
# name so multiple builds do not interfere with each other.
|
367
|
+
dir_name = canonicalize_name(self.name)
|
368
|
+
if parallel_builds:
|
369
|
+
dir_name = "{}_{}".format(dir_name, uuid.uuid4().hex)
|
370
|
+
|
371
|
+
# FIXME: Is there a better place to create the build_dir? (hg and bzr
|
372
|
+
# need this)
|
373
|
+
if not os.path.exists(build_dir):
|
374
|
+
logger.debug('Creating directory %s', build_dir)
|
375
|
+
os.makedirs(build_dir)
|
376
|
+
actual_build_dir = os.path.join(build_dir, dir_name)
|
377
|
+
# `None` indicates that we respect the globally-configured deletion
|
378
|
+
# settings, which is what we actually want when auto-deleting.
|
379
|
+
delete_arg = None if autodelete else False
|
380
|
+
return TempDirectory(
|
381
|
+
path=actual_build_dir,
|
382
|
+
delete=delete_arg,
|
383
|
+
kind=tempdir_kinds.REQ_BUILD,
|
384
|
+
globally_managed=True,
|
385
|
+
).path
|
386
|
+
|
387
|
+
def _set_requirement(self):
|
388
|
+
# type: () -> None
|
389
|
+
"""Set requirement after generating metadata.
|
390
|
+
"""
|
391
|
+
assert self.req is None
|
392
|
+
assert self.metadata is not None
|
393
|
+
assert self.source_dir is not None
|
394
|
+
|
395
|
+
# Construct a Requirement object from the generated metadata
|
396
|
+
if isinstance(parse_version(self.metadata["Version"]), Version):
|
397
|
+
op = "=="
|
398
|
+
else:
|
399
|
+
op = "==="
|
400
|
+
|
401
|
+
self.req = Requirement(
|
402
|
+
"".join([
|
403
|
+
self.metadata["Name"],
|
404
|
+
op,
|
405
|
+
self.metadata["Version"],
|
406
|
+
])
|
407
|
+
)
|
408
|
+
|
409
|
+
def warn_on_mismatching_name(self):
|
410
|
+
# type: () -> None
|
411
|
+
metadata_name = canonicalize_name(self.metadata["Name"])
|
412
|
+
if canonicalize_name(self.req.name) == metadata_name:
|
413
|
+
# Everything is fine.
|
414
|
+
return
|
415
|
+
|
416
|
+
# If we're here, there's a mismatch. Log a warning about it.
|
417
|
+
logger.warning(
|
418
|
+
'Generating metadata for package %s '
|
419
|
+
'produced metadata for project name %s. Fix your '
|
420
|
+
'#egg=%s fragments.',
|
421
|
+
self.name, metadata_name, self.name
|
422
|
+
)
|
423
|
+
self.req = Requirement(metadata_name)
|
424
|
+
|
425
|
+
def check_if_exists(self, use_user_site):
|
426
|
+
# type: (bool) -> None
|
427
|
+
"""Find an installed distribution that satisfies or conflicts
|
428
|
+
with this requirement, and set self.satisfied_by or
|
429
|
+
self.should_reinstall appropriately.
|
430
|
+
"""
|
431
|
+
if self.req is None:
|
432
|
+
return
|
433
|
+
existing_dist = get_distribution(self.req.name)
|
434
|
+
if not existing_dist:
|
435
|
+
return
|
436
|
+
|
437
|
+
existing_version = existing_dist.parsed_version
|
438
|
+
if not self.req.specifier.contains(existing_version, prereleases=True):
|
439
|
+
self.satisfied_by = None
|
440
|
+
if use_user_site:
|
441
|
+
if dist_in_usersite(existing_dist):
|
442
|
+
self.should_reinstall = True
|
443
|
+
elif (running_under_virtualenv() and
|
444
|
+
dist_in_site_packages(existing_dist)):
|
445
|
+
raise InstallationError(
|
446
|
+
"Will not install to the user site because it will "
|
447
|
+
"lack sys.path precedence to {} in {}".format(
|
448
|
+
existing_dist.project_name, existing_dist.location)
|
449
|
+
)
|
450
|
+
else:
|
451
|
+
self.should_reinstall = True
|
452
|
+
else:
|
453
|
+
if self.editable:
|
454
|
+
self.should_reinstall = True
|
455
|
+
# when installing editables, nothing pre-existing should ever
|
456
|
+
# satisfy
|
457
|
+
self.satisfied_by = None
|
458
|
+
else:
|
459
|
+
self.satisfied_by = existing_dist
|
460
|
+
|
461
|
+
# Things valid for wheels
|
462
|
+
@property
|
463
|
+
def is_wheel(self):
|
464
|
+
# type: () -> bool
|
465
|
+
if not self.link:
|
466
|
+
return False
|
467
|
+
return self.link.is_wheel
|
468
|
+
|
469
|
+
# Things valid for sdists
|
470
|
+
@property
|
471
|
+
def unpacked_source_directory(self):
|
472
|
+
# type: () -> str
|
473
|
+
return os.path.join(
|
474
|
+
self.source_dir,
|
475
|
+
self.link and self.link.subdirectory_fragment or '')
|
476
|
+
|
477
|
+
@property
|
478
|
+
def setup_py_path(self):
|
479
|
+
# type: () -> str
|
480
|
+
assert self.source_dir, "No source dir for {}".format(self)
|
481
|
+
setup_py = os.path.join(self.unpacked_source_directory, 'setup.py')
|
482
|
+
|
483
|
+
# Python2 __file__ should not be unicode
|
484
|
+
if six.PY2 and isinstance(setup_py, six.text_type):
|
485
|
+
setup_py = setup_py.encode(sys.getfilesystemencoding())
|
486
|
+
|
487
|
+
return setup_py
|
488
|
+
|
489
|
+
@property
|
490
|
+
def pyproject_toml_path(self):
|
491
|
+
# type: () -> str
|
492
|
+
assert self.source_dir, "No source dir for {}".format(self)
|
493
|
+
return make_pyproject_path(self.unpacked_source_directory)
|
494
|
+
|
495
|
+
def load_pyproject_toml(self):
|
496
|
+
# type: () -> None
|
497
|
+
"""Load the pyproject.toml file.
|
498
|
+
|
499
|
+
After calling this routine, all of the attributes related to PEP 517
|
500
|
+
processing for this requirement have been set. In particular, the
|
501
|
+
use_pep517 attribute can be used to determine whether we should
|
502
|
+
follow the PEP 517 or legacy (setup.py) code path.
|
503
|
+
"""
|
504
|
+
pyproject_toml_data = load_pyproject_toml(
|
505
|
+
self.use_pep517,
|
506
|
+
self.pyproject_toml_path,
|
507
|
+
self.setup_py_path,
|
508
|
+
str(self)
|
509
|
+
)
|
510
|
+
|
511
|
+
if pyproject_toml_data is None:
|
512
|
+
self.use_pep517 = False
|
513
|
+
return
|
514
|
+
|
515
|
+
self.use_pep517 = True
|
516
|
+
requires, backend, check, backend_path = pyproject_toml_data
|
517
|
+
self.requirements_to_check = check
|
518
|
+
self.pyproject_requires = requires
|
519
|
+
self.pep517_backend = Pep517HookCaller(
|
520
|
+
self.unpacked_source_directory, backend, backend_path=backend_path,
|
521
|
+
)
|
522
|
+
|
523
|
+
def _generate_metadata(self):
|
524
|
+
# type: () -> str
|
525
|
+
"""Invokes metadata generator functions, with the required arguments.
|
526
|
+
"""
|
527
|
+
if not self.use_pep517:
|
528
|
+
assert self.unpacked_source_directory
|
529
|
+
|
530
|
+
return generate_metadata_legacy(
|
531
|
+
build_env=self.build_env,
|
532
|
+
setup_py_path=self.setup_py_path,
|
533
|
+
source_dir=self.unpacked_source_directory,
|
534
|
+
isolated=self.isolated,
|
535
|
+
details=self.name or "from {}".format(self.link)
|
536
|
+
)
|
537
|
+
|
538
|
+
assert self.pep517_backend is not None
|
539
|
+
|
540
|
+
return generate_metadata(
|
541
|
+
build_env=self.build_env,
|
542
|
+
backend=self.pep517_backend,
|
543
|
+
)
|
544
|
+
|
545
|
+
def prepare_metadata(self):
|
546
|
+
# type: () -> None
|
547
|
+
"""Ensure that project metadata is available.
|
548
|
+
|
549
|
+
Under PEP 517, call the backend hook to prepare the metadata.
|
550
|
+
Under legacy processing, call setup.py egg-info.
|
551
|
+
"""
|
552
|
+
assert self.source_dir
|
553
|
+
|
554
|
+
with indent_log():
|
555
|
+
self.metadata_directory = self._generate_metadata()
|
556
|
+
|
557
|
+
# Act on the newly generated metadata, based on the name and version.
|
558
|
+
if not self.name:
|
559
|
+
self._set_requirement()
|
560
|
+
else:
|
561
|
+
self.warn_on_mismatching_name()
|
562
|
+
|
563
|
+
self.assert_source_matches_version()
|
564
|
+
|
565
|
+
@property
|
566
|
+
def metadata(self):
|
567
|
+
# type: () -> Any
|
568
|
+
if not hasattr(self, '_metadata'):
|
569
|
+
self._metadata = get_metadata(self.get_dist())
|
570
|
+
|
571
|
+
return self._metadata
|
572
|
+
|
573
|
+
def get_dist(self):
|
574
|
+
# type: () -> Distribution
|
575
|
+
return _get_dist(self.metadata_directory)
|
576
|
+
|
577
|
+
def assert_source_matches_version(self):
|
578
|
+
# type: () -> None
|
579
|
+
assert self.source_dir
|
580
|
+
version = self.metadata['version']
|
581
|
+
if self.req.specifier and version not in self.req.specifier:
|
582
|
+
logger.warning(
|
583
|
+
'Requested %s, but installing version %s',
|
584
|
+
self,
|
585
|
+
version,
|
586
|
+
)
|
587
|
+
else:
|
588
|
+
logger.debug(
|
589
|
+
'Source in %s has version %s, which satisfies requirement %s',
|
590
|
+
display_path(self.source_dir),
|
591
|
+
version,
|
592
|
+
self,
|
593
|
+
)
|
594
|
+
|
595
|
+
# For both source distributions and editables
|
596
|
+
def ensure_has_source_dir(
|
597
|
+
self,
|
598
|
+
parent_dir,
|
599
|
+
autodelete=False,
|
600
|
+
parallel_builds=False,
|
601
|
+
):
|
602
|
+
# type: (str, bool, bool) -> None
|
603
|
+
"""Ensure that a source_dir is set.
|
604
|
+
|
605
|
+
This will create a temporary build dir if the name of the requirement
|
606
|
+
isn't known yet.
|
607
|
+
|
608
|
+
:param parent_dir: The ideal pip parent_dir for the source_dir.
|
609
|
+
Generally src_dir for editables and build_dir for sdists.
|
610
|
+
:return: self.source_dir
|
611
|
+
"""
|
612
|
+
if self.source_dir is None:
|
613
|
+
self.source_dir = self.ensure_build_location(
|
614
|
+
parent_dir,
|
615
|
+
autodelete=autodelete,
|
616
|
+
parallel_builds=parallel_builds,
|
617
|
+
)
|
618
|
+
|
619
|
+
# For editable installations
|
620
|
+
def update_editable(self, obtain=True):
|
621
|
+
# type: (bool) -> None
|
622
|
+
if not self.link:
|
623
|
+
logger.debug(
|
624
|
+
"Cannot update repository at %s; repository location is "
|
625
|
+
"unknown",
|
626
|
+
self.source_dir,
|
627
|
+
)
|
628
|
+
return
|
629
|
+
assert self.editable
|
630
|
+
assert self.source_dir
|
631
|
+
if self.link.scheme == 'file':
|
632
|
+
# Static paths don't get updated
|
633
|
+
return
|
634
|
+
assert '+' in self.link.url, \
|
635
|
+
"bad url: {self.link.url!r}".format(**locals())
|
636
|
+
vc_type, url = self.link.url.split('+', 1)
|
637
|
+
vcs_backend = vcs.get_backend(vc_type)
|
638
|
+
if vcs_backend:
|
639
|
+
if not self.link.is_vcs:
|
640
|
+
reason = (
|
641
|
+
"This form of VCS requirement is being deprecated: {}."
|
642
|
+
).format(
|
643
|
+
self.link.url
|
644
|
+
)
|
645
|
+
replacement = None
|
646
|
+
if self.link.url.startswith("git+git@"):
|
647
|
+
replacement = (
|
648
|
+
"git+https://git@example.com/..., "
|
649
|
+
"git+ssh://git@example.com/..., "
|
650
|
+
"or the insecure git+git://git@example.com/..."
|
651
|
+
)
|
652
|
+
deprecated(reason, replacement, gone_in="21.0", issue=7554)
|
653
|
+
hidden_url = hide_url(self.link.url)
|
654
|
+
if obtain:
|
655
|
+
vcs_backend.obtain(self.source_dir, url=hidden_url)
|
656
|
+
else:
|
657
|
+
vcs_backend.export(self.source_dir, url=hidden_url)
|
658
|
+
else:
|
659
|
+
assert 0, (
|
660
|
+
'Unexpected version control type (in {}): {}'.format(
|
661
|
+
self.link, vc_type))
|
662
|
+
|
663
|
+
# Top-level Actions
|
664
|
+
def uninstall(self, auto_confirm=False, verbose=False):
|
665
|
+
# type: (bool, bool) -> Optional[UninstallPathSet]
|
666
|
+
"""
|
667
|
+
Uninstall the distribution currently satisfying this requirement.
|
668
|
+
|
669
|
+
Prompts before removing or modifying files unless
|
670
|
+
``auto_confirm`` is True.
|
671
|
+
|
672
|
+
Refuses to delete or modify files outside of ``sys.prefix`` -
|
673
|
+
thus uninstallation within a virtual environment can only
|
674
|
+
modify that virtual environment, even if the virtualenv is
|
675
|
+
linked to global site-packages.
|
676
|
+
|
677
|
+
"""
|
678
|
+
assert self.req
|
679
|
+
dist = get_distribution(self.req.name)
|
680
|
+
if not dist:
|
681
|
+
logger.warning("Skipping %s as it is not installed.", self.name)
|
682
|
+
return None
|
683
|
+
logger.info('Found existing installation: %s', dist)
|
684
|
+
|
685
|
+
uninstalled_pathset = UninstallPathSet.from_dist(dist)
|
686
|
+
uninstalled_pathset.remove(auto_confirm, verbose)
|
687
|
+
return uninstalled_pathset
|
688
|
+
|
689
|
+
def _get_archive_name(self, path, parentdir, rootdir):
|
690
|
+
# type: (str, str, str) -> str
|
691
|
+
|
692
|
+
def _clean_zip_name(name, prefix):
|
693
|
+
# type: (str, str) -> str
|
694
|
+
assert name.startswith(prefix + os.path.sep), (
|
695
|
+
"name {name!r} doesn't start with prefix {prefix!r}"
|
696
|
+
.format(**locals())
|
697
|
+
)
|
698
|
+
name = name[len(prefix) + 1:]
|
699
|
+
name = name.replace(os.path.sep, '/')
|
700
|
+
return name
|
701
|
+
|
702
|
+
path = os.path.join(parentdir, path)
|
703
|
+
name = _clean_zip_name(path, rootdir)
|
704
|
+
return self.name + '/' + name
|
705
|
+
|
706
|
+
def archive(self, build_dir):
|
707
|
+
# type: (Optional[str]) -> None
|
708
|
+
"""Saves archive to provided build_dir.
|
709
|
+
|
710
|
+
Used for saving downloaded VCS requirements as part of `pip download`.
|
711
|
+
"""
|
712
|
+
assert self.source_dir
|
713
|
+
if build_dir is None:
|
714
|
+
return
|
715
|
+
|
716
|
+
create_archive = True
|
717
|
+
archive_name = '{}-{}.zip'.format(self.name, self.metadata["version"])
|
718
|
+
archive_path = os.path.join(build_dir, archive_name)
|
719
|
+
|
720
|
+
if os.path.exists(archive_path):
|
721
|
+
response = ask_path_exists(
|
722
|
+
'The file {} exists. (i)gnore, (w)ipe, '
|
723
|
+
'(b)ackup, (a)bort '.format(
|
724
|
+
display_path(archive_path)),
|
725
|
+
('i', 'w', 'b', 'a'))
|
726
|
+
if response == 'i':
|
727
|
+
create_archive = False
|
728
|
+
elif response == 'w':
|
729
|
+
logger.warning('Deleting %s', display_path(archive_path))
|
730
|
+
os.remove(archive_path)
|
731
|
+
elif response == 'b':
|
732
|
+
dest_file = backup_dir(archive_path)
|
733
|
+
logger.warning(
|
734
|
+
'Backing up %s to %s',
|
735
|
+
display_path(archive_path),
|
736
|
+
display_path(dest_file),
|
737
|
+
)
|
738
|
+
shutil.move(archive_path, dest_file)
|
739
|
+
elif response == 'a':
|
740
|
+
sys.exit(-1)
|
741
|
+
|
742
|
+
if not create_archive:
|
743
|
+
return
|
744
|
+
|
745
|
+
zip_output = zipfile.ZipFile(
|
746
|
+
archive_path, 'w', zipfile.ZIP_DEFLATED, allowZip64=True,
|
747
|
+
)
|
748
|
+
with zip_output:
|
749
|
+
dir = os.path.normcase(
|
750
|
+
os.path.abspath(self.unpacked_source_directory)
|
751
|
+
)
|
752
|
+
for dirpath, dirnames, filenames in os.walk(dir):
|
753
|
+
for dirname in dirnames:
|
754
|
+
dir_arcname = self._get_archive_name(
|
755
|
+
dirname, parentdir=dirpath, rootdir=dir,
|
756
|
+
)
|
757
|
+
zipdir = zipfile.ZipInfo(dir_arcname + '/')
|
758
|
+
zipdir.external_attr = 0x1ED << 16 # 0o755
|
759
|
+
zip_output.writestr(zipdir, '')
|
760
|
+
for filename in filenames:
|
761
|
+
file_arcname = self._get_archive_name(
|
762
|
+
filename, parentdir=dirpath, rootdir=dir,
|
763
|
+
)
|
764
|
+
filename = os.path.join(dirpath, filename)
|
765
|
+
zip_output.write(filename, file_arcname)
|
766
|
+
|
767
|
+
logger.info('Saved %s', display_path(archive_path))
|
768
|
+
|
769
|
+
def install(
|
770
|
+
self,
|
771
|
+
install_options, # type: List[str]
|
772
|
+
global_options=None, # type: Optional[Sequence[str]]
|
773
|
+
root=None, # type: Optional[str]
|
774
|
+
home=None, # type: Optional[str]
|
775
|
+
prefix=None, # type: Optional[str]
|
776
|
+
warn_script_location=True, # type: bool
|
777
|
+
use_user_site=False, # type: bool
|
778
|
+
pycompile=True # type: bool
|
779
|
+
):
|
780
|
+
# type: (...) -> None
|
781
|
+
scheme = get_scheme(
|
782
|
+
self.name,
|
783
|
+
user=use_user_site,
|
784
|
+
home=home,
|
785
|
+
root=root,
|
786
|
+
isolated=self.isolated,
|
787
|
+
prefix=prefix,
|
788
|
+
)
|
789
|
+
|
790
|
+
global_options = global_options if global_options is not None else []
|
791
|
+
if self.editable:
|
792
|
+
install_editable_legacy(
|
793
|
+
install_options,
|
794
|
+
global_options,
|
795
|
+
prefix=prefix,
|
796
|
+
home=home,
|
797
|
+
use_user_site=use_user_site,
|
798
|
+
name=self.name,
|
799
|
+
setup_py_path=self.setup_py_path,
|
800
|
+
isolated=self.isolated,
|
801
|
+
build_env=self.build_env,
|
802
|
+
unpacked_source_directory=self.unpacked_source_directory,
|
803
|
+
)
|
804
|
+
self.install_succeeded = True
|
805
|
+
return
|
806
|
+
|
807
|
+
if self.is_wheel:
|
808
|
+
assert self.local_file_path
|
809
|
+
direct_url = None
|
810
|
+
if self.original_link:
|
811
|
+
direct_url = direct_url_from_link(
|
812
|
+
self.original_link,
|
813
|
+
self.source_dir,
|
814
|
+
self.original_link_is_in_wheel_cache,
|
815
|
+
)
|
816
|
+
install_wheel(
|
817
|
+
self.name,
|
818
|
+
self.local_file_path,
|
819
|
+
scheme=scheme,
|
820
|
+
req_description=str(self.req),
|
821
|
+
pycompile=pycompile,
|
822
|
+
warn_script_location=warn_script_location,
|
823
|
+
direct_url=direct_url,
|
824
|
+
requested=self.user_supplied,
|
825
|
+
)
|
826
|
+
self.install_succeeded = True
|
827
|
+
return
|
828
|
+
|
829
|
+
# TODO: Why don't we do this for editable installs?
|
830
|
+
|
831
|
+
# Extend the list of global and install options passed on to
|
832
|
+
# the setup.py call with the ones from the requirements file.
|
833
|
+
# Options specified in requirements file override those
|
834
|
+
# specified on the command line, since the last option given
|
835
|
+
# to setup.py is the one that is used.
|
836
|
+
global_options = list(global_options) + self.global_options
|
837
|
+
install_options = list(install_options) + self.install_options
|
838
|
+
|
839
|
+
try:
|
840
|
+
success = install_legacy(
|
841
|
+
install_options=install_options,
|
842
|
+
global_options=global_options,
|
843
|
+
root=root,
|
844
|
+
home=home,
|
845
|
+
prefix=prefix,
|
846
|
+
use_user_site=use_user_site,
|
847
|
+
pycompile=pycompile,
|
848
|
+
scheme=scheme,
|
849
|
+
setup_py_path=self.setup_py_path,
|
850
|
+
isolated=self.isolated,
|
851
|
+
req_name=self.name,
|
852
|
+
build_env=self.build_env,
|
853
|
+
unpacked_source_directory=self.unpacked_source_directory,
|
854
|
+
req_description=str(self.req),
|
855
|
+
)
|
856
|
+
except LegacyInstallFailure as exc:
|
857
|
+
self.install_succeeded = False
|
858
|
+
six.reraise(*exc.parent)
|
859
|
+
except Exception:
|
860
|
+
self.install_succeeded = True
|
861
|
+
raise
|
862
|
+
|
863
|
+
self.install_succeeded = success
|
864
|
+
|
865
|
+
if success and self.legacy_install_reason == 8368:
|
866
|
+
deprecated(
|
867
|
+
reason=(
|
868
|
+
"{} was installed using the legacy 'setup.py install' "
|
869
|
+
"method, because a wheel could not be built for it.".
|
870
|
+
format(self.name)
|
871
|
+
),
|
872
|
+
replacement="to fix the wheel build issue reported above",
|
873
|
+
gone_in="21.0",
|
874
|
+
issue=8368,
|
875
|
+
)
|
876
|
+
|
877
|
+
|
878
|
+
def check_invalid_constraint_type(req):
|
879
|
+
# type: (InstallRequirement) -> str
|
880
|
+
|
881
|
+
# Check for unsupported forms
|
882
|
+
problem = ""
|
883
|
+
if not req.name:
|
884
|
+
problem = "Unnamed requirements are not allowed as constraints"
|
885
|
+
elif req.link:
|
886
|
+
problem = "Links are not allowed as constraints"
|
887
|
+
elif req.extras:
|
888
|
+
problem = "Constraints cannot have extras"
|
889
|
+
|
890
|
+
if problem:
|
891
|
+
deprecated(
|
892
|
+
reason=(
|
893
|
+
"Constraints are only allowed to take the form of a package "
|
894
|
+
"name and a version specifier. Other forms were originally "
|
895
|
+
"permitted as an accident of the implementation, but were "
|
896
|
+
"undocumented. The new implementation of the resolver no "
|
897
|
+
"longer supports these forms."
|
898
|
+
),
|
899
|
+
replacement=(
|
900
|
+
"replacing the constraint with a requirement."
|
901
|
+
),
|
902
|
+
# No plan yet for when the new resolver becomes default
|
903
|
+
gone_in=None,
|
904
|
+
issue=8210
|
905
|
+
)
|
906
|
+
|
907
|
+
return problem
|