Mercurial > repos > shellac > sam_consensus_v3
comparison 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 |
comparison
equal
deleted
inserted
replaced
-1:000000000000 | 0:4f3585e2f14b |
---|---|
1 from __future__ import absolute_import, unicode_literals | |
2 | |
3 from virtualenv.seed.wheels.util import Wheel | |
4 from virtualenv.util.path import Path | |
5 | |
6 BUNDLE_FOLDER = Path(__file__).absolute().parent | |
7 BUNDLE_SUPPORT = { | |
8 "3.10": { | |
9 "pip": "pip-21.0.1-py3-none-any.whl", | |
10 "setuptools": "setuptools-54.1.2-py3-none-any.whl", | |
11 "wheel": "wheel-0.36.2-py2.py3-none-any.whl", | |
12 }, | |
13 "3.9": { | |
14 "pip": "pip-21.0.1-py3-none-any.whl", | |
15 "setuptools": "setuptools-54.1.2-py3-none-any.whl", | |
16 "wheel": "wheel-0.36.2-py2.py3-none-any.whl", | |
17 }, | |
18 "3.8": { | |
19 "pip": "pip-21.0.1-py3-none-any.whl", | |
20 "setuptools": "setuptools-54.1.2-py3-none-any.whl", | |
21 "wheel": "wheel-0.36.2-py2.py3-none-any.whl", | |
22 }, | |
23 "3.7": { | |
24 "pip": "pip-21.0.1-py3-none-any.whl", | |
25 "setuptools": "setuptools-54.1.2-py3-none-any.whl", | |
26 "wheel": "wheel-0.36.2-py2.py3-none-any.whl", | |
27 }, | |
28 "3.6": { | |
29 "pip": "pip-21.0.1-py3-none-any.whl", | |
30 "setuptools": "setuptools-54.1.2-py3-none-any.whl", | |
31 "wheel": "wheel-0.36.2-py2.py3-none-any.whl", | |
32 }, | |
33 "3.5": { | |
34 "pip": "pip-20.3.4-py2.py3-none-any.whl", | |
35 "setuptools": "setuptools-50.3.2-py3-none-any.whl", | |
36 "wheel": "wheel-0.36.2-py2.py3-none-any.whl", | |
37 }, | |
38 "3.4": { | |
39 "pip": "pip-19.1.1-py2.py3-none-any.whl", | |
40 "setuptools": "setuptools-43.0.0-py2.py3-none-any.whl", | |
41 "wheel": "wheel-0.33.6-py2.py3-none-any.whl", | |
42 }, | |
43 "2.7": { | |
44 "pip": "pip-20.3.4-py2.py3-none-any.whl", | |
45 "setuptools": "setuptools-44.1.1-py2.py3-none-any.whl", | |
46 "wheel": "wheel-0.36.2-py2.py3-none-any.whl", | |
47 }, | |
48 } | |
49 MAX = "3.10" | |
50 | |
51 | |
52 def get_embed_wheel(distribution, for_py_version): | |
53 path = BUNDLE_FOLDER / (BUNDLE_SUPPORT.get(for_py_version, {}) or BUNDLE_SUPPORT[MAX]).get(distribution) | |
54 return Wheel.from_path(path) | |
55 | |
56 | |
57 __all__ = ( | |
58 "get_embed_wheel", | |
59 "BUNDLE_SUPPORT", | |
60 "MAX", | |
61 "BUNDLE_FOLDER", | |
62 ) |