Mercurial > repos > shellac > sam_consensus_v3
diff env/lib/python3.9/site-packages/virtualenv/seed/wheels/embed/__init__.py @ 0:4f3585e2f14b draft default tip
"planemo upload commit 60cee0fc7c0cda8592644e1aad72851dec82c959"
author | shellac |
---|---|
date | Mon, 22 Mar 2021 18:12:50 +0000 |
parents | |
children |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/env/lib/python3.9/site-packages/virtualenv/seed/wheels/embed/__init__.py Mon Mar 22 18:12:50 2021 +0000 @@ -0,0 +1,62 @@ +from __future__ import absolute_import, unicode_literals + +from virtualenv.seed.wheels.util import Wheel +from virtualenv.util.path import Path + +BUNDLE_FOLDER = Path(__file__).absolute().parent +BUNDLE_SUPPORT = { + "3.10": { + "pip": "pip-21.0.1-py3-none-any.whl", + "setuptools": "setuptools-54.1.2-py3-none-any.whl", + "wheel": "wheel-0.36.2-py2.py3-none-any.whl", + }, + "3.9": { + "pip": "pip-21.0.1-py3-none-any.whl", + "setuptools": "setuptools-54.1.2-py3-none-any.whl", + "wheel": "wheel-0.36.2-py2.py3-none-any.whl", + }, + "3.8": { + "pip": "pip-21.0.1-py3-none-any.whl", + "setuptools": "setuptools-54.1.2-py3-none-any.whl", + "wheel": "wheel-0.36.2-py2.py3-none-any.whl", + }, + "3.7": { + "pip": "pip-21.0.1-py3-none-any.whl", + "setuptools": "setuptools-54.1.2-py3-none-any.whl", + "wheel": "wheel-0.36.2-py2.py3-none-any.whl", + }, + "3.6": { + "pip": "pip-21.0.1-py3-none-any.whl", + "setuptools": "setuptools-54.1.2-py3-none-any.whl", + "wheel": "wheel-0.36.2-py2.py3-none-any.whl", + }, + "3.5": { + "pip": "pip-20.3.4-py2.py3-none-any.whl", + "setuptools": "setuptools-50.3.2-py3-none-any.whl", + "wheel": "wheel-0.36.2-py2.py3-none-any.whl", + }, + "3.4": { + "pip": "pip-19.1.1-py2.py3-none-any.whl", + "setuptools": "setuptools-43.0.0-py2.py3-none-any.whl", + "wheel": "wheel-0.33.6-py2.py3-none-any.whl", + }, + "2.7": { + "pip": "pip-20.3.4-py2.py3-none-any.whl", + "setuptools": "setuptools-44.1.1-py2.py3-none-any.whl", + "wheel": "wheel-0.36.2-py2.py3-none-any.whl", + }, +} +MAX = "3.10" + + +def get_embed_wheel(distribution, for_py_version): + path = BUNDLE_FOLDER / (BUNDLE_SUPPORT.get(for_py_version, {}) or BUNDLE_SUPPORT[MAX]).get(distribution) + return Wheel.from_path(path) + + +__all__ = ( + "get_embed_wheel", + "BUNDLE_SUPPORT", + "MAX", + "BUNDLE_FOLDER", +)