codekingpro commited on
Commit
a865e05
·
verified ·
1 Parent(s): 189339c

Add files using upload-large-folder tool

Browse files
This view is limited to 50 files because it contains too many changes.   See raw diff
Files changed (50) hide show
  1. python/Lib/site-packages/_distutils_hack/__init__.py +239 -0
  2. python/Lib/site-packages/_distutils_hack/__pycache__/__init__.cpython-313.pyc +0 -0
  3. python/Lib/site-packages/_distutils_hack/__pycache__/override.cpython-313.pyc +0 -0
  4. python/Lib/site-packages/_distutils_hack/override.py +1 -0
  5. python/Lib/site-packages/setuptools-82.0.1.dist-info/INSTALLER +1 -0
  6. python/Lib/site-packages/setuptools-82.0.1.dist-info/METADATA +140 -0
  7. python/Lib/site-packages/setuptools-82.0.1.dist-info/RECORD +760 -0
  8. python/Lib/site-packages/setuptools-82.0.1.dist-info/REQUESTED +0 -0
  9. python/Lib/site-packages/setuptools-82.0.1.dist-info/WHEEL +5 -0
  10. python/Lib/site-packages/setuptools-82.0.1.dist-info/entry_points.txt +51 -0
  11. python/Lib/site-packages/setuptools-82.0.1.dist-info/licenses/LICENSE +17 -0
  12. python/Lib/site-packages/setuptools-82.0.1.dist-info/top_level.txt +2 -0
  13. python/Lib/site-packages/setuptools/__init__.py +256 -0
  14. python/Lib/site-packages/setuptools/_core_metadata.py +337 -0
  15. python/Lib/site-packages/setuptools/_discovery.py +33 -0
  16. python/Lib/site-packages/setuptools/_entry_points.py +94 -0
  17. python/Lib/site-packages/setuptools/_imp.py +87 -0
  18. python/Lib/site-packages/setuptools/_importlib.py +9 -0
  19. python/Lib/site-packages/setuptools/_itertools.py +23 -0
  20. python/Lib/site-packages/setuptools/_normalization.py +180 -0
  21. python/Lib/site-packages/setuptools/_path.py +93 -0
  22. python/Lib/site-packages/setuptools/_reqs.py +42 -0
  23. python/Lib/site-packages/setuptools/_scripts.py +361 -0
  24. python/Lib/site-packages/setuptools/_shutil.py +59 -0
  25. python/Lib/site-packages/setuptools/_static.py +188 -0
  26. python/Lib/site-packages/setuptools/command/alias.py +77 -0
  27. python/Lib/site-packages/setuptools/command/bdist_egg.py +471 -0
  28. python/Lib/site-packages/setuptools/modified.py +18 -0
  29. python/Lib/site-packages/setuptools/monkey.py +126 -0
  30. python/Lib/site-packages/setuptools/msvc.py +1557 -0
  31. python/Lib/site-packages/setuptools/namespaces.py +101 -0
  32. python/Lib/site-packages/setuptools/script (dev).tmpl +6 -0
  33. python/Lib/site-packages/setuptools/script.tmpl +3 -0
  34. python/Lib/site-packages/setuptools/unicode_utils.py +102 -0
  35. python/Lib/site-packages/setuptools/version.py +6 -0
  36. python/Lib/site-packages/setuptools/warnings.py +110 -0
  37. python/Lib/site-packages/setuptools/wheel.py +262 -0
  38. python/Lib/site-packages/setuptools/windows_support.py +30 -0
  39. python/Lib/site-packages/wheel-0.47.0.dist-info/INSTALLER +1 -0
  40. python/Lib/site-packages/wheel-0.47.0.dist-info/METADATA +66 -0
  41. python/Lib/site-packages/wheel-0.47.0.dist-info/RECORD +38 -0
  42. python/Lib/site-packages/wheel-0.47.0.dist-info/REQUESTED +0 -0
  43. python/Lib/site-packages/wheel-0.47.0.dist-info/WHEEL +4 -0
  44. python/Lib/site-packages/wheel-0.47.0.dist-info/entry_points.txt +6 -0
  45. python/Lib/site-packages/wheel-0.47.0.dist-info/licenses/LICENSE.txt +21 -0
  46. python/Lib/site-packages/wheel/__init__.py +3 -0
  47. python/Lib/site-packages/wheel/__main__.py +25 -0
  48. python/Lib/site-packages/wheel/__pycache__/__init__.cpython-313.pyc +0 -0
  49. python/Lib/site-packages/wheel/__pycache__/__main__.cpython-313.pyc +0 -0
  50. python/Lib/site-packages/wheel/__pycache__/_bdist_wheel.cpython-313.pyc +0 -0
python/Lib/site-packages/_distutils_hack/__init__.py ADDED
@@ -0,0 +1,239 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # don't import any costly modules
2
+ import os
3
+ import sys
4
+
5
+ report_url = (
6
+ "https://github.com/pypa/setuptools/issues/new?template=distutils-deprecation.yml"
7
+ )
8
+
9
+
10
+ def warn_distutils_present():
11
+ if 'distutils' not in sys.modules:
12
+ return
13
+ import warnings
14
+
15
+ warnings.warn(
16
+ "Distutils was imported before Setuptools, but importing Setuptools "
17
+ "also replaces the `distutils` module in `sys.modules`. This may lead "
18
+ "to undesirable behaviors or errors. To avoid these issues, avoid "
19
+ "using distutils directly, ensure that setuptools is installed in the "
20
+ "traditional way (e.g. not an editable install), and/or make sure "
21
+ "that setuptools is always imported before distutils."
22
+ )
23
+
24
+
25
+ def clear_distutils():
26
+ if 'distutils' not in sys.modules:
27
+ return
28
+ import warnings
29
+
30
+ warnings.warn(
31
+ "Setuptools is replacing distutils. Support for replacing "
32
+ "an already imported distutils is deprecated. In the future, "
33
+ "this condition will fail. "
34
+ f"Register concerns at {report_url}"
35
+ )
36
+ mods = [
37
+ name
38
+ for name in sys.modules
39
+ if name == "distutils" or name.startswith("distutils.")
40
+ ]
41
+ for name in mods:
42
+ del sys.modules[name]
43
+
44
+
45
+ def enabled():
46
+ """
47
+ Allow selection of distutils by environment variable.
48
+ """
49
+ which = os.environ.get('SETUPTOOLS_USE_DISTUTILS', 'local')
50
+ if which == 'stdlib':
51
+ import warnings
52
+
53
+ warnings.warn(
54
+ "Reliance on distutils from stdlib is deprecated. Users "
55
+ "must rely on setuptools to provide the distutils module. "
56
+ "Avoid importing distutils or import setuptools first, "
57
+ "and avoid setting SETUPTOOLS_USE_DISTUTILS=stdlib. "
58
+ f"Register concerns at {report_url}"
59
+ )
60
+ return which == 'local'
61
+
62
+
63
+ def ensure_local_distutils():
64
+ import importlib
65
+
66
+ clear_distutils()
67
+
68
+ # With the DistutilsMetaFinder in place,
69
+ # perform an import to cause distutils to be
70
+ # loaded from setuptools._distutils. Ref #2906.
71
+ with shim():
72
+ importlib.import_module('distutils')
73
+
74
+ # check that submodules load as expected
75
+ core = importlib.import_module('distutils.core')
76
+ assert '_distutils' in core.__file__, core.__file__
77
+ assert 'setuptools._distutils.log' not in sys.modules
78
+
79
+
80
+ def do_override():
81
+ """
82
+ Ensure that the local copy of distutils is preferred over stdlib.
83
+
84
+ See https://github.com/pypa/setuptools/issues/417#issuecomment-392298401
85
+ for more motivation.
86
+ """
87
+ if enabled():
88
+ warn_distutils_present()
89
+ ensure_local_distutils()
90
+
91
+
92
+ class _TrivialRe:
93
+ def __init__(self, *patterns) -> None:
94
+ self._patterns = patterns
95
+
96
+ def match(self, string):
97
+ return all(pat in string for pat in self._patterns)
98
+
99
+
100
+ class DistutilsMetaFinder:
101
+ def find_spec(self, fullname, path, target=None):
102
+ # optimization: only consider top level modules and those
103
+ # found in the CPython test suite.
104
+ if path is not None and not fullname.startswith('test.'):
105
+ return None
106
+
107
+ method_name = 'spec_for_{fullname}'.format(**locals())
108
+ method = getattr(self, method_name, lambda: None)
109
+ return method()
110
+
111
+ def spec_for_distutils(self):
112
+ if self.is_cpython():
113
+ return None
114
+
115
+ import importlib
116
+ import importlib.abc
117
+ import importlib.util
118
+
119
+ try:
120
+ mod = importlib.import_module('setuptools._distutils')
121
+ except Exception:
122
+ # There are a couple of cases where setuptools._distutils
123
+ # may not be present:
124
+ # - An older Setuptools without a local distutils is
125
+ # taking precedence. Ref #2957.
126
+ # - Path manipulation during sitecustomize removes
127
+ # setuptools from the path but only after the hook
128
+ # has been loaded. Ref #2980.
129
+ # In either case, fall back to stdlib behavior.
130
+ return None
131
+
132
+ class DistutilsLoader(importlib.abc.Loader):
133
+ def create_module(self, spec):
134
+ mod.__name__ = 'distutils'
135
+ return mod
136
+
137
+ def exec_module(self, module):
138
+ pass
139
+
140
+ return importlib.util.spec_from_loader(
141
+ 'distutils', DistutilsLoader(), origin=mod.__file__
142
+ )
143
+
144
+ @staticmethod
145
+ def is_cpython():
146
+ """
147
+ Suppress supplying distutils for CPython (build and tests).
148
+ Ref #2965 and #3007.
149
+ """
150
+ return os.path.isfile('pybuilddir.txt')
151
+
152
+ def spec_for_pip(self):
153
+ """
154
+ Ensure stdlib distutils when running under pip.
155
+ See pypa/pip#8761 for rationale.
156
+ """
157
+ if sys.version_info >= (3, 12) or self.pip_imported_during_build():
158
+ return
159
+ clear_distutils()
160
+ self.spec_for_distutils = lambda: None
161
+
162
+ @classmethod
163
+ def pip_imported_during_build(cls):
164
+ """
165
+ Detect if pip is being imported in a build script. Ref #2355.
166
+ """
167
+ import traceback
168
+
169
+ return any(
170
+ cls.frame_file_is_setup(frame) for frame, line in traceback.walk_stack(None)
171
+ )
172
+
173
+ @staticmethod
174
+ def frame_file_is_setup(frame):
175
+ """
176
+ Return True if the indicated frame suggests a setup.py file.
177
+ """
178
+ # some frames may not have __file__ (#2940)
179
+ return frame.f_globals.get('__file__', '').endswith('setup.py')
180
+
181
+ def spec_for_sensitive_tests(self):
182
+ """
183
+ Ensure stdlib distutils when running select tests under CPython.
184
+
185
+ python/cpython#91169
186
+ """
187
+ clear_distutils()
188
+ self.spec_for_distutils = lambda: None
189
+
190
+ sensitive_tests = (
191
+ [
192
+ 'test.test_distutils',
193
+ 'test.test_peg_generator',
194
+ 'test.test_importlib',
195
+ ]
196
+ if sys.version_info < (3, 10)
197
+ else [
198
+ 'test.test_distutils',
199
+ ]
200
+ )
201
+
202
+
203
+ for name in DistutilsMetaFinder.sensitive_tests:
204
+ setattr(
205
+ DistutilsMetaFinder,
206
+ f'spec_for_{name}',
207
+ DistutilsMetaFinder.spec_for_sensitive_tests,
208
+ )
209
+
210
+
211
+ DISTUTILS_FINDER = DistutilsMetaFinder()
212
+
213
+
214
+ def add_shim():
215
+ DISTUTILS_FINDER in sys.meta_path or insert_shim()
216
+
217
+
218
+ class shim:
219
+ def __enter__(self) -> None:
220
+ insert_shim()
221
+
222
+ def __exit__(self, exc: object, value: object, tb: object) -> None:
223
+ _remove_shim()
224
+
225
+
226
+ def insert_shim():
227
+ sys.meta_path.insert(0, DISTUTILS_FINDER)
228
+
229
+
230
+ def _remove_shim():
231
+ try:
232
+ sys.meta_path.remove(DISTUTILS_FINDER)
233
+ except ValueError:
234
+ pass
235
+
236
+
237
+ if sys.version_info < (3, 12):
238
+ # DistutilsMetaFinder can only be disabled in Python < 3.12 (PEP 632)
239
+ remove_shim = _remove_shim
python/Lib/site-packages/_distutils_hack/__pycache__/__init__.cpython-313.pyc ADDED
Binary file (10.7 kB). View file
 
python/Lib/site-packages/_distutils_hack/__pycache__/override.cpython-313.pyc ADDED
Binary file (272 Bytes). View file
 
python/Lib/site-packages/_distutils_hack/override.py ADDED
@@ -0,0 +1 @@
 
 
1
+ __import__('_distutils_hack').do_override()
python/Lib/site-packages/setuptools-82.0.1.dist-info/INSTALLER ADDED
@@ -0,0 +1 @@
 
 
1
+ pip
python/Lib/site-packages/setuptools-82.0.1.dist-info/METADATA ADDED
@@ -0,0 +1,140 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ Metadata-Version: 2.4
2
+ Name: setuptools
3
+ Version: 82.0.1
4
+ Summary: Most extensible Python build backend with support for C/C++ extension modules
5
+ Author-email: Python Packaging Authority <distutils-sig@python.org>
6
+ License-Expression: MIT
7
+ Project-URL: Source, https://github.com/pypa/setuptools
8
+ Project-URL: Documentation, https://setuptools.pypa.io/
9
+ Project-URL: Changelog, https://setuptools.pypa.io/en/stable/history.html
10
+ Keywords: CPAN PyPI distutils eggs package management
11
+ Classifier: Development Status :: 5 - Production/Stable
12
+ Classifier: Intended Audience :: Developers
13
+ Classifier: Programming Language :: Python :: 3
14
+ Classifier: Programming Language :: Python :: 3 :: Only
15
+ Classifier: Topic :: Software Development :: Libraries :: Python Modules
16
+ Classifier: Topic :: System :: Archiving :: Packaging
17
+ Classifier: Topic :: System :: Systems Administration
18
+ Classifier: Topic :: Utilities
19
+ Requires-Python: >=3.9
20
+ Description-Content-Type: text/x-rst
21
+ License-File: LICENSE
22
+ Provides-Extra: test
23
+ Requires-Dist: pytest!=8.1.*,>=6; extra == "test"
24
+ Requires-Dist: virtualenv>=13.0.0; extra == "test"
25
+ Requires-Dist: wheel>=0.44.0; extra == "test"
26
+ Requires-Dist: pip>=19.1; extra == "test"
27
+ Requires-Dist: packaging>=24.2; extra == "test"
28
+ Requires-Dist: jaraco.envs>=2.2; extra == "test"
29
+ Requires-Dist: pytest-xdist>=3; extra == "test"
30
+ Requires-Dist: jaraco.path>=3.7.2; extra == "test"
31
+ Requires-Dist: build[virtualenv]>=1.0.3; extra == "test"
32
+ Requires-Dist: filelock>=3.4.0; extra == "test"
33
+ Requires-Dist: ini2toml[lite]>=0.14; extra == "test"
34
+ Requires-Dist: tomli-w>=1.0.0; extra == "test"
35
+ Requires-Dist: pytest-timeout; extra == "test"
36
+ Requires-Dist: pytest-perf; sys_platform != "cygwin" and extra == "test"
37
+ Requires-Dist: jaraco.develop>=7.21; (python_version >= "3.9" and sys_platform != "cygwin") and extra == "test"
38
+ Requires-Dist: pytest-home>=0.5; extra == "test"
39
+ Requires-Dist: pytest-subprocess; extra == "test"
40
+ Requires-Dist: pyproject-hooks!=1.1; extra == "test"
41
+ Requires-Dist: jaraco.test>=5.5; extra == "test"
42
+ Provides-Extra: doc
43
+ Requires-Dist: sphinx>=3.5; extra == "doc"
44
+ Requires-Dist: jaraco.packaging>=9.3; extra == "doc"
45
+ Requires-Dist: rst.linker>=1.9; extra == "doc"
46
+ Requires-Dist: furo; extra == "doc"
47
+ Requires-Dist: sphinx-lint; extra == "doc"
48
+ Requires-Dist: jaraco.tidelift>=1.4; extra == "doc"
49
+ Requires-Dist: pygments-github-lexers==0.0.5; extra == "doc"
50
+ Requires-Dist: sphinx-favicon; extra == "doc"
51
+ Requires-Dist: sphinx-inline-tabs; extra == "doc"
52
+ Requires-Dist: sphinx-reredirects; extra == "doc"
53
+ Requires-Dist: sphinxcontrib-towncrier; extra == "doc"
54
+ Requires-Dist: sphinx-notfound-page<2,>=1; extra == "doc"
55
+ Requires-Dist: pyproject-hooks!=1.1; extra == "doc"
56
+ Requires-Dist: towncrier<24.7; extra == "doc"
57
+ Provides-Extra: ssl
58
+ Provides-Extra: certs
59
+ Provides-Extra: core
60
+ Requires-Dist: packaging>=24.2; extra == "core"
61
+ Requires-Dist: more_itertools>=8.8; extra == "core"
62
+ Requires-Dist: jaraco.text>=3.7; extra == "core"
63
+ Requires-Dist: importlib_metadata>=6; python_version < "3.10" and extra == "core"
64
+ Requires-Dist: tomli>=2.0.1; python_version < "3.11" and extra == "core"
65
+ Requires-Dist: wheel>=0.43.0; extra == "core"
66
+ Requires-Dist: jaraco.functools>=4; extra == "core"
67
+ Requires-Dist: more_itertools; extra == "core"
68
+ Provides-Extra: check
69
+ Requires-Dist: pytest-checkdocs>=2.4; extra == "check"
70
+ Requires-Dist: pytest-ruff>=0.2.1; sys_platform != "cygwin" and extra == "check"
71
+ Requires-Dist: ruff>=0.13.0; sys_platform != "cygwin" and extra == "check"
72
+ Provides-Extra: cover
73
+ Requires-Dist: pytest-cov; extra == "cover"
74
+ Provides-Extra: enabler
75
+ Requires-Dist: pytest-enabler>=2.2; extra == "enabler"
76
+ Provides-Extra: type
77
+ Requires-Dist: pytest-mypy; extra == "type"
78
+ Requires-Dist: mypy==1.18.*; extra == "type"
79
+ Requires-Dist: importlib_metadata>=7.0.2; python_version < "3.10" and extra == "type"
80
+ Requires-Dist: jaraco.develop>=7.21; sys_platform != "cygwin" and extra == "type"
81
+ Dynamic: license-file
82
+
83
+ .. |pypi-version| image:: https://img.shields.io/pypi/v/setuptools.svg
84
+ :target: https://pypi.org/project/setuptools
85
+
86
+ .. |py-version| image:: https://img.shields.io/pypi/pyversions/setuptools.svg
87
+
88
+ .. |test-badge| image:: https://github.com/pypa/setuptools/actions/workflows/main.yml/badge.svg
89
+ :target: https://github.com/pypa/setuptools/actions?query=workflow%3A%22tests%22
90
+ :alt: tests
91
+
92
+ .. |ruff-badge| image:: https://img.shields.io/endpoint?url=https://raw.githubusercontent.com/charliermarsh/ruff/main/assets/badge/v2.json
93
+ :target: https://github.com/astral-sh/ruff
94
+ :alt: Ruff
95
+
96
+ .. |docs-badge| image:: https://img.shields.io/readthedocs/setuptools/latest.svg
97
+ :target: https://setuptools.pypa.io
98
+
99
+ .. |skeleton-badge| image:: https://img.shields.io/badge/skeleton-2025-informational
100
+ :target: https://blog.jaraco.com/skeleton
101
+
102
+ .. |codecov-badge| image:: https://img.shields.io/codecov/c/github/pypa/setuptools/master.svg?logo=codecov&logoColor=white
103
+ :target: https://codecov.io/gh/pypa/setuptools
104
+
105
+ .. |tidelift-badge| image:: https://tidelift.com/badges/github/pypa/setuptools?style=flat
106
+ :target: https://tidelift.com/subscription/pkg/pypi-setuptools?utm_source=pypi-setuptools&utm_medium=readme
107
+
108
+ .. |discord-badge| image:: https://img.shields.io/discord/803025117553754132
109
+ :target: https://discord.com/channels/803025117553754132/815945031150993468
110
+ :alt: Discord
111
+
112
+ |pypi-version| |py-version| |test-badge| |ruff-badge| |docs-badge| |skeleton-badge| |codecov-badge| |discord-badge|
113
+
114
+ See the `Quickstart <https://setuptools.pypa.io/en/latest/userguide/quickstart.html>`_
115
+ and the `User's Guide <https://setuptools.pypa.io/en/latest/userguide/>`_ for
116
+ instructions on how to use Setuptools.
117
+
118
+ Questions and comments should be directed to `GitHub Discussions
119
+ <https://github.com/pypa/setuptools/discussions>`_.
120
+ Bug reports and especially tested patches may be
121
+ submitted directly to the `bug tracker
122
+ <https://github.com/pypa/setuptools/issues>`_.
123
+
124
+
125
+ Code of Conduct
126
+ ===============
127
+
128
+ Everyone interacting in the setuptools project's codebases, issue trackers,
129
+ chat rooms, and fora is expected to follow the
130
+ `PSF Code of Conduct <https://github.com/pypa/.github/blob/main/CODE_OF_CONDUCT.md>`_.
131
+
132
+
133
+ For Enterprise
134
+ ==============
135
+
136
+ Available as part of the Tidelift Subscription.
137
+
138
+ Setuptools and the maintainers of thousands of other packages are working with Tidelift to deliver one enterprise subscription that covers all of the open source you use.
139
+
140
+ `Learn more <https://tidelift.com/subscription/pkg/pypi-setuptools?utm_source=pypi-setuptools&utm_medium=referral&utm_campaign=github>`_.
python/Lib/site-packages/setuptools-82.0.1.dist-info/RECORD ADDED
@@ -0,0 +1,760 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ _distutils_hack/__init__.py,sha256=34HmvLo07j45Uvd2VR-2aRQ7lJD91sTK6zJgn5fphbQ,6755
2
+ _distutils_hack/__pycache__/__init__.cpython-313.pyc,,
3
+ _distutils_hack/__pycache__/override.cpython-313.pyc,,
4
+ _distutils_hack/override.py,sha256=Eu_s-NF6VIZ4Cqd0tbbA5wtWky2IZPNd8et6GLt1mzo,44
5
+ distutils-precedence.pth,sha256=JjjOniUA5XKl4N5_rtZmHrVp0baW_LoHsN0iPaX10iQ,151
6
+ setuptools-82.0.1.dist-info/INSTALLER,sha256=zuuue4knoyJ-UwPPXg8fezS7VCrXJQrAP7zeNuwvFQg,4
7
+ setuptools-82.0.1.dist-info/METADATA,sha256=dWg_QOESHrzLvKTWea4tv4oL4LqRUx3yhbKKvpJ6Q_g,6527
8
+ setuptools-82.0.1.dist-info/RECORD,,
9
+ setuptools-82.0.1.dist-info/REQUESTED,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
10
+ setuptools-82.0.1.dist-info/WHEEL,sha256=aeYiig01lYGDzBgS8HxWXOg3uV61G9ijOsup-k9o1sk,91
11
+ setuptools-82.0.1.dist-info/entry_points.txt,sha256=zkgthpf_Fa9NVE9p6FKT3Xk9DR1faAcRU4coggsV7jA,2449
12
+ setuptools-82.0.1.dist-info/licenses/LICENSE,sha256=htoPAa6uRjSKPD1GUZXcHOzN55956HdppkuNoEsqR0E,1023
13
+ setuptools-82.0.1.dist-info/top_level.txt,sha256=Wsln-wPBdc8NXLNXsnCRyTXUhGi0mUw_l0ZVThaim-I,27
14
+ setuptools/__init__.py,sha256=-UtTG9pdeEZkYiIFT69RckMCqxUdVILjj24g3qeJ_rc,9521
15
+ setuptools/__pycache__/__init__.cpython-313.pyc,,
16
+ setuptools/__pycache__/_core_metadata.cpython-313.pyc,,
17
+ setuptools/__pycache__/_discovery.cpython-313.pyc,,
18
+ setuptools/__pycache__/_entry_points.cpython-313.pyc,,
19
+ setuptools/__pycache__/_imp.cpython-313.pyc,,
20
+ setuptools/__pycache__/_importlib.cpython-313.pyc,,
21
+ setuptools/__pycache__/_itertools.cpython-313.pyc,,
22
+ setuptools/__pycache__/_normalization.cpython-313.pyc,,
23
+ setuptools/__pycache__/_path.cpython-313.pyc,,
24
+ setuptools/__pycache__/_reqs.cpython-313.pyc,,
25
+ setuptools/__pycache__/_scripts.cpython-313.pyc,,
26
+ setuptools/__pycache__/_shutil.cpython-313.pyc,,
27
+ setuptools/__pycache__/_static.cpython-313.pyc,,
28
+ setuptools/__pycache__/archive_util.cpython-313.pyc,,
29
+ setuptools/__pycache__/build_meta.cpython-313.pyc,,
30
+ setuptools/__pycache__/depends.cpython-313.pyc,,
31
+ setuptools/__pycache__/discovery.cpython-313.pyc,,
32
+ setuptools/__pycache__/dist.cpython-313.pyc,,
33
+ setuptools/__pycache__/errors.cpython-313.pyc,,
34
+ setuptools/__pycache__/extension.cpython-313.pyc,,
35
+ setuptools/__pycache__/glob.cpython-313.pyc,,
36
+ setuptools/__pycache__/installer.cpython-313.pyc,,
37
+ setuptools/__pycache__/launch.cpython-313.pyc,,
38
+ setuptools/__pycache__/logging.cpython-313.pyc,,
39
+ setuptools/__pycache__/modified.cpython-313.pyc,,
40
+ setuptools/__pycache__/monkey.cpython-313.pyc,,
41
+ setuptools/__pycache__/msvc.cpython-313.pyc,,
42
+ setuptools/__pycache__/namespaces.cpython-313.pyc,,
43
+ setuptools/__pycache__/unicode_utils.cpython-313.pyc,,
44
+ setuptools/__pycache__/version.cpython-313.pyc,,
45
+ setuptools/__pycache__/warnings.cpython-313.pyc,,
46
+ setuptools/__pycache__/wheel.cpython-313.pyc,,
47
+ setuptools/__pycache__/windows_support.cpython-313.pyc,,
48
+ setuptools/_core_metadata.py,sha256=T7Tjp-WSoN881adev3R1wzXCPnkDHqbC2MgylN1yjS8,11978
49
+ setuptools/_discovery.py,sha256=HxEpgYQ8zUaLOOSp8JIA4y2Mdvn9ysVxspPT-ppfzM4,836
50
+ setuptools/_distutils/__init__.py,sha256=xGYuhWwLG07J0Q49BVnEjPy6wyDcd6veJMDJX7ljlyM,359
51
+ setuptools/_distutils/__pycache__/__init__.cpython-313.pyc,,
52
+ setuptools/_distutils/__pycache__/_log.cpython-313.pyc,,
53
+ setuptools/_distutils/__pycache__/_macos_compat.cpython-313.pyc,,
54
+ setuptools/_distutils/__pycache__/_modified.cpython-313.pyc,,
55
+ setuptools/_distutils/__pycache__/_msvccompiler.cpython-313.pyc,,
56
+ setuptools/_distutils/__pycache__/archive_util.cpython-313.pyc,,
57
+ setuptools/_distutils/__pycache__/ccompiler.cpython-313.pyc,,
58
+ setuptools/_distutils/__pycache__/cmd.cpython-313.pyc,,
59
+ setuptools/_distutils/__pycache__/core.cpython-313.pyc,,
60
+ setuptools/_distutils/__pycache__/cygwinccompiler.cpython-313.pyc,,
61
+ setuptools/_distutils/__pycache__/debug.cpython-313.pyc,,
62
+ setuptools/_distutils/__pycache__/dep_util.cpython-313.pyc,,
63
+ setuptools/_distutils/__pycache__/dir_util.cpython-313.pyc,,
64
+ setuptools/_distutils/__pycache__/dist.cpython-313.pyc,,
65
+ setuptools/_distutils/__pycache__/errors.cpython-313.pyc,,
66
+ setuptools/_distutils/__pycache__/extension.cpython-313.pyc,,
67
+ setuptools/_distutils/__pycache__/fancy_getopt.cpython-313.pyc,,
68
+ setuptools/_distutils/__pycache__/file_util.cpython-313.pyc,,
69
+ setuptools/_distutils/__pycache__/filelist.cpython-313.pyc,,
70
+ setuptools/_distutils/__pycache__/log.cpython-313.pyc,,
71
+ setuptools/_distutils/__pycache__/spawn.cpython-313.pyc,,
72
+ setuptools/_distutils/__pycache__/sysconfig.cpython-313.pyc,,
73
+ setuptools/_distutils/__pycache__/text_file.cpython-313.pyc,,
74
+ setuptools/_distutils/__pycache__/unixccompiler.cpython-313.pyc,,
75
+ setuptools/_distutils/__pycache__/util.cpython-313.pyc,,
76
+ setuptools/_distutils/__pycache__/version.cpython-313.pyc,,
77
+ setuptools/_distutils/__pycache__/versionpredicate.cpython-313.pyc,,
78
+ setuptools/_distutils/__pycache__/zosccompiler.cpython-313.pyc,,
79
+ setuptools/_distutils/_log.py,sha256=i-lNTTcXS8TmWITJ6DODGvtW5z5tMattJQ76h8rZxQU,42
80
+ setuptools/_distutils/_macos_compat.py,sha256=JzUGhF4E5yIITHbUaPobZEWjGHdrrcNV63z86S4RjBc,239
81
+ setuptools/_distutils/_modified.py,sha256=RF1n1CexyDYV3lvGbeXS0s-XCJVboDOIUbA8wEQqYTY,3211
82
+ setuptools/_distutils/_msvccompiler.py,sha256=9PSfSHxvJnHnQL6Sqz4Xcz7iaBIT62p6BheQzGsSlwo,335
83
+ setuptools/_distutils/archive_util.py,sha256=dDZjw4BwhNIyt20hHlrIely4WSiN20HVTGdaPRKGI0o,8484
84
+ setuptools/_distutils/ccompiler.py,sha256=FKVjqzGJ7c-FtouNjhLiaMPm5LKMZHHAruXf8LU216c,524
85
+ setuptools/_distutils/cmd.py,sha256=lzqM-3rwYJNUhJiCYOv04aeUPenym2vyOndFPEOdZgo,21344
86
+ setuptools/_distutils/command/__init__.py,sha256=GfFAzbBqk1qxSH4BdaKioKS4hRRnD44BAmwEN85C4u8,386
87
+ setuptools/_distutils/command/__pycache__/__init__.cpython-313.pyc,,
88
+ setuptools/_distutils/command/__pycache__/_framework_compat.cpython-313.pyc,,
89
+ setuptools/_distutils/command/__pycache__/bdist.cpython-313.pyc,,
90
+ setuptools/_distutils/command/__pycache__/bdist_dumb.cpython-313.pyc,,
91
+ setuptools/_distutils/command/__pycache__/bdist_rpm.cpython-313.pyc,,
92
+ setuptools/_distutils/command/__pycache__/build.cpython-313.pyc,,
93
+ setuptools/_distutils/command/__pycache__/build_clib.cpython-313.pyc,,
94
+ setuptools/_distutils/command/__pycache__/build_ext.cpython-313.pyc,,
95
+ setuptools/_distutils/command/__pycache__/build_py.cpython-313.pyc,,
96
+ setuptools/_distutils/command/__pycache__/build_scripts.cpython-313.pyc,,
97
+ setuptools/_distutils/command/__pycache__/check.cpython-313.pyc,,
98
+ setuptools/_distutils/command/__pycache__/clean.cpython-313.pyc,,
99
+ setuptools/_distutils/command/__pycache__/config.cpython-313.pyc,,
100
+ setuptools/_distutils/command/__pycache__/install.cpython-313.pyc,,
101
+ setuptools/_distutils/command/__pycache__/install_data.cpython-313.pyc,,
102
+ setuptools/_distutils/command/__pycache__/install_egg_info.cpython-313.pyc,,
103
+ setuptools/_distutils/command/__pycache__/install_headers.cpython-313.pyc,,
104
+ setuptools/_distutils/command/__pycache__/install_lib.cpython-313.pyc,,
105
+ setuptools/_distutils/command/__pycache__/install_scripts.cpython-313.pyc,,
106
+ setuptools/_distutils/command/__pycache__/sdist.cpython-313.pyc,,
107
+ setuptools/_distutils/command/_framework_compat.py,sha256=0iZdSJYzGRWCCvzRDKE-R0-_yaAYvFMd1ylXb2eYXug,1609
108
+ setuptools/_distutils/command/bdist.py,sha256=jWtk61R7fWNUUNxJV0thTZzU5n80L3Ay1waSiP9kiLA,5854
109
+ setuptools/_distutils/command/bdist_dumb.py,sha256=FF0FpuC3IgFpOjJ1ub3hGU5ERFMBnJOiUjrAI-u4auw,4609
110
+ setuptools/_distutils/command/bdist_rpm.py,sha256=WRRB3k65qubgZO6zwiRMpaEEuG391mju_iJDRJTPvT8,21672
111
+ setuptools/_distutils/command/build.py,sha256=SpHlagf0iNaKVyIhxDfhPFZ8X1-LAWOCQACy-yt2K0w,5923
112
+ setuptools/_distutils/command/build_clib.py,sha256=6u-R8qjmWr6FPECuzDoAyVl1xRBtuEmXJZ2cz2Zk2zg,7733
113
+ setuptools/_distutils/command/build_ext.py,sha256=vnInlUvOVbCS7eCpp3ThqTY4NkQ7WBHcmsROGn8upKw,32676
114
+ setuptools/_distutils/command/build_py.py,sha256=BAJI_X9QlfiTyokU3ZgfDnsy3Xn6aWdxl2T_lToagbk,16606
115
+ setuptools/_distutils/command/build_scripts.py,sha256=UKhGKyXLjGCAQoQVfP2t-DnlMaUVjcXWac6UCs6GWMI,4833
116
+ setuptools/_distutils/command/check.py,sha256=yoNe2MPY4JcTM7rwoIQdfZ75q5Ri058I2coi-Gq9CjM,4946
117
+ setuptools/_distutils/command/clean.py,sha256=UWkfAMmpOZGl0_PjiZJFdyLV2yzGnoimygF8fka907I,2551
118
+ setuptools/_distutils/command/config.py,sha256=zE7F8mSQavwiZwNZj8WtrF6T92lt-K1dUNq9rYIQpgc,12206
119
+ setuptools/_distutils/command/install.py,sha256=-JenB-mua4hc2RI_-W8F9PnP_J-OaFO7E0PJGKxLo1o,30072
120
+ setuptools/_distutils/command/install_data.py,sha256=GzBlUWWKubTYJlP-L0auUriq9cL-5RKOcoyHTttKj0Q,2875
121
+ setuptools/_distutils/command/install_egg_info.py,sha256=0tJ0AqFr8P1bf5wFH9eO7ssx1G3_SLhO9bCbWN-h0f4,2809
122
+ setuptools/_distutils/command/install_headers.py,sha256=5ciKCj8c3XKsYNKdkdMvnypaUCKcoWCDeeZij3fD-Z4,1272
123
+ setuptools/_distutils/command/install_lib.py,sha256=3VQc5P06dv-1QVl8G-raVpTD-bMlPTj1c3NE7adJiyk,8512
124
+ setuptools/_distutils/command/install_scripts.py,sha256=CTzga_-kEjYWguL-Dg_GP83Jax6uw2VnFFwlR8XoAls,1877
125
+ setuptools/_distutils/command/sdist.py,sha256=XGEO5UMznLzPT-F3ftbryqkMsMWLKd15tjObiZJsm8k,19107
126
+ setuptools/_distutils/compat/__init__.py,sha256=J20aXGjJ86Rg41xFLIWlcWCgZ9edMdJ9vvdNEQ87vPQ,522
127
+ setuptools/_distutils/compat/__pycache__/__init__.cpython-313.pyc,,
128
+ setuptools/_distutils/compat/__pycache__/numpy.cpython-313.pyc,,
129
+ setuptools/_distutils/compat/__pycache__/py39.cpython-313.pyc,,
130
+ setuptools/_distutils/compat/numpy.py,sha256=UFgneZw9w97g4c-yGoAIOyLxUOWQ-fPRIhhfMs7_Ouc,167
131
+ setuptools/_distutils/compat/py39.py,sha256=hOsD6lwZLqZoMnacNJ3P6nUA-LJQhEpVtYTzVH0o96M,1964
132
+ setuptools/_distutils/compilers/C/__pycache__/base.cpython-313.pyc,,
133
+ setuptools/_distutils/compilers/C/__pycache__/cygwin.cpython-313.pyc,,
134
+ setuptools/_distutils/compilers/C/__pycache__/errors.cpython-313.pyc,,
135
+ setuptools/_distutils/compilers/C/__pycache__/msvc.cpython-313.pyc,,
136
+ setuptools/_distutils/compilers/C/__pycache__/unix.cpython-313.pyc,,
137
+ setuptools/_distutils/compilers/C/__pycache__/zos.cpython-313.pyc,,
138
+ setuptools/_distutils/compilers/C/base.py,sha256=0b6_nCJiQtmUkdxL6tFKxVx8vv8AkLZOfRkIS2zGXCc,54550
139
+ setuptools/_distutils/compilers/C/cygwin.py,sha256=QFW4oBPylt6-uR4mdrXbFtGMQQ_mXJ4gB0qPUklbMWQ,11802
140
+ setuptools/_distutils/compilers/C/errors.py,sha256=sKOVzJajMUmNdfywo9UM_QQGsKFcclDhtI5TlCiXMLc,573
141
+ setuptools/_distutils/compilers/C/msvc.py,sha256=c-12nYp2XpD-fUvxfgd559rWZqmmRx9f9mWFwWTsoP4,21386
142
+ setuptools/_distutils/compilers/C/tests/__pycache__/test_base.cpython-313.pyc,,
143
+ setuptools/_distutils/compilers/C/tests/__pycache__/test_cygwin.cpython-313.pyc,,
144
+ setuptools/_distutils/compilers/C/tests/__pycache__/test_mingw.cpython-313.pyc,,
145
+ setuptools/_distutils/compilers/C/tests/__pycache__/test_msvc.cpython-313.pyc,,
146
+ setuptools/_distutils/compilers/C/tests/__pycache__/test_unix.cpython-313.pyc,,
147
+ setuptools/_distutils/compilers/C/tests/test_base.py,sha256=rdhHc56bhXtm5NnN9BSHwr6c69UqzMItZQzlw2AsdMc,2706
148
+ setuptools/_distutils/compilers/C/tests/test_cygwin.py,sha256=UgV2VgUXj3VulcbDc0UBWfEyJDx42tgSwS4LzHix3mY,2701
149
+ setuptools/_distutils/compilers/C/tests/test_mingw.py,sha256=hCmwyywISpRoyOySbFHBL4TprWRV0mUWDKmOLO8XBXE,1900
150
+ setuptools/_distutils/compilers/C/tests/test_msvc.py,sha256=DlGjmZ1mBSMXIgmlu80BKc7V-EJOZuYucwJwFh5dn28,4151
151
+ setuptools/_distutils/compilers/C/tests/test_unix.py,sha256=AyadWw1fR-UeDl2TvIbYBzOJVHkpE_oRRQ3JTJWqaEA,14642
152
+ setuptools/_distutils/compilers/C/unix.py,sha256=YH-y9g_pjBFjaJyHJQkDEBQ7q4D20I2-cWJNdgw-Yho,16531
153
+ setuptools/_distutils/compilers/C/zos.py,sha256=WnGA_PR51_FP89wKbl85_2rcLA28BIKbeG5rPZ7JUig,6568
154
+ setuptools/_distutils/core.py,sha256=GEHKaFC48T3o-_SmH4864GvKyx1IgbVC6ISIPVlx7a4,9364
155
+ setuptools/_distutils/cygwinccompiler.py,sha256=mG_cU8SVZ4amD_VtF5vH6BXP0-kghGsDPbDSXrQ963c,594
156
+ setuptools/_distutils/debug.py,sha256=N6MrTAqK6l9SVk6tWweR108PM8Ol7qNlfyV-nHcLhsY,139
157
+ setuptools/_distutils/dep_util.py,sha256=xN75p6ZpHhMiHEc-rpL2XilJQynHnDNiafHteaZ4tjU,349
158
+ setuptools/_distutils/dir_util.py,sha256=1i-puqc3g8sTggEPX6NSuqNtGSNEdSy-Qw9qQfC3PSo,6864
159
+ setuptools/_distutils/dist.py,sha256=kPQ81tTJdZikPayJ7OIunkFAh-m8-YqjbpQYQSuMTeI,55699
160
+ setuptools/_distutils/errors.py,sha256=PPE2oDRh5y9Q1beKK9rhdvDaCzQhi4HCXs4KcqfqgZY,3092
161
+ setuptools/_distutils/extension.py,sha256=Foyu4gULcPqm1_U9zrYYHxNk4NqglXv1rbsOk_QrSds,11155
162
+ setuptools/_distutils/fancy_getopt.py,sha256=PjdO-bWCW0imV_UN-MGEw9R2GP2OiE8pHjITgmTAY3Q,17895
163
+ setuptools/_distutils/file_util.py,sha256=O3hNtKxcs4jhCdOtGN23wIrLSvMwoRmMV2caEeXbvdU,7811
164
+ setuptools/_distutils/filelist.py,sha256=MBeSRJmPcKmDv8ooZgSU4BiQPZ0Khwv8l_jhD50XycI,15337
165
+ setuptools/_distutils/log.py,sha256=VyBs5j7z4-K6XTEEBThUc9HyMpoPLGtQpERqbz5ylww,1200
166
+ setuptools/_distutils/spawn.py,sha256=sPnZ3Q3gsBzNBB2zsbfFxzkHJ-AveB6lyK9YqBHQiIw,3963
167
+ setuptools/_distutils/sysconfig.py,sha256=KeI8OHbMuEzHJ8Q0cBez9KZny8iRy6Z6Y0AkMz1jlsU,19728
168
+ setuptools/_distutils/tests/__init__.py,sha256=j-IoPZEtQv3EOPuqNTwalr6GLyRjzCC-OOaNvZzmHsI,1485
169
+ setuptools/_distutils/tests/__pycache__/__init__.cpython-313.pyc,,
170
+ setuptools/_distutils/tests/__pycache__/support.cpython-313.pyc,,
171
+ setuptools/_distutils/tests/__pycache__/test_archive_util.cpython-313.pyc,,
172
+ setuptools/_distutils/tests/__pycache__/test_bdist.cpython-313.pyc,,
173
+ setuptools/_distutils/tests/__pycache__/test_bdist_dumb.cpython-313.pyc,,
174
+ setuptools/_distutils/tests/__pycache__/test_bdist_rpm.cpython-313.pyc,,
175
+ setuptools/_distutils/tests/__pycache__/test_build.cpython-313.pyc,,
176
+ setuptools/_distutils/tests/__pycache__/test_build_clib.cpython-313.pyc,,
177
+ setuptools/_distutils/tests/__pycache__/test_build_ext.cpython-313.pyc,,
178
+ setuptools/_distutils/tests/__pycache__/test_build_py.cpython-313.pyc,,
179
+ setuptools/_distutils/tests/__pycache__/test_build_scripts.cpython-313.pyc,,
180
+ setuptools/_distutils/tests/__pycache__/test_check.cpython-313.pyc,,
181
+ setuptools/_distutils/tests/__pycache__/test_clean.cpython-313.pyc,,
182
+ setuptools/_distutils/tests/__pycache__/test_cmd.cpython-313.pyc,,
183
+ setuptools/_distutils/tests/__pycache__/test_config_cmd.cpython-313.pyc,,
184
+ setuptools/_distutils/tests/__pycache__/test_core.cpython-313.pyc,,
185
+ setuptools/_distutils/tests/__pycache__/test_dir_util.cpython-313.pyc,,
186
+ setuptools/_distutils/tests/__pycache__/test_dist.cpython-313.pyc,,
187
+ setuptools/_distutils/tests/__pycache__/test_extension.cpython-313.pyc,,
188
+ setuptools/_distutils/tests/__pycache__/test_file_util.cpython-313.pyc,,
189
+ setuptools/_distutils/tests/__pycache__/test_filelist.cpython-313.pyc,,
190
+ setuptools/_distutils/tests/__pycache__/test_install.cpython-313.pyc,,
191
+ setuptools/_distutils/tests/__pycache__/test_install_data.cpython-313.pyc,,
192
+ setuptools/_distutils/tests/__pycache__/test_install_headers.cpython-313.pyc,,
193
+ setuptools/_distutils/tests/__pycache__/test_install_lib.cpython-313.pyc,,
194
+ setuptools/_distutils/tests/__pycache__/test_install_scripts.cpython-313.pyc,,
195
+ setuptools/_distutils/tests/__pycache__/test_log.cpython-313.pyc,,
196
+ setuptools/_distutils/tests/__pycache__/test_modified.cpython-313.pyc,,
197
+ setuptools/_distutils/tests/__pycache__/test_sdist.cpython-313.pyc,,
198
+ setuptools/_distutils/tests/__pycache__/test_spawn.cpython-313.pyc,,
199
+ setuptools/_distutils/tests/__pycache__/test_sysconfig.cpython-313.pyc,,
200
+ setuptools/_distutils/tests/__pycache__/test_text_file.cpython-313.pyc,,
201
+ setuptools/_distutils/tests/__pycache__/test_util.cpython-313.pyc,,
202
+ setuptools/_distutils/tests/__pycache__/test_version.cpython-313.pyc,,
203
+ setuptools/_distutils/tests/__pycache__/test_versionpredicate.cpython-313.pyc,,
204
+ setuptools/_distutils/tests/__pycache__/unix_compat.cpython-313.pyc,,
205
+ setuptools/_distutils/tests/compat/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
206
+ setuptools/_distutils/tests/compat/__pycache__/__init__.cpython-313.pyc,,
207
+ setuptools/_distutils/tests/compat/__pycache__/py39.cpython-313.pyc,,
208
+ setuptools/_distutils/tests/compat/py39.py,sha256=t0GBTM-30jX-9zCfkwlNBFtzzabemx6065mJ0d9_VRw,1026
209
+ setuptools/_distutils/tests/support.py,sha256=tjsYsyxvpTK4NrkCseh2ujvDIGV0Mf_b5SI5fP2T0yM,4099
210
+ setuptools/_distutils/tests/test_archive_util.py,sha256=VaXLjV8kup-Z6rIVXCBW7u21pubcAH_R3hEtSmS81Xs,11441
211
+ setuptools/_distutils/tests/test_bdist.py,sha256=xNHxUsLlHsZQRwkzLb_iSD24s-9Mk-NX2ffBWwOyPyc,1396
212
+ setuptools/_distutils/tests/test_bdist_dumb.py,sha256=QF05MHNhPOdZyh88Xpw8KsO64s7pRFkl8KL-RoV4XK0,2247
213
+ setuptools/_distutils/tests/test_bdist_rpm.py,sha256=Hdm-pwWgyaoGdGbEcGZa8cRhGU45y8gHK8umOanTjik,3932
214
+ setuptools/_distutils/tests/test_build.py,sha256=JJY5XpOZco25ZY0pstxl-iI8mHsWP0ujf5o8aOtuZYY,1742
215
+ setuptools/_distutils/tests/test_build_clib.py,sha256=Mo1ZFb4C1VXBYOGvnallwN7YCnTtr24akLDO8Zi4CsY,4331
216
+ setuptools/_distutils/tests/test_build_ext.py,sha256=QFO9qYVhWWdJu17HXc4x9RMnLZlhk0lAHi9HVppbuX4,22545
217
+ setuptools/_distutils/tests/test_build_py.py,sha256=NsfmRrojOHBXNMqWR_mp5g4PLTgjhD7iZFUffGZFIdw,6882
218
+ setuptools/_distutils/tests/test_build_scripts.py,sha256=cD-FRy-oX55sXRX5Ez5xQCaeHrWajyKc4Xuwv2fe48w,2880
219
+ setuptools/_distutils/tests/test_check.py,sha256=hHSV07qf7YoSxGsTbbsUQ9tssZz5RRNdbrY1s2SwaFI,6226
220
+ setuptools/_distutils/tests/test_clean.py,sha256=hPH6jfIpGFUrvWbF1txkiNVSNaAxt2wq5XjV499zO4E,1240
221
+ setuptools/_distutils/tests/test_cmd.py,sha256=bgRB79mitoOKR1OiyZHnCogvGxt3pWkxeTqIC04lQWQ,3254
222
+ setuptools/_distutils/tests/test_config_cmd.py,sha256=Zs6WX0IfxDvmuC19XzuVNnYCnTr9Y-hl73TAmDSBN4Y,2664
223
+ setuptools/_distutils/tests/test_core.py,sha256=L7XKVAxa-MGoAZeANopnuK9fRKneYhkSQpgw8XQvcF8,3829
224
+ setuptools/_distutils/tests/test_dir_util.py,sha256=E84lC-k4riVUwURyWaQ0Jqx2ui2-io-0RuJa3M7qkJs,4500
225
+ setuptools/_distutils/tests/test_dist.py,sha256=a6wlc5fQJd5qQ6HOndzcupNhjTxvj6-_JLtpuYvaP1M,18793
226
+ setuptools/_distutils/tests/test_extension.py,sha256=-YejLgZCuycFrOBd64pVH0JvwMc9NwhzHvQxvvjXHqk,3670
227
+ setuptools/_distutils/tests/test_file_util.py,sha256=livjnl3FkilQlrB2rFdFQq9nvjEVZHynNya0bfzv_b4,3522
228
+ setuptools/_distutils/tests/test_filelist.py,sha256=rJwkqCUfkGDgWlD22TozsT8ycbupMHB8DXqThzwT1T4,10766
229
+ setuptools/_distutils/tests/test_install.py,sha256=TfCB0ykhIxydIC2Q4SuTAZzSHvteMHgrBL9whoSgK9Q,8618
230
+ setuptools/_distutils/tests/test_install_data.py,sha256=vKq3K97k0hBAnOg38nmwEdf7cEDVr9rTVyCeJolgb4A,2464
231
+ setuptools/_distutils/tests/test_install_headers.py,sha256=PVAYpo_tYl980Qf64DPOmmSvyefIHdU06f7VsJeZykE,936
232
+ setuptools/_distutils/tests/test_install_lib.py,sha256=qri6Rl-maNTQrNDV8DbeXNl0hjsfRIKiI4rfZLrmWBI,3612
233
+ setuptools/_distutils/tests/test_install_scripts.py,sha256=KE3v0cDkFW-90IOID-OmZZGM2mhy-ZkEuuW7UXS2SHw,1600
234
+ setuptools/_distutils/tests/test_log.py,sha256=isFtOufloCyEdZaQOV7cVUr46GwtdVMj43mGBB5XH7k,323
235
+ setuptools/_distutils/tests/test_modified.py,sha256=h1--bOWmtJo1bpVV6uRhdnS9br71CBiNDM1MDwSGpug,4221
236
+ setuptools/_distutils/tests/test_sdist.py,sha256=cfzUhlCA418-1vH9ta3IBs26c_jUBbkJoFOK5GnAyNk,15062
237
+ setuptools/_distutils/tests/test_spawn.py,sha256=eS8w9D7bTxyFLSyRahJWeuh8Kc1F8RWWiY_dSG5B5Bc,4803
238
+ setuptools/_distutils/tests/test_sysconfig.py,sha256=lxM8LsUi1TomjDV4HoYK8u5nUoBkeNL60Uq8PY1DcwU,11986
239
+ setuptools/_distutils/tests/test_text_file.py,sha256=WQWSB5AfdBDZaMA8BFgipJPnsJb_2SKMfL90fSkRVtw,3460
240
+ setuptools/_distutils/tests/test_util.py,sha256=H9zlZ4z4Vh4TfjNYDBsxP7wguQLpxCfJYyOcm1yZU3c,7988
241
+ setuptools/_distutils/tests/test_version.py,sha256=ahfg_mP8wRy1sgwY-_Px5hrjgf6_upTIpnCgpR4yWRk,2750
242
+ setuptools/_distutils/tests/test_versionpredicate.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
243
+ setuptools/_distutils/tests/unix_compat.py,sha256=z-op6C2iVdX1aq5BIBR7cqOxijKE97alNwJqHNdLpoI,386
244
+ setuptools/_distutils/text_file.py,sha256=z4dkOJBr9Bo2LG0TNqm8sD63LEEaKSSP0J0bWBrFG3c,12101
245
+ setuptools/_distutils/unixccompiler.py,sha256=1bXJWH4fiu_A2WfriHzf88xjllQTXnnjUkZdRKs9cWU,212
246
+ setuptools/_distutils/util.py,sha256=iGaXP9t2-SQo7vaDR7bKUoEbrGO5QN69xTEtS5eihvk,17534
247
+ setuptools/_distutils/version.py,sha256=vImT5-ECXkQ21oKL0XYFiTqK6NyM09cpzBNoA_34CQU,12619
248
+ setuptools/_distutils/versionpredicate.py,sha256=qBWQ6wTj12ODytoTmIydefIY2jb4uY1sdbgbuLn-IJM,5205
249
+ setuptools/_distutils/zosccompiler.py,sha256=svdiXZ2kdcwKrJKfhUhib03y8gz7aGZKukXH3I7YkBc,58
250
+ setuptools/_entry_points.py,sha256=10TjbzfGdqWGH06lQuPPGDDci-OnXoIzrfpIWba5AZw,2468
251
+ setuptools/_imp.py,sha256=YY1EjZEN-0zYci1cxO10B_adAEOr7i8eK8JoCc9Ierc,2435
252
+ setuptools/_importlib.py,sha256=aKIjcK0HKXNz2D-XTrxaixGn_juTkONwmu3dcheMOF0,223
253
+ setuptools/_itertools.py,sha256=jWRfsIrpC7myooz3hDURj9GtvpswZeKXg2HakmEhNjo,657
254
+ setuptools/_normalization.py,sha256=1H0YXdCuVkUcNX2zQqDyqa-4eWC8VI5vWjGGsbj7n8I,5798
255
+ setuptools/_path.py,sha256=2Bv1q9_Hrd4oizKwcH3pv_05YVR6meovQE6ZtyD45yI,2976
256
+ setuptools/_reqs.py,sha256=RRX-qYsz_fy6K66XchCHcIszK3bSAtU6aO1s3ZaLV14,1380
257
+ setuptools/_scripts.py,sha256=5TrIWDVOuO3cRcfzcZAUBKPRH7K4svQRdQLZKKiD1bQ,11247
258
+ setuptools/_shutil.py,sha256=IQQ1gcPX4X_wPilYGJGxChyMCqG43VOejoQZTIrCTY8,1578
259
+ setuptools/_static.py,sha256=GTR79gESF1_JaK4trLkpDrEuCeEtPlwQW0MRv7VNQX4,4855
260
+ setuptools/_vendor/.lock,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
261
+ setuptools/_vendor/autocommand-2.2.2.dist-info/INSTALLER,sha256=5hhM4Q4mYTT9z6QB6PGpUAW81PGNFrYrdXMj4oM_6ak,2
262
+ setuptools/_vendor/autocommand-2.2.2.dist-info/LICENSE,sha256=reeNBJgtaZctREqOFKlPh6IzTdOFXMgDSOqOJAqg3y0,7634
263
+ setuptools/_vendor/autocommand-2.2.2.dist-info/METADATA,sha256=OADZuR3O6iBlpu1ieTgzYul6w4uOVrk0P0BO5TGGAJk,15006
264
+ setuptools/_vendor/autocommand-2.2.2.dist-info/RECORD,sha256=K-5gcsvOxjkMVxB8jfywQikYqY7NtaLMNiGH8T1C6W8,1072
265
+ setuptools/_vendor/autocommand-2.2.2.dist-info/REQUESTED,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
266
+ setuptools/_vendor/autocommand-2.2.2.dist-info/WHEEL,sha256=2wepM1nk4DS4eFpYrW1TTqPcoGNfHhhO_i5m4cOimbo,92
267
+ setuptools/_vendor/autocommand-2.2.2.dist-info/top_level.txt,sha256=AzfhgKKS8EdAwWUTSF8mgeVQbXOY9kokHB6kSqwwqu0,12
268
+ setuptools/_vendor/autocommand/__init__.py,sha256=zko5Rnvolvb-UXjCx_2ArPTGBWwUK5QY4LIQIKYR7As,1037
269
+ setuptools/_vendor/autocommand/__pycache__/__init__.cpython-313.pyc,,
270
+ setuptools/_vendor/autocommand/__pycache__/autoasync.cpython-313.pyc,,
271
+ setuptools/_vendor/autocommand/__pycache__/autocommand.cpython-313.pyc,,
272
+ setuptools/_vendor/autocommand/__pycache__/automain.cpython-313.pyc,,
273
+ setuptools/_vendor/autocommand/__pycache__/autoparse.cpython-313.pyc,,
274
+ setuptools/_vendor/autocommand/__pycache__/errors.cpython-313.pyc,,
275
+ setuptools/_vendor/autocommand/autoasync.py,sha256=AMdyrxNS4pqWJfP_xuoOcImOHWD-qT7x06wmKN1Vp-U,5680
276
+ setuptools/_vendor/autocommand/autocommand.py,sha256=hmkEmQ72HtL55gnURVjDOnsfYlGd5lLXbvT4KG496Qw,2505
277
+ setuptools/_vendor/autocommand/automain.py,sha256=A2b8i754Mxc_DjU9WFr6vqYDWlhz0cn8miu8d8EsxV8,2076
278
+ setuptools/_vendor/autocommand/autoparse.py,sha256=WVWmZJPcbzUKXP40raQw_0HD8qPJ2V9VG1eFFmmnFxw,11642
279
+ setuptools/_vendor/autocommand/errors.py,sha256=7aa3roh9Herd6nIKpQHNWEslWE8oq7GiHYVUuRqORnA,886
280
+ setuptools/_vendor/backports.tarfile-1.2.0.dist-info/INSTALLER,sha256=5hhM4Q4mYTT9z6QB6PGpUAW81PGNFrYrdXMj4oM_6ak,2
281
+ setuptools/_vendor/backports.tarfile-1.2.0.dist-info/LICENSE,sha256=htoPAa6uRjSKPD1GUZXcHOzN55956HdppkuNoEsqR0E,1023
282
+ setuptools/_vendor/backports.tarfile-1.2.0.dist-info/METADATA,sha256=ghXFTq132dxaEIolxr3HK1mZqm9iyUmaRANZQSr6WlE,2020
283
+ setuptools/_vendor/backports.tarfile-1.2.0.dist-info/RECORD,sha256=D2nbcZtUIg1qSt_4v7BKyYr_6j3ItUBUoaeHoXVn9NE,1056
284
+ setuptools/_vendor/backports.tarfile-1.2.0.dist-info/REQUESTED,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
285
+ setuptools/_vendor/backports.tarfile-1.2.0.dist-info/WHEEL,sha256=GJ7t_kWBFywbagK5eo9IoUwLW6oyOeTKmQ-9iHFVNxQ,92
286
+ setuptools/_vendor/backports.tarfile-1.2.0.dist-info/top_level.txt,sha256=cGjaLMOoBR1FK0ApojtzWVmViTtJ7JGIK_HwXiEsvtU,10
287
+ setuptools/_vendor/backports/__init__.py,sha256=iOEMwnlORWezdO8-2vxBIPSR37D7JGjluZ8f55vzxls,81
288
+ setuptools/_vendor/backports/__pycache__/__init__.cpython-313.pyc,,
289
+ setuptools/_vendor/backports/tarfile/__init__.py,sha256=Pwf2qUIfB0SolJPCKcx3vz3UEu_aids4g4sAfxy94qg,108491
290
+ setuptools/_vendor/backports/tarfile/__main__.py,sha256=Yw2oGT1afrz2eBskzdPYL8ReB_3liApmhFkN2EbDmc4,59
291
+ setuptools/_vendor/backports/tarfile/__pycache__/__init__.cpython-313.pyc,,
292
+ setuptools/_vendor/backports/tarfile/__pycache__/__main__.cpython-313.pyc,,
293
+ setuptools/_vendor/backports/tarfile/compat/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
294
+ setuptools/_vendor/backports/tarfile/compat/__pycache__/__init__.cpython-313.pyc,,
295
+ setuptools/_vendor/backports/tarfile/compat/__pycache__/py38.cpython-313.pyc,,
296
+ setuptools/_vendor/backports/tarfile/compat/py38.py,sha256=iYkyt_gvWjLzGUTJD9TuTfMMjOk-ersXZmRlvQYN2qE,568
297
+ setuptools/_vendor/importlib_metadata-8.7.1.dist-info/INSTALLER,sha256=5hhM4Q4mYTT9z6QB6PGpUAW81PGNFrYrdXMj4oM_6ak,2
298
+ setuptools/_vendor/importlib_metadata-8.7.1.dist-info/METADATA,sha256=o-OLnuQyYonUhkcE8w4pnudp4jCc6fSnXw3hpQrQo1Y,4670
299
+ setuptools/_vendor/importlib_metadata-8.7.1.dist-info/RECORD,sha256=Uqa47g3hXPf9mWJfQ7l80uOUKshvFgVOqQ3kjmbyk1U,1868
300
+ setuptools/_vendor/importlib_metadata-8.7.1.dist-info/REQUESTED,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
301
+ setuptools/_vendor/importlib_metadata-8.7.1.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
302
+ setuptools/_vendor/importlib_metadata-8.7.1.dist-info/licenses/LICENSE,sha256=RYUC4S2Xu_ZEOGBqIARKqF6wX7CoqAe7NdvsJT_R_AQ,10278
303
+ setuptools/_vendor/importlib_metadata-8.7.1.dist-info/top_level.txt,sha256=CO3fD9yylANiXkrMo4qHLV_mqXL2sC5JFKgt1yWAT-A,19
304
+ setuptools/_vendor/importlib_metadata/__init__.py,sha256=u7Ew4-UkpzNY-ka6k-WRkDhQZS1akkLMfWs2eEnUmGo,37734
305
+ setuptools/_vendor/importlib_metadata/__pycache__/__init__.cpython-313.pyc,,
306
+ setuptools/_vendor/importlib_metadata/__pycache__/_adapters.cpython-313.pyc,,
307
+ setuptools/_vendor/importlib_metadata/__pycache__/_collections.cpython-313.pyc,,
308
+ setuptools/_vendor/importlib_metadata/__pycache__/_compat.cpython-313.pyc,,
309
+ setuptools/_vendor/importlib_metadata/__pycache__/_functools.cpython-313.pyc,,
310
+ setuptools/_vendor/importlib_metadata/__pycache__/_itertools.cpython-313.pyc,,
311
+ setuptools/_vendor/importlib_metadata/__pycache__/_meta.cpython-313.pyc,,
312
+ setuptools/_vendor/importlib_metadata/__pycache__/_text.cpython-313.pyc,,
313
+ setuptools/_vendor/importlib_metadata/__pycache__/_typing.cpython-313.pyc,,
314
+ setuptools/_vendor/importlib_metadata/__pycache__/diagnose.cpython-313.pyc,,
315
+ setuptools/_vendor/importlib_metadata/_adapters.py,sha256=r5i8XLrKT6xmrpoREZhZrfczOYDmrVZeJBW5u0HzIGU,3797
316
+ setuptools/_vendor/importlib_metadata/_collections.py,sha256=CxAhzlF3g1rwu_fMiB53JtRQiUFh0RgiMpoOvmK_ocg,760
317
+ setuptools/_vendor/importlib_metadata/_compat.py,sha256=VC5ZDLlT-BcshauCShdFJvMNLntJJfZzNK1meGa-enw,1313
318
+ setuptools/_vendor/importlib_metadata/_functools.py,sha256=0pA2OoiVK6wnsGq8HvVIzgdkvLiZ0nfnfw7IsndjoHk,3510
319
+ setuptools/_vendor/importlib_metadata/_itertools.py,sha256=nMvp9SfHAQ_JYwK4L2i64lr3GRXGlYlikGTVzWbys_E,5351
320
+ setuptools/_vendor/importlib_metadata/_meta.py,sha256=EtHyiJ5kGzWFDfKyQ2XQp6Vu113CeadKW1Vf6aGc1B4,1765
321
+ setuptools/_vendor/importlib_metadata/_text.py,sha256=HCsFksZpJLeTP3NEk_ngrAeXVRRtTrtyh9eOABoRP4A,2166
322
+ setuptools/_vendor/importlib_metadata/_typing.py,sha256=EQKhhsEgz_Sa-FnePI-faC72rNOOQwopjA1i5pG8FDU,367
323
+ setuptools/_vendor/importlib_metadata/compat/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
324
+ setuptools/_vendor/importlib_metadata/compat/__pycache__/__init__.cpython-313.pyc,,
325
+ setuptools/_vendor/importlib_metadata/compat/__pycache__/py311.cpython-313.pyc,,
326
+ setuptools/_vendor/importlib_metadata/compat/__pycache__/py39.cpython-313.pyc,,
327
+ setuptools/_vendor/importlib_metadata/compat/py311.py,sha256=uqm-K-uohyj1042TH4a9Er_I5o7667DvulcD-gC_fSA,608
328
+ setuptools/_vendor/importlib_metadata/compat/py39.py,sha256=J3W7PUVRPNYMmcvT12RF8ndBU9e8_T0Ac4U87Bsrq70,1187
329
+ setuptools/_vendor/importlib_metadata/diagnose.py,sha256=nkSRMiowlmkhLYhKhvCg9glmt_11Cox-EmLzEbqYTa8,379
330
+ setuptools/_vendor/importlib_metadata/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
331
+ setuptools/_vendor/jaraco.text-4.0.0.dist-info/INSTALLER,sha256=5hhM4Q4mYTT9z6QB6PGpUAW81PGNFrYrdXMj4oM_6ak,2
332
+ setuptools/_vendor/jaraco.text-4.0.0.dist-info/LICENSE,sha256=htoPAa6uRjSKPD1GUZXcHOzN55956HdppkuNoEsqR0E,1023
333
+ setuptools/_vendor/jaraco.text-4.0.0.dist-info/METADATA,sha256=XC_QkBLJVPE5sQYkl41TNaZUw0AUzQb29GbKaD28nFY,3731
334
+ setuptools/_vendor/jaraco.text-4.0.0.dist-info/RECORD,sha256=Y7k2wwjQ_L4TkOgkVnzAB1NsMqhJrbAieOlfHUxzbDE,1157
335
+ setuptools/_vendor/jaraco.text-4.0.0.dist-info/REQUESTED,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
336
+ setuptools/_vendor/jaraco.text-4.0.0.dist-info/WHEEL,sha256=Wyh-_nZ0DJYolHNn1_hMa4lM7uDedD_RGVwbmTjyItk,91
337
+ setuptools/_vendor/jaraco.text-4.0.0.dist-info/top_level.txt,sha256=0JnN3LfXH4LIRfXL-QFOGCJzQWZO3ELx4R1d_louoQM,7
338
+ setuptools/_vendor/jaraco/context/__init__.py,sha256=br1ydYGo1Xr_Pu1anuEdd-QrjUiz_EY5L_5E4C03L4w,9809
339
+ setuptools/_vendor/jaraco/context/__pycache__/__init__.cpython-313.pyc,,
340
+ setuptools/_vendor/jaraco/context/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
341
+ setuptools/_vendor/jaraco/functools/__init__.py,sha256=ZJx9cMs2Nvk2xGUl8OjVGkpjdOaNlSzJrN4dGglgX2g,18599
342
+ setuptools/_vendor/jaraco/functools/__init__.pyi,sha256=K4DcbnYIHE5QlMxqf9-cVp-WhycrhuTao4J7O7TMq4Y,3907
343
+ setuptools/_vendor/jaraco/functools/__pycache__/__init__.cpython-313.pyc,,
344
+ setuptools/_vendor/jaraco/functools/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
345
+ setuptools/_vendor/jaraco/text/Lorem ipsum.txt,sha256=N_7c_79zxOufBY9HZ3yzMgOkNv-TkOTTio4BydrSjgs,1335
346
+ setuptools/_vendor/jaraco/text/__init__.py,sha256=lazNYXo8IhOR1bFigLAyGiiQao6jtO3KGWh8bZZPx3c,16762
347
+ setuptools/_vendor/jaraco/text/__pycache__/__init__.cpython-313.pyc,,
348
+ setuptools/_vendor/jaraco/text/__pycache__/layouts.cpython-313.pyc,,
349
+ setuptools/_vendor/jaraco/text/__pycache__/show-newlines.cpython-313.pyc,,
350
+ setuptools/_vendor/jaraco/text/__pycache__/strip-prefix.cpython-313.pyc,,
351
+ setuptools/_vendor/jaraco/text/__pycache__/to-dvorak.cpython-313.pyc,,
352
+ setuptools/_vendor/jaraco/text/__pycache__/to-qwerty.cpython-313.pyc,,
353
+ setuptools/_vendor/jaraco/text/layouts.py,sha256=HTC8aSTLZ7uXipyOXapRMC158juecjK6RVwitfmZ9_w,643
354
+ setuptools/_vendor/jaraco/text/show-newlines.py,sha256=jT0vp4gLhG20hX2lTB-zKo_i3NgKzj79yRAdz4eMzIM,903
355
+ setuptools/_vendor/jaraco/text/strip-prefix.py,sha256=NfVXV8JVNo6nqcuYASfMV7_y4Eo8zMQqlCOGvAnRIVw,412
356
+ setuptools/_vendor/jaraco/text/to-dvorak.py,sha256=36nPPsiifwv6RfpAb--3zpgbIx8ohnnI1aR29IJTO9s,118
357
+ setuptools/_vendor/jaraco/text/to-qwerty.py,sha256=IQoFY9v7vLTEybcput4KBYm_5GR35pmtgZ_xyrmdTgI,118
358
+ setuptools/_vendor/jaraco_context-6.1.0.dist-info/INSTALLER,sha256=5hhM4Q4mYTT9z6QB6PGpUAW81PGNFrYrdXMj4oM_6ak,2
359
+ setuptools/_vendor/jaraco_context-6.1.0.dist-info/METADATA,sha256=BDXr_FIFXFqZdO0gwXG2RUOD6vnbsVCIFLp62XxZ1xI,4270
360
+ setuptools/_vendor/jaraco_context-6.1.0.dist-info/RECORD,sha256=RZnYds60K37vA6o54jXE6-q2rqJAnb5jRJaFI5PR-Dc,777
361
+ setuptools/_vendor/jaraco_context-6.1.0.dist-info/REQUESTED,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
362
+ setuptools/_vendor/jaraco_context-6.1.0.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
363
+ setuptools/_vendor/jaraco_context-6.1.0.dist-info/licenses/LICENSE,sha256=l1WhhRlmbl8PTK49qtPXASvK5IpgCzEjfXXp_hNOZoM,1076
364
+ setuptools/_vendor/jaraco_context-6.1.0.dist-info/top_level.txt,sha256=0JnN3LfXH4LIRfXL-QFOGCJzQWZO3ELx4R1d_louoQM,7
365
+ setuptools/_vendor/jaraco_functools-4.4.0.dist-info/INSTALLER,sha256=5hhM4Q4mYTT9z6QB6PGpUAW81PGNFrYrdXMj4oM_6ak,2
366
+ setuptools/_vendor/jaraco_functools-4.4.0.dist-info/METADATA,sha256=LnnajcNGmSSr46yLIqP-tWkqeb-fR7vIa2U11hhkGEk,2960
367
+ setuptools/_vendor/jaraco_functools-4.4.0.dist-info/RECORD,sha256=uq_S1tlMG95FPkyAWsBVEdxTmG4KY7AvZ07w94i-wUY,882
368
+ setuptools/_vendor/jaraco_functools-4.4.0.dist-info/REQUESTED,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
369
+ setuptools/_vendor/jaraco_functools-4.4.0.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
370
+ setuptools/_vendor/jaraco_functools-4.4.0.dist-info/licenses/LICENSE,sha256=WlfLTbheKi3YjCkGKJCK3VfjRRRJ4KmnH9-zh3b9dZ0,1076
371
+ setuptools/_vendor/jaraco_functools-4.4.0.dist-info/top_level.txt,sha256=0JnN3LfXH4LIRfXL-QFOGCJzQWZO3ELx4R1d_louoQM,7
372
+ setuptools/_vendor/more_itertools-10.8.0.dist-info/INSTALLER,sha256=5hhM4Q4mYTT9z6QB6PGpUAW81PGNFrYrdXMj4oM_6ak,2
373
+ setuptools/_vendor/more_itertools-10.8.0.dist-info/METADATA,sha256=arNRUUWr5YsGfwh8hnYxz0z11lP-2BuWQu4SCGw5BLg,39413
374
+ setuptools/_vendor/more_itertools-10.8.0.dist-info/RECORD,sha256=ntGxNMCqg3IvNumfORiqlhDOOgpRTXk7u3SjaNRBoB0,1095
375
+ setuptools/_vendor/more_itertools-10.8.0.dist-info/REQUESTED,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
376
+ setuptools/_vendor/more_itertools-10.8.0.dist-info/WHEEL,sha256=G2gURzTEtmeR8nrdXUJfNiB3VYVxigPQ-bEQujpNiNs,82
377
+ setuptools/_vendor/more_itertools-10.8.0.dist-info/licenses/LICENSE,sha256=CfHIyelBrz5YTVlkHqm4fYPAyw_QB-te85Gn4mQ8GkY,1053
378
+ setuptools/_vendor/more_itertools/__init__.py,sha256=5F7E_zpoGcEBW_T_3WE0WYYt8j-gJodIuiBcOJxrOv8,149
379
+ setuptools/_vendor/more_itertools/__init__.pyi,sha256=5B3eTzON1BBuOLob1vCflyEb2lSd6usXQQ-Cv-hXkeA,43
380
+ setuptools/_vendor/more_itertools/__pycache__/__init__.cpython-313.pyc,,
381
+ setuptools/_vendor/more_itertools/__pycache__/more.cpython-313.pyc,,
382
+ setuptools/_vendor/more_itertools/__pycache__/recipes.cpython-313.pyc,,
383
+ setuptools/_vendor/more_itertools/more.py,sha256=mNPKKu5UI7lRL460vgm0QTCWFiGMVCMosSPxVSdibos,163690
384
+ setuptools/_vendor/more_itertools/more.pyi,sha256=fpEgNX3O66wY5cnT-s5VYDKNUpAcaCyU3iP84It3OOM,27119
385
+ setuptools/_vendor/more_itertools/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
386
+ setuptools/_vendor/more_itertools/recipes.py,sha256=Ma-kuBNZDFhaQDbIJgRmnrG86WzaupbOyUV3v8je3xw,41811
387
+ setuptools/_vendor/more_itertools/recipes.pyi,sha256=LNRwN-OL3nkMfQAqx-PPc1fBaetUObb_Z6mdePyzh1c,6226
388
+ setuptools/_vendor/packaging-26.0.dist-info/INSTALLER,sha256=5hhM4Q4mYTT9z6QB6PGpUAW81PGNFrYrdXMj4oM_6ak,2
389
+ setuptools/_vendor/packaging-26.0.dist-info/METADATA,sha256=M2K7fWom2iliuo2qpHhc0LrKwhq6kIoRlcyPWVgKJlo,3309
390
+ setuptools/_vendor/packaging-26.0.dist-info/RECORD,sha256=9QUDMzqulReAfS-02B_CfLYKpkRmb1AXaBJibWIkzl0,2113
391
+ setuptools/_vendor/packaging-26.0.dist-info/REQUESTED,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
392
+ setuptools/_vendor/packaging-26.0.dist-info/WHEEL,sha256=G2gURzTEtmeR8nrdXUJfNiB3VYVxigPQ-bEQujpNiNs,82
393
+ setuptools/_vendor/packaging-26.0.dist-info/licenses/LICENSE,sha256=ytHvW9NA1z4HS6YU0m996spceUDD2MNIUuZcSQlobEg,197
394
+ setuptools/_vendor/packaging-26.0.dist-info/licenses/LICENSE.APACHE,sha256=DVQuDIgE45qn836wDaWnYhSdxoLXgpRRKH4RuTjpRZQ,10174
395
+ setuptools/_vendor/packaging-26.0.dist-info/licenses/LICENSE.BSD,sha256=tw5-m3QvHMb5SLNMFqo5_-zpQZY2S8iP8NIYDwAo-sU,1344
396
+ setuptools/_vendor/packaging/__init__.py,sha256=y4lVbpeBzCGk-IPDw5BGBZ_b0P3ukEEJZAbGYc6Ey8c,494
397
+ setuptools/_vendor/packaging/__pycache__/__init__.cpython-313.pyc,,
398
+ setuptools/_vendor/packaging/__pycache__/_elffile.cpython-313.pyc,,
399
+ setuptools/_vendor/packaging/__pycache__/_manylinux.cpython-313.pyc,,
400
+ setuptools/_vendor/packaging/__pycache__/_musllinux.cpython-313.pyc,,
401
+ setuptools/_vendor/packaging/__pycache__/_parser.cpython-313.pyc,,
402
+ setuptools/_vendor/packaging/__pycache__/_structures.cpython-313.pyc,,
403
+ setuptools/_vendor/packaging/__pycache__/_tokenizer.cpython-313.pyc,,
404
+ setuptools/_vendor/packaging/__pycache__/markers.cpython-313.pyc,,
405
+ setuptools/_vendor/packaging/__pycache__/metadata.cpython-313.pyc,,
406
+ setuptools/_vendor/packaging/__pycache__/pylock.cpython-313.pyc,,
407
+ setuptools/_vendor/packaging/__pycache__/requirements.cpython-313.pyc,,
408
+ setuptools/_vendor/packaging/__pycache__/specifiers.cpython-313.pyc,,
409
+ setuptools/_vendor/packaging/__pycache__/tags.cpython-313.pyc,,
410
+ setuptools/_vendor/packaging/__pycache__/utils.cpython-313.pyc,,
411
+ setuptools/_vendor/packaging/__pycache__/version.cpython-313.pyc,,
412
+ setuptools/_vendor/packaging/_elffile.py,sha256=-sKkptYqzYw2-x3QByJa5mB4rfPWu1pxkZHRx1WAFCY,3211
413
+ setuptools/_vendor/packaging/_manylinux.py,sha256=Hf6nB0cOrayEs96-p3oIXAgGnFquv20DO5l-o2_Xnv0,9559
414
+ setuptools/_vendor/packaging/_musllinux.py,sha256=Z6swjH3MA7XS3qXnmMN7QPhqP3fnoYI0eQ18e9-HgAE,2707
415
+ setuptools/_vendor/packaging/_parser.py,sha256=U_DajsEx2VoC_F46fSVV3hDKNCWoQYkPkasO3dld0ig,10518
416
+ setuptools/_vendor/packaging/_structures.py,sha256=Hn49Ta8zV9Wo8GiCL8Nl2ARZY983Un3pruZGVNldPwE,1514
417
+ setuptools/_vendor/packaging/_tokenizer.py,sha256=M8EwNIdXeL9NMFuFrQtiOKwjka_xFx8KjRQnfE8O_z8,5421
418
+ setuptools/_vendor/packaging/licenses/__init__.py,sha256=TwXLHZCXwSgdFwRLPxW602T6mSieunSFHM6fp8pgW78,5819
419
+ setuptools/_vendor/packaging/licenses/__pycache__/__init__.cpython-313.pyc,,
420
+ setuptools/_vendor/packaging/licenses/__pycache__/_spdx.cpython-313.pyc,,
421
+ setuptools/_vendor/packaging/licenses/_spdx.py,sha256=WW7DXiyg68up_YND_wpRYlr1SHhiV4FfJLQffghhMxQ,51122
422
+ setuptools/_vendor/packaging/markers.py,sha256=ZX-cLvW1S3cZcEc0fHI4z7zSx5U2T19yMpDP_mE-CYw,12771
423
+ setuptools/_vendor/packaging/metadata.py,sha256=CWVZpN_HfoYMSSDuCP7igOvGgqA9AOmpW8f3qTisfnc,39360
424
+ setuptools/_vendor/packaging/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
425
+ setuptools/_vendor/packaging/pylock.py,sha256=-R1uNfJ4PaLto7Mg62YsGOHgvskuiIEqPwxOywl42Jk,22537
426
+ setuptools/_vendor/packaging/requirements.py,sha256=PMCAWD8aNMnVD-6uZMedhBuAVX2573eZ4yPBLXmz04I,2870
427
+ setuptools/_vendor/packaging/specifiers.py,sha256=EPNPimY_zFivthv1vdjZYz5IqkKGsnKR2yKh-EVyvZw,40797
428
+ setuptools/_vendor/packaging/tags.py,sha256=cXLV1pJD3UtJlDg7Wz3zrfdQhRZqr8jumSAKKAAd2xE,22856
429
+ setuptools/_vendor/packaging/utils.py,sha256=N4c6oZzFJy6klTZ3AnkNz7sSkJesuFWPp68LA3B5dAo,5040
430
+ setuptools/_vendor/packaging/version.py,sha256=7XWlL2IDYLwDYC0ht6cFEhapLwLWbmyo4rb7sEFj0x8,23272
431
+ setuptools/_vendor/platformdirs-4.4.0.dist-info/INSTALLER,sha256=5hhM4Q4mYTT9z6QB6PGpUAW81PGNFrYrdXMj4oM_6ak,2
432
+ setuptools/_vendor/platformdirs-4.4.0.dist-info/METADATA,sha256=u8UhbV9Md7-8VyJyZNUuZrzN5xzPeedeGmBG0CnTAiM,12831
433
+ setuptools/_vendor/platformdirs-4.4.0.dist-info/RECORD,sha256=PQ0vHMAYWTxNi6ojlbrwscHGRbvYwYzQZPSctOTJXqA,1218
434
+ setuptools/_vendor/platformdirs-4.4.0.dist-info/REQUESTED,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
435
+ setuptools/_vendor/platformdirs-4.4.0.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
436
+ setuptools/_vendor/platformdirs-4.4.0.dist-info/licenses/LICENSE,sha256=KeD9YukphQ6G6yjD_czwzv30-pSHkBHP-z0NS-1tTbY,1089
437
+ setuptools/_vendor/platformdirs/__init__.py,sha256=iORRy6_lZ9tXLvO0W6fJPn8QV7F532ivl-f2WGmabBc,22284
438
+ setuptools/_vendor/platformdirs/__main__.py,sha256=HnsUQHpiBaiTxwcmwVw-nFaPdVNZtQIdi1eWDtI-MzI,1493
439
+ setuptools/_vendor/platformdirs/__pycache__/__init__.cpython-313.pyc,,
440
+ setuptools/_vendor/platformdirs/__pycache__/__main__.cpython-313.pyc,,
441
+ setuptools/_vendor/platformdirs/__pycache__/android.cpython-313.pyc,,
442
+ setuptools/_vendor/platformdirs/__pycache__/api.cpython-313.pyc,,
443
+ setuptools/_vendor/platformdirs/__pycache__/macos.cpython-313.pyc,,
444
+ setuptools/_vendor/platformdirs/__pycache__/unix.cpython-313.pyc,,
445
+ setuptools/_vendor/platformdirs/__pycache__/version.cpython-313.pyc,,
446
+ setuptools/_vendor/platformdirs/__pycache__/windows.cpython-313.pyc,,
447
+ setuptools/_vendor/platformdirs/android.py,sha256=r0DshVBf-RO1jXJGX8C4Til7F1XWt-bkdWMgmvEiaYg,9013
448
+ setuptools/_vendor/platformdirs/api.py,sha256=wPHOlwOsfz2oqQZ6A2FcCu5kEAj-JondzoNOHYFQ0h8,9281
449
+ setuptools/_vendor/platformdirs/macos.py,sha256=0XoOgin1NK7Qki7iskD-oS8xKxw6bXgoKEgdqpCRAFQ,6322
450
+ setuptools/_vendor/platformdirs/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
451
+ setuptools/_vendor/platformdirs/unix.py,sha256=WZmkUA--L3JNRGmz32s35YfoD3ica6xKIPdCV_HhLcs,10458
452
+ setuptools/_vendor/platformdirs/version.py,sha256=i31fi3nNO19D2FdSx8aldD7IFLSqm2YrAo6SmkV0FLM,704
453
+ setuptools/_vendor/platformdirs/windows.py,sha256=IFpiohUBwxPtCzlyKwNtxyW4Jk8haa6W8o59mfrDXVo,10125
454
+ setuptools/_vendor/tomli-2.4.0.dist-info/INSTALLER,sha256=5hhM4Q4mYTT9z6QB6PGpUAW81PGNFrYrdXMj4oM_6ak,2
455
+ setuptools/_vendor/tomli-2.4.0.dist-info/METADATA,sha256=9awKH4-6kItGRs1lUwnpGq2Wm2eHYWrFccpGKjgy_84,10567
456
+ setuptools/_vendor/tomli-2.4.0.dist-info/RECORD,sha256=IlQwzpVkDo1Pzbk82uL8ONaFrsAW0OKT1fuZppWIb-0,822
457
+ setuptools/_vendor/tomli-2.4.0.dist-info/REQUESTED,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
458
+ setuptools/_vendor/tomli-2.4.0.dist-info/WHEEL,sha256=G2gURzTEtmeR8nrdXUJfNiB3VYVxigPQ-bEQujpNiNs,82
459
+ setuptools/_vendor/tomli-2.4.0.dist-info/licenses/LICENSE,sha256=uAgWsNUwuKzLTCIReDeQmEpuO2GSLCte6S8zcqsnQv4,1072
460
+ setuptools/_vendor/tomli/__init__.py,sha256=ahtDjGJA2M_wWVvGpzx4YJtWxrWBx6qE-GH5-UYoECA,314
461
+ setuptools/_vendor/tomli/__pycache__/__init__.cpython-313.pyc,,
462
+ setuptools/_vendor/tomli/__pycache__/_parser.cpython-313.pyc,,
463
+ setuptools/_vendor/tomli/__pycache__/_re.cpython-313.pyc,,
464
+ setuptools/_vendor/tomli/__pycache__/_types.cpython-313.pyc,,
465
+ setuptools/_vendor/tomli/_parser.py,sha256=txeATLE3zHyZ-ushXtYfrZ3LoIs7JzQF2W2KL1gwJPg,25958
466
+ setuptools/_vendor/tomli/_re.py,sha256=oSNZ_ilFI6chEuQ01YRSoUydBQr_okF_mSdHTkFmv90,3396
467
+ setuptools/_vendor/tomli/_types.py,sha256=-GTG2VUqkpxwMqzmVO4F7ybKddIbAnuAHXfmWQcTi3Q,254
468
+ setuptools/_vendor/tomli/py.typed,sha256=8PjyZ1aVoQpRVvt71muvuq5qE-jTFZkK-GLHkhdebmc,26
469
+ setuptools/_vendor/wheel-0.46.3.dist-info/INSTALLER,sha256=5hhM4Q4mYTT9z6QB6PGpUAW81PGNFrYrdXMj4oM_6ak,2
470
+ setuptools/_vendor/wheel-0.46.3.dist-info/METADATA,sha256=IpEKqXyonLzCCgGeJ_4xNgt5KaS9ZsoNMQ-ZpE9szTU,2410
471
+ setuptools/_vendor/wheel-0.46.3.dist-info/RECORD,sha256=sCl8OtoXuHJ-Fd3W0eOMipCpl_d5_Pl4mW9v7GLstwI,1734
472
+ setuptools/_vendor/wheel-0.46.3.dist-info/REQUESTED,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
473
+ setuptools/_vendor/wheel-0.46.3.dist-info/WHEEL,sha256=G2gURzTEtmeR8nrdXUJfNiB3VYVxigPQ-bEQujpNiNs,82
474
+ setuptools/_vendor/wheel-0.46.3.dist-info/entry_points.txt,sha256=JJdtSAGTvMLbIkTVZUAMvGKO39FtWfCVF8mp_NH6e4g,110
475
+ setuptools/_vendor/wheel-0.46.3.dist-info/licenses/LICENSE.txt,sha256=MMI2GGeRCPPo6h0qZYx8pBe9_IkcmO8aifpP8MmChlQ,1107
476
+ setuptools/_vendor/wheel/__init__.py,sha256=UweKvhe4SyP7zFyDoYo8BOuwTA6q3-_WpMmY2NNO54c,59
477
+ setuptools/_vendor/wheel/__main__.py,sha256=_83wl9tyGU2cHiqfudpubGHdRL5uonPXnzeznznkxzs,512
478
+ setuptools/_vendor/wheel/__pycache__/__init__.cpython-313.pyc,,
479
+ setuptools/_vendor/wheel/__pycache__/__main__.cpython-313.pyc,,
480
+ setuptools/_vendor/wheel/__pycache__/_bdist_wheel.cpython-313.pyc,,
481
+ setuptools/_vendor/wheel/__pycache__/_metadata.cpython-313.pyc,,
482
+ setuptools/_vendor/wheel/__pycache__/_setuptools_logging.cpython-313.pyc,,
483
+ setuptools/_vendor/wheel/__pycache__/bdist_wheel.cpython-313.pyc,,
484
+ setuptools/_vendor/wheel/__pycache__/macosx_libfile.cpython-313.pyc,,
485
+ setuptools/_vendor/wheel/__pycache__/metadata.cpython-313.pyc,,
486
+ setuptools/_vendor/wheel/__pycache__/wheelfile.cpython-313.pyc,,
487
+ setuptools/_vendor/wheel/_bdist_wheel.py,sha256=bpmNa7_s-CYFkVgXf9ENAYTiJ01XBhRW4pxH1T8XYsI,21729
488
+ setuptools/_vendor/wheel/_commands/__init__.py,sha256=fCRAQZNDyj2JLrufdgPsBlaRS_t_j_aBUMpXj09KZ4E,4432
489
+ setuptools/_vendor/wheel/_commands/__pycache__/__init__.cpython-313.pyc,,
490
+ setuptools/_vendor/wheel/_commands/__pycache__/convert.cpython-313.pyc,,
491
+ setuptools/_vendor/wheel/_commands/__pycache__/pack.cpython-313.pyc,,
492
+ setuptools/_vendor/wheel/_commands/__pycache__/tags.cpython-313.pyc,,
493
+ setuptools/_vendor/wheel/_commands/__pycache__/unpack.cpython-313.pyc,,
494
+ setuptools/_vendor/wheel/_commands/convert.py,sha256=0wSJMU0m-6LY16Om8Wmmloy-hJWFZeOmI8hT-2Z7Qms,12743
495
+ setuptools/_vendor/wheel/_commands/pack.py,sha256=o3iwjfRHl7N9ul-M2kHbewLJZnqBLAWf0tzUCwoiTMw,3078
496
+ setuptools/_vendor/wheel/_commands/tags.py,sha256=Rv2ySVb8-qX3osKp3uJgxcIMXkjt43XUD0-zvC6KvnY,4775
497
+ setuptools/_vendor/wheel/_commands/unpack.py,sha256=AjDSS23XYyCSFfifnMutinrpPv-DK_2wbNHkKAUFwgM,1016
498
+ setuptools/_vendor/wheel/_metadata.py,sha256=BP5jC9uC1hyicp7nL4FJ2LYixNFpEJIV_uMDY1KBZBg,6188
499
+ setuptools/_vendor/wheel/_setuptools_logging.py,sha256=-5KC-lne0ilOUWIDfOkqapUWGMFZhuKYDIavIZiB5kM,781
500
+ setuptools/_vendor/wheel/bdist_wheel.py,sha256=HrzYiSzMkh5ohAAhlQnYBS1p8qbr85X6F59xqxd9kBg,1102
501
+ setuptools/_vendor/wheel/macosx_libfile.py,sha256=pL0wm88jRMl_4ASgGlNg_mz69Zmv5xm8JSkjLdwyvIQ,16712
502
+ setuptools/_vendor/wheel/metadata.py,sha256=GknOO7JJiZMlcEe_fiD7nqnDTTLd0sX_-IgipM4L3-4,757
503
+ setuptools/_vendor/wheel/wheelfile.py,sha256=m_g_7TNsEp-j-xnvSr5yDLEFb1nhyObueq9Q5_1_lBA,8720
504
+ setuptools/_vendor/zipp-3.23.0.dist-info/INSTALLER,sha256=5hhM4Q4mYTT9z6QB6PGpUAW81PGNFrYrdXMj4oM_6ak,2
505
+ setuptools/_vendor/zipp-3.23.0.dist-info/METADATA,sha256=vdZ9TRbPC_O4k-fRjNPS13StuC837Zhbx3cMYHIms1s,3563
506
+ setuptools/_vendor/zipp-3.23.0.dist-info/RECORD,sha256=O_q2YKJHBPhCKOS7HOHw4_qf-A5cgGNSpiay9GDq2DY,1078
507
+ setuptools/_vendor/zipp-3.23.0.dist-info/REQUESTED,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
508
+ setuptools/_vendor/zipp-3.23.0.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
509
+ setuptools/_vendor/zipp-3.23.0.dist-info/licenses/LICENSE,sha256=WlfLTbheKi3YjCkGKJCK3VfjRRRJ4KmnH9-zh3b9dZ0,1076
510
+ setuptools/_vendor/zipp-3.23.0.dist-info/top_level.txt,sha256=iAbdoSHfaGqBfVb2XuR9JqSQHCoOsOtG6y9C_LSpqFw,5
511
+ setuptools/_vendor/zipp/__init__.py,sha256=ieXh9GIMdABjKRX_JUJtP9k5wdBLK4Mt5X4nszSkmYE,11976
512
+ setuptools/_vendor/zipp/__pycache__/__init__.cpython-313.pyc,,
513
+ setuptools/_vendor/zipp/__pycache__/_functools.cpython-313.pyc,,
514
+ setuptools/_vendor/zipp/__pycache__/glob.cpython-313.pyc,,
515
+ setuptools/_vendor/zipp/_functools.py,sha256=f6Kt9LxZ4TE-cY1lJVdXSId3memSXmH9IdgMbU-_x2k,575
516
+ setuptools/_vendor/zipp/compat/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
517
+ setuptools/_vendor/zipp/compat/__pycache__/__init__.cpython-313.pyc,,
518
+ setuptools/_vendor/zipp/compat/__pycache__/overlay.cpython-313.pyc,,
519
+ setuptools/_vendor/zipp/compat/__pycache__/py310.cpython-313.pyc,,
520
+ setuptools/_vendor/zipp/compat/__pycache__/py313.cpython-313.pyc,,
521
+ setuptools/_vendor/zipp/compat/overlay.py,sha256=oEIGAnbr8yGjuKTrVSO2ByewPui71uppbX18BLnYTKE,783
522
+ setuptools/_vendor/zipp/compat/py310.py,sha256=S7i6N9mToEn3asNb2ILyjnzvITOXrATD_J4emjyBbDU,256
523
+ setuptools/_vendor/zipp/compat/py313.py,sha256=RndvDNtuY7H2D9ecnnzcPBMZ8mZc42gmXD_IwQAXXAE,654
524
+ setuptools/_vendor/zipp/glob.py,sha256=DLV9LBsDxA6YVW82e3-tkoNrus1h4R-j3BR6VqS0AzE,3382
525
+ setuptools/archive_util.py,sha256=Tl_64hSTtc4y8x7xa98rFVUbG24oArpjzLAYGYP2_sI,7356
526
+ setuptools/build_meta.py,sha256=x3a7i1m4K6gGYC03yj20LRnEtvZpZjetXCJbpgNo6Cg,20234
527
+ setuptools/cli-32.exe,sha256=MqzBvFQxFsviz_EMuGd3LfLyVP8mNMhwrvC0bEtpb9s,11776
528
+ setuptools/cli-64.exe,sha256=u7PeVwdinmpgoMI4zUd7KPB_AGaYL9qVP6b87DkHOko,14336
529
+ setuptools/cli-arm64.exe,sha256=uafQjaiA36yLz1SOuksG-1m28JsX0zFIoPZhgyiSbGE,13824
530
+ setuptools/cli.exe,sha256=MqzBvFQxFsviz_EMuGd3LfLyVP8mNMhwrvC0bEtpb9s,11776
531
+ setuptools/command/__init__.py,sha256=wdSrlNR0P6nCz9_oFtCAiAkeFJMsZa1jPcpXT53f0SM,803
532
+ setuptools/command/__pycache__/__init__.cpython-313.pyc,,
533
+ setuptools/command/__pycache__/_requirestxt.cpython-313.pyc,,
534
+ setuptools/command/__pycache__/alias.cpython-313.pyc,,
535
+ setuptools/command/__pycache__/bdist_egg.cpython-313.pyc,,
536
+ setuptools/command/__pycache__/bdist_rpm.cpython-313.pyc,,
537
+ setuptools/command/__pycache__/bdist_wheel.cpython-313.pyc,,
538
+ setuptools/command/__pycache__/build.cpython-313.pyc,,
539
+ setuptools/command/__pycache__/build_clib.cpython-313.pyc,,
540
+ setuptools/command/__pycache__/build_ext.cpython-313.pyc,,
541
+ setuptools/command/__pycache__/build_py.cpython-313.pyc,,
542
+ setuptools/command/__pycache__/develop.cpython-313.pyc,,
543
+ setuptools/command/__pycache__/dist_info.cpython-313.pyc,,
544
+ setuptools/command/__pycache__/easy_install.cpython-313.pyc,,
545
+ setuptools/command/__pycache__/editable_wheel.cpython-313.pyc,,
546
+ setuptools/command/__pycache__/egg_info.cpython-313.pyc,,
547
+ setuptools/command/__pycache__/install.cpython-313.pyc,,
548
+ setuptools/command/__pycache__/install_egg_info.cpython-313.pyc,,
549
+ setuptools/command/__pycache__/install_lib.cpython-313.pyc,,
550
+ setuptools/command/__pycache__/install_scripts.cpython-313.pyc,,
551
+ setuptools/command/__pycache__/rotate.cpython-313.pyc,,
552
+ setuptools/command/__pycache__/saveopts.cpython-313.pyc,,
553
+ setuptools/command/__pycache__/sdist.cpython-313.pyc,,
554
+ setuptools/command/__pycache__/setopt.cpython-313.pyc,,
555
+ setuptools/command/__pycache__/test.cpython-313.pyc,,
556
+ setuptools/command/_requirestxt.py,sha256=ItYMTJGh_i5TlQstX_nFopqEhkC4PJFadBL2Zd3V670,4228
557
+ setuptools/command/alias.py,sha256=vVxEYVEFMTZznxuXLg-62Y07VV2U-rfhVqmqhTc62Cg,2366
558
+ setuptools/command/bdist_egg.py,sha256=1kWCzqsiDUGw-HiHu6aGcH16Cf7TjV8oe86ILNLLHTM,16832
559
+ setuptools/command/bdist_rpm.py,sha256=LyqI49w48SKk0FmuHsE9MLzX1SuXjL7YMNbZMFZqFII,1435
560
+ setuptools/command/bdist_wheel.py,sha256=2TMl21f7WWeH3m0NhJLVZPVOSWE0w-wZcG2pFseP8Qw,22210
561
+ setuptools/command/build.py,sha256=eI7STMERGGZEpzk1tvJN8p9IOjAAXMcGLzljv2mwI3M,6052
562
+ setuptools/command/build_clib.py,sha256=AbgpPIF_3qL8fZr3JIebI-WHTMTBiMfrFkVQz8K40G4,4528
563
+ setuptools/command/build_ext.py,sha256=SaurTvvtJuOSOD8cm_6Wj1T0DFiyl5Nazv4GYINAgWA,18270
564
+ setuptools/command/build_py.py,sha256=eHhfo9z7Qf79vSzrCnq-oEXayQC0R_nx3hWaTgWGv5M,15826
565
+ setuptools/command/develop.py,sha256=TYKWIzfv3c3wjAYhH5UD8tW6S6ozZi_fpF6IJILm8Kg,1751
566
+ setuptools/command/dist_info.py,sha256=HU752iLLmmYMHbsDBgz2ubRjkgJobugOp8H71LzzDys,3450
567
+ setuptools/command/easy_install.py,sha256=XrN5cV51mfzbCDoapZ6iT8nCzaLpumdwJYRKeMHEjCQ,780
568
+ setuptools/command/editable_wheel.py,sha256=xJOPl_0s5DbwpeLw-SNh75mvEnmwE7OFpnpChlOaNgg,34862
569
+ setuptools/command/egg_info.py,sha256=_yZYJz5CrLh0aYeT2GXBp6bjF0a0QgYvoDR3uBdKJZc,25754
570
+ setuptools/command/install.py,sha256=4x2hiNgBGQrFEXKuPBQMrb8ecSwIfYF4TYHZQLjPVAg,5066
571
+ setuptools/command/install_egg_info.py,sha256=gYOkfDM-G0agy2aMCE8HzreIi4LzUy6acZ6Ka-rKahQ,2020
572
+ setuptools/command/install_lib.py,sha256=9n1_U83eHcERL_a_rv_LhHCkhXlLdqyZ4SdBow-9qcE,4319
573
+ setuptools/command/install_scripts.py,sha256=ZYfF_-viovV5HSLsRzBlNQv5pHv2H0t2ZnL5qzZ4xfM,2445
574
+ setuptools/command/rotate.py,sha256=PywuJoufmiO_5JykOg-oatrYsBnZfA0pG1HJy7Bsb9Q,2134
575
+ setuptools/command/saveopts.py,sha256=k9hiQ_wOKweXWgBWV548PISmFKfYJkV2XHhi92ejz5o,678
576
+ setuptools/command/sdist.py,sha256=nS2xogcTfQZwbZH1AQ5WYh13KCvNda9xwUT57sVxTec,7426
577
+ setuptools/command/setopt.py,sha256=MCM9SM92LwGUC-E2nnvQxX8Yf2ukMj1YAa6KCRlqt_8,5047
578
+ setuptools/command/test.py,sha256=x9z3DDCQi-_3-TRf8yNeQ9QH-G6yR1au7kX0ijedKqU,1400
579
+ setuptools/compat/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
580
+ setuptools/compat/__pycache__/__init__.cpython-313.pyc,,
581
+ setuptools/compat/__pycache__/py310.cpython-313.pyc,,
582
+ setuptools/compat/__pycache__/py311.cpython-313.pyc,,
583
+ setuptools/compat/__pycache__/py312.cpython-313.pyc,,
584
+ setuptools/compat/__pycache__/py39.cpython-313.pyc,,
585
+ setuptools/compat/py310.py,sha256=JwjQZ3cNTizfpDLNl9GLsUGzBr-tVlMPxmMYVDTlhiI,344
586
+ setuptools/compat/py311.py,sha256=e6tJAFwZEP82hmMBl10HYeSypelo_Ti2wTjKZVKLwOE,790
587
+ setuptools/compat/py312.py,sha256=vYKVtdrdOTsO_R90dJkEXsFwfMJFuIFJflhIgHrjJ-Y,366
588
+ setuptools/compat/py39.py,sha256=BJMtnkfcqyTfccqjYQxfoRtU2nTnWaEESBVkshTiXqY,493
589
+ setuptools/config/NOTICE,sha256=Ld3wiBgpejuJ1D2V_2WdjahXQRCMkTbfo6TYVsBiO9g,493
590
+ setuptools/config/__init__.py,sha256=aiPnL9BJn1O6MfmuNXyn8W2Lp8u9qizRVqwPiOdPIjY,1499
591
+ setuptools/config/__pycache__/__init__.cpython-313.pyc,,
592
+ setuptools/config/__pycache__/_apply_pyprojecttoml.cpython-313.pyc,,
593
+ setuptools/config/__pycache__/expand.cpython-313.pyc,,
594
+ setuptools/config/__pycache__/pyprojecttoml.cpython-313.pyc,,
595
+ setuptools/config/__pycache__/setupcfg.cpython-313.pyc,,
596
+ setuptools/config/_apply_pyprojecttoml.py,sha256=jIpYyQNibH64jOllJhVUtVSpKHySylKJ6IMW7GX3_GI,19442
597
+ setuptools/config/_validate_pyproject/NOTICE,sha256=Ccm86pXKCG-Lxb7RdOQLyDWyl9QPtfhru7Vw_gpVgac,18737
598
+ setuptools/config/_validate_pyproject/__init__.py,sha256=dnp6T7ePP1R5z4OuC7Fd2dkFlIrtIfizUfvpGJP6nz0,1042
599
+ setuptools/config/_validate_pyproject/__pycache__/__init__.cpython-313.pyc,,
600
+ setuptools/config/_validate_pyproject/__pycache__/error_reporting.cpython-313.pyc,,
601
+ setuptools/config/_validate_pyproject/__pycache__/extra_validations.cpython-313.pyc,,
602
+ setuptools/config/_validate_pyproject/__pycache__/fastjsonschema_exceptions.cpython-313.pyc,,
603
+ setuptools/config/_validate_pyproject/__pycache__/fastjsonschema_validations.cpython-313.pyc,,
604
+ setuptools/config/_validate_pyproject/__pycache__/formats.cpython-313.pyc,,
605
+ setuptools/config/_validate_pyproject/error_reporting.py,sha256=5jGbcg7zQCEiEA8fAilSkaXnEfXyD7fq5CG-OkmFZmk,11803
606
+ setuptools/config/_validate_pyproject/extra_validations.py,sha256=lQnu5wASBL8iDToODpw5sX21kev01_PjUIGldu1proY,5066
607
+ setuptools/config/_validate_pyproject/fastjsonschema_exceptions.py,sha256=w749JgqKi8clBFcObdcbZVqsmF4oJ_QByhZ1SGbUFNw,1612
608
+ setuptools/config/_validate_pyproject/fastjsonschema_validations.py,sha256=XjMh9s9ezEzqM9yoZ4KoUQ7jCoHAqsRl-KSf30Rlgxo,365819
609
+ setuptools/config/_validate_pyproject/formats.py,sha256=LNRajleuZtyP8BWhMcbuA92APppdiItpEpEeqCjA54Q,15373
610
+ setuptools/config/distutils.schema.json,sha256=Tcp32kRnhwORGw_9p6GEi08lj2h15tQRzOYBbzGmcBU,972
611
+ setuptools/config/expand.py,sha256=STKJ6oNAo6avEBVUiR25WpfIthVPVZQG65Z-5-t78QI,16064
612
+ setuptools/config/pyprojecttoml.py,sha256=UDrCvQGO2c8WvrbwTYUZOdTRhDPFbVNZo5i72sbJ3D0,18786
613
+ setuptools/config/setupcfg.py,sha256=Wnfbrk6D0GQV-Z2AE0b0KnL-WGrw-KQUcsem3naImBw,26695
614
+ setuptools/config/setuptools.schema.json,sha256=Bp6tTwRvSy96_dCd5OqKTifuIcTWOd5wDGRCrwYBzjQ,16047
615
+ setuptools/depends.py,sha256=jKYfjmt_2ZQYVghb8L9bU7LJ6erHJ5ze-K_fKV1BMXk,5965
616
+ setuptools/discovery.py,sha256=XYIeFN20WEsEtssmpzCFlnda-Qxilj8KlLYKaJphAto,21286
617
+ setuptools/dist.py,sha256=aa181F7kGdfeL6To3X2ZvQ8zSiQCSacWRJdhL0v49xk,45184
618
+ setuptools/errors.py,sha256=gY2x2PIaIgy01yRANRC-zcCwxDCqCScgJoCOZFe0yio,3024
619
+ setuptools/extension.py,sha256=GbCxJ9rRk2rZcXS4qgmnzWNG36HlhLfUEvNwB-OKGk8,6818
620
+ setuptools/glob.py,sha256=AC_B33DY8g-CHELxDsJrtwFrpiucSAZsakPFdSOQzhc,6062
621
+ setuptools/gui-32.exe,sha256=hdrh6V13hF8stZvKw9Sv50u-TJGpvMW_SnHNQxBNvnw,11776
622
+ setuptools/gui-64.exe,sha256=NHG2FA6txkEid9u-_j_vjDRaDxpZd2CGuAo2GMOoPjs,14336
623
+ setuptools/gui-arm64.exe,sha256=5pT0dDQFyLWSb_RX22_n8aEt7HwWqcOGR4TT9OB64Jc,13824
624
+ setuptools/gui.exe,sha256=hdrh6V13hF8stZvKw9Sv50u-TJGpvMW_SnHNQxBNvnw,11776
625
+ setuptools/installer.py,sha256=Wy_hG1g1r-45E6IWh7lvQ0Pk0QHNl6JJbu3hQmr1_Ek,5184
626
+ setuptools/launch.py,sha256=IBb5lEv69CyuZ9ewIrmKlXh154kdLmP29LKfTMkximE,820
627
+ setuptools/launcher manifest.xml,sha256=xlLbjWrB01tKC0-hlVkOKkiSPbzMml2eOPtJ_ucCnbE,628
628
+ setuptools/logging.py,sha256=W16iHJ1HcCXYQ0RxyrEfJ83FT4175tCtoYg-E6uSpVI,1261
629
+ setuptools/modified.py,sha256=ZwbfBfCFP88ltvbv_dJDz-t1LsQjnM-JUpgZnnQZjjM,568
630
+ setuptools/monkey.py,sha256=nOD5vgLG7IpKAs7LrnpJxGPaCW54Rzj-onJmm91otoY,3733
631
+ setuptools/msvc.py,sha256=IdCsRhdJLeyZG3gyDrGx2DqZymoay3ndBXC77taHHCA,42909
632
+ setuptools/namespaces.py,sha256=eE1hI5X86TNWvY5u5BC1WiGiOrrJyGOv0pp9vycCmK0,3045
633
+ setuptools/script (dev).tmpl,sha256=RUzQzCQUaXtwdLtYHWYbIQmOaES5Brqq1FvUA_tu-5I,218
634
+ setuptools/script.tmpl,sha256=WGTt5piezO27c-Dbx6l5Q4T3Ff20A5z7872hv3aAhYY,138
635
+ setuptools/tests/__init__.py,sha256=AnBfls2iJbTDQzmMKeLRt-9lxhaOHUVOZEgXv89Uwvs,335
636
+ setuptools/tests/__pycache__/__init__.cpython-313.pyc,,
637
+ setuptools/tests/__pycache__/contexts.cpython-313.pyc,,
638
+ setuptools/tests/__pycache__/environment.cpython-313.pyc,,
639
+ setuptools/tests/__pycache__/fixtures.cpython-313.pyc,,
640
+ setuptools/tests/__pycache__/mod_with_constant.cpython-313.pyc,,
641
+ setuptools/tests/__pycache__/namespaces.cpython-313.pyc,,
642
+ setuptools/tests/__pycache__/script-with-bom.cpython-313.pyc,,
643
+ setuptools/tests/__pycache__/test_archive_util.cpython-313.pyc,,
644
+ setuptools/tests/__pycache__/test_bdist_deprecations.cpython-313.pyc,,
645
+ setuptools/tests/__pycache__/test_bdist_egg.cpython-313.pyc,,
646
+ setuptools/tests/__pycache__/test_bdist_wheel.cpython-313.pyc,,
647
+ setuptools/tests/__pycache__/test_build.cpython-313.pyc,,
648
+ setuptools/tests/__pycache__/test_build_clib.cpython-313.pyc,,
649
+ setuptools/tests/__pycache__/test_build_ext.cpython-313.pyc,,
650
+ setuptools/tests/__pycache__/test_build_meta.cpython-313.pyc,,
651
+ setuptools/tests/__pycache__/test_build_py.cpython-313.pyc,,
652
+ setuptools/tests/__pycache__/test_config_discovery.cpython-313.pyc,,
653
+ setuptools/tests/__pycache__/test_core_metadata.cpython-313.pyc,,
654
+ setuptools/tests/__pycache__/test_depends.cpython-313.pyc,,
655
+ setuptools/tests/__pycache__/test_develop.cpython-313.pyc,,
656
+ setuptools/tests/__pycache__/test_dist.cpython-313.pyc,,
657
+ setuptools/tests/__pycache__/test_dist_info.cpython-313.pyc,,
658
+ setuptools/tests/__pycache__/test_distutils_adoption.cpython-313.pyc,,
659
+ setuptools/tests/__pycache__/test_editable_install.cpython-313.pyc,,
660
+ setuptools/tests/__pycache__/test_egg_info.cpython-313.pyc,,
661
+ setuptools/tests/__pycache__/test_extern.cpython-313.pyc,,
662
+ setuptools/tests/__pycache__/test_find_packages.cpython-313.pyc,,
663
+ setuptools/tests/__pycache__/test_find_py_modules.cpython-313.pyc,,
664
+ setuptools/tests/__pycache__/test_glob.cpython-313.pyc,,
665
+ setuptools/tests/__pycache__/test_install_scripts.cpython-313.pyc,,
666
+ setuptools/tests/__pycache__/test_logging.cpython-313.pyc,,
667
+ setuptools/tests/__pycache__/test_manifest.cpython-313.pyc,,
668
+ setuptools/tests/__pycache__/test_namespaces.cpython-313.pyc,,
669
+ setuptools/tests/__pycache__/test_scripts.cpython-313.pyc,,
670
+ setuptools/tests/__pycache__/test_sdist.cpython-313.pyc,,
671
+ setuptools/tests/__pycache__/test_setopt.cpython-313.pyc,,
672
+ setuptools/tests/__pycache__/test_setuptools.cpython-313.pyc,,
673
+ setuptools/tests/__pycache__/test_shutil_wrapper.cpython-313.pyc,,
674
+ setuptools/tests/__pycache__/test_unicode_utils.cpython-313.pyc,,
675
+ setuptools/tests/__pycache__/test_virtualenv.cpython-313.pyc,,
676
+ setuptools/tests/__pycache__/test_warnings.cpython-313.pyc,,
677
+ setuptools/tests/__pycache__/test_wheel.cpython-313.pyc,,
678
+ setuptools/tests/__pycache__/test_windows_wrappers.cpython-313.pyc,,
679
+ setuptools/tests/__pycache__/text.cpython-313.pyc,,
680
+ setuptools/tests/__pycache__/textwrap.cpython-313.pyc,,
681
+ setuptools/tests/compat/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
682
+ setuptools/tests/compat/__pycache__/__init__.cpython-313.pyc,,
683
+ setuptools/tests/compat/__pycache__/py39.cpython-313.pyc,,
684
+ setuptools/tests/compat/py39.py,sha256=eUy7_F-6KRTOIKl-veshUu6I0EdTSdBZMh0EV0lZ1-g,135
685
+ setuptools/tests/config/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
686
+ setuptools/tests/config/__pycache__/__init__.cpython-313.pyc,,
687
+ setuptools/tests/config/__pycache__/test_apply_pyprojecttoml.cpython-313.pyc,,
688
+ setuptools/tests/config/__pycache__/test_expand.cpython-313.pyc,,
689
+ setuptools/tests/config/__pycache__/test_pyprojecttoml.cpython-313.pyc,,
690
+ setuptools/tests/config/__pycache__/test_pyprojecttoml_dynamic_deps.cpython-313.pyc,,
691
+ setuptools/tests/config/__pycache__/test_setupcfg.cpython-313.pyc,,
692
+ setuptools/tests/config/downloads/__init__.py,sha256=9ixnDEdyL_arKbUzfuiJftAj9bGxKz8M9alOFZMjx9Y,1827
693
+ setuptools/tests/config/downloads/__pycache__/__init__.cpython-313.pyc,,
694
+ setuptools/tests/config/downloads/__pycache__/preload.cpython-313.pyc,,
695
+ setuptools/tests/config/downloads/preload.py,sha256=sIGGZpY3cmMpMwiJYYYYHG2ifZJkvJgEotRFtiulV1I,450
696
+ setuptools/tests/config/setupcfg_examples.txt,sha256=cAbVvCbkFZuTUL6xRRzRgqyB0rLvJTfvw3D30glo2OE,1912
697
+ setuptools/tests/config/test_apply_pyprojecttoml.py,sha256=qBOXnCwZVQ7wTYfwq83zAAtsGGooJgFh_H9L2avrv4Y,29609
698
+ setuptools/tests/config/test_expand.py,sha256=S0oT6JvgA_oujR4YS4RUuf5gmOt1CTQV66RQDzV8xd4,8933
699
+ setuptools/tests/config/test_pyprojecttoml.py,sha256=tP7iaVmpnv3wAY2eplDLFXzfHGuvxT71SQX9O9Jrwl0,13182
700
+ setuptools/tests/config/test_pyprojecttoml_dynamic_deps.py,sha256=1MRtzcxZag-ElRwVGt0kUk4KPRA-RSwKkibO8-Vy51w,3265
701
+ setuptools/tests/config/test_setupcfg.py,sha256=iwViCQFLGVWZLgCDrBv8HKBBCj-Onr8aNdioD9_lBEo,33712
702
+ setuptools/tests/contexts.py,sha256=Ozdfc2KydF9x9wODUsdun800myLuP27uxoeT06Gbk7M,3166
703
+ setuptools/tests/environment.py,sha256=95_UtTaRiuvwYC9eXKEHbn02kDtZysvZq3UZJmPUj1I,3102
704
+ setuptools/tests/fixtures.py,sha256=jE7pIFQt91dZIUc6Btsffi8OdBqmY_7DNeWI1Stv7i8,12224
705
+ setuptools/tests/indexes/test_links_priority/external.html,sha256=eL9euOuE93JKZdqlXxBOlHbKwIuNuIdq7GBRpsaPMcU,92
706
+ setuptools/tests/indexes/test_links_priority/simple/foobar/index.html,sha256=DD-TKr7UU4zAjHHz4VexYDNSAzR27levSh1c-k3ZdLE,174
707
+ setuptools/tests/integration/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
708
+ setuptools/tests/integration/__pycache__/__init__.cpython-313.pyc,,
709
+ setuptools/tests/integration/__pycache__/helpers.cpython-313.pyc,,
710
+ setuptools/tests/integration/__pycache__/test_pbr.cpython-313.pyc,,
711
+ setuptools/tests/integration/__pycache__/test_pip_install_sdist.cpython-313.pyc,,
712
+ setuptools/tests/integration/helpers.py,sha256=ieQtGuIohqNI_RHMH0yxE602Uz4E8wysUj7XaXYH30Y,2688
713
+ setuptools/tests/integration/test_pbr.py,sha256=2eKuklFNmpnBgA_eEhYPBr6rLLG2Xm4MY6PlcmzZgGU,432
714
+ setuptools/tests/integration/test_pip_install_sdist.py,sha256=SFbvuYF_hDzt6OtsQ5GjFNnxmoJ_eElfvpYsiyyGJ-g,8256
715
+ setuptools/tests/mod_with_constant.py,sha256=X_Kj80M55w1tmQ4f7uZY91ZTALo4hKVT6EHxgYocUMQ,22
716
+ setuptools/tests/namespaces.py,sha256=HPcI3nR5MCFWXpaADIJ1fwKxymcQgBkuw87Ic5PUSAQ,2774
717
+ setuptools/tests/script-with-bom.py,sha256=hRRgIizEULGiG_ZTNoMY46HhKhxpWfy5FGcD6Qbh5fc,18
718
+ setuptools/tests/test_archive_util.py,sha256=buuKdY8XkW26Pe3IKAoBRGHG0MDumnuNoPg2WsAQzIg,845
719
+ setuptools/tests/test_bdist_deprecations.py,sha256=75Xq3gYn79LIIyusEltbHan0bEgAt2e_CaL7KLS8-KQ,775
720
+ setuptools/tests/test_bdist_egg.py,sha256=6PaYN1F3JDbIh1uK0urv7yJFcx98z5dn9SOJ8Mv91l8,1957
721
+ setuptools/tests/test_bdist_wheel.py,sha256=xGHVaggiYobkOuGwkLK2bNejcSh8z2Fiuq-ge_S-yKo,23091
722
+ setuptools/tests/test_build.py,sha256=wJgMz2hwHADcLFg-nXrwRVhus7hjmAeEGgrpIQwCGnA,798
723
+ setuptools/tests/test_build_clib.py,sha256=bX51XRAf4uO7IuHFpjePnoK8mE74N2gsoeEqF-ofgws,3123
724
+ setuptools/tests/test_build_ext.py,sha256=e4ZSxsYPB5zq1KSqGEuATZ0t0PJQzMhjjkKJ-hIjcgc,10099
725
+ setuptools/tests/test_build_meta.py,sha256=ToI7-2LUnHuIPhKN8EkDkSEfLCvLqLI6VJhqwR5pVuU,33320
726
+ setuptools/tests/test_build_py.py,sha256=SIcHFX3YNErcVkWjf0eDRuKmsO9kTymKjfK-PkOi9M0,14201
727
+ setuptools/tests/test_config_discovery.py,sha256=FqV-lOtkqaI-ayzU2zocSdD5TaRAgCZnixNDilKA6FQ,22580
728
+ setuptools/tests/test_core_metadata.py,sha256=p8mW920afKVdL8sC_Fce8zpmfWDCRylBa3dd39Y-qWo,18038
729
+ setuptools/tests/test_depends.py,sha256=yQBXoQbNQlJit6mbRVoz6Bb553f3sNrq02lZimNz5XY,424
730
+ setuptools/tests/test_develop.py,sha256=k-agNgB8DIGR8zlaYMBILu8KOPrL2plorNCexxzNm-s,3136
731
+ setuptools/tests/test_dist.py,sha256=M4FikA-vL0_lZdA_5wry2Z9CBuSugr0Pj54dBZ3peBM,8951
732
+ setuptools/tests/test_dist_info.py,sha256=EihdrU9UZkPV7d19G-K_OtOByp64GvGnf4or-f8Iq54,5005
733
+ setuptools/tests/test_distutils_adoption.py,sha256=_eynrOfyEqXFEmjUJhzpe8GXPyTUPvNSObs4qAAmBy8,5987
734
+ setuptools/tests/test_editable_install.py,sha256=o4DkoytkiL-_rzES8p1q8XYRa9-ha_m6uhrm-EWzdwI,42498
735
+ setuptools/tests/test_egg_info.py,sha256=R7nT27YhVz9oSuDyimAGerWglkbRWiMSPBs5FzcSnBM,44941
736
+ setuptools/tests/test_extern.py,sha256=rpKU6oCcksumLwf5TeKlDluFQ0TUfbPwTLQbpxcFrCU,296
737
+ setuptools/tests/test_find_packages.py,sha256=CTLAcTzWGWBLCcd2aAsUVkvO3ibrlqexFBdDKOWPoq8,7819
738
+ setuptools/tests/test_find_py_modules.py,sha256=zQjuhIG5TQN2SJPix9ARo4DL_w84Ln8QsHDUjjbrtAQ,2404
739
+ setuptools/tests/test_glob.py,sha256=P3JvpH-kXQ4BZ3zvRF-zKxOgwyWzwIaQIz0WHdxS0kk,887
740
+ setuptools/tests/test_install_scripts.py,sha256=scIrJ6a_ssKqg4vIBNaUjmAKHEYLUUZ9WKnPeKnE6gc,3433
741
+ setuptools/tests/test_logging.py,sha256=czGLLdGxUBZKXbea3A0HnSW9lf-3K_CUwaI0gDkVbOM,2096
742
+ setuptools/tests/test_manifest.py,sha256=eMg65pIA52DizB6mpktSU-b8CjwaNCS5MSgL_V1LrFI,18562
743
+ setuptools/tests/test_namespaces.py,sha256=e84seD5g6KIPVSDpawE9Ihc25Je7shooybV1flUsW20,2508
744
+ setuptools/tests/test_scripts.py,sha256=_ra506yQF7n72ROUDcz2r3CTsGsawO1m-1oqA9EQCfw,379
745
+ setuptools/tests/test_sdist.py,sha256=oKMgvBrkfTsPH5jqsrhFxRMbtUDoOy4vKfwll3kGCg0,32808
746
+ setuptools/tests/test_setopt.py,sha256=3VxxM4ATfP-P4AGnDjoWCnHr5-i9CSEQTFYU1-FTnvI,1365
747
+ setuptools/tests/test_setuptools.py,sha256=WqrZ8qbv9uJh2xzRn-wXam-YGzmG8od2spru3L3sMbg,9323
748
+ setuptools/tests/test_shutil_wrapper.py,sha256=g15E11PtZxG-InB2BWNFyH-svObXx2XcMhgMLJPuFnc,641
749
+ setuptools/tests/test_unicode_utils.py,sha256=xWfEEl8jkQCt9othUTXJfFmdyATAFggJs2tTxjbumbw,316
750
+ setuptools/tests/test_virtualenv.py,sha256=g-njC_9JTAs1YVx_1dGJ_Q6RlInO4qKVu9-XAgNb6TY,3730
751
+ setuptools/tests/test_warnings.py,sha256=zwR2zcnCeCeDqILZlJOPAcuyPHoDvGu1OtOVYiLMk74,3347
752
+ setuptools/tests/test_wheel.py,sha256=iMfVTNixu4puf6xvRYjQDw4Zg_OHVCQjSy7SztvVYqE,18722
753
+ setuptools/tests/test_windows_wrappers.py,sha256=wBjXN3iGldkzRGTgKTrx99xqUqwPJ0V-ldyiB1pWD-g,7868
754
+ setuptools/tests/text.py,sha256=a12197pMVTvB6FAWQ0ujT8fIQiLIWJlFAl1UCaDUDfg,123
755
+ setuptools/tests/textwrap.py,sha256=FNNNq_MiaEJx88PnsbJQIRxmj1qmgcAOCXXRsODPJN4,98
756
+ setuptools/unicode_utils.py,sha256=ukMGh8pEAw6F_Ezb-K5D3c-078RgA_GcF0oW6lg4lSs,3189
757
+ setuptools/version.py,sha256=WJCeUuyq74Aok2TeK9-OexZOu8XrlQy7-y0BEuWNovQ,161
758
+ setuptools/warnings.py,sha256=oY0Se5eOqje_FEyjTgonUc0XGwgsrI5cgm1kkwulz_w,3796
759
+ setuptools/wheel.py,sha256=iI-LSDrgHMlJIzQMALVlJRq3Qesgbj7xa6hWZYJyZl4,9532
760
+ setuptools/windows_support.py,sha256=wW4IYLM1Bv7Z1MaauP2xmPjyy-wkmQnXdyvXscAf9fw,726
python/Lib/site-packages/setuptools-82.0.1.dist-info/REQUESTED ADDED
File without changes
python/Lib/site-packages/setuptools-82.0.1.dist-info/WHEEL ADDED
@@ -0,0 +1,5 @@
 
 
 
 
 
 
1
+ Wheel-Version: 1.0
2
+ Generator: setuptools (82.0.1)
3
+ Root-Is-Purelib: true
4
+ Tag: py3-none-any
5
+
python/Lib/site-packages/setuptools-82.0.1.dist-info/entry_points.txt ADDED
@@ -0,0 +1,51 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ [distutils.commands]
2
+ alias = setuptools.command.alias:alias
3
+ bdist_egg = setuptools.command.bdist_egg:bdist_egg
4
+ bdist_rpm = setuptools.command.bdist_rpm:bdist_rpm
5
+ bdist_wheel = setuptools.command.bdist_wheel:bdist_wheel
6
+ build = setuptools.command.build:build
7
+ build_clib = setuptools.command.build_clib:build_clib
8
+ build_ext = setuptools.command.build_ext:build_ext
9
+ build_py = setuptools.command.build_py:build_py
10
+ develop = setuptools.command.develop:develop
11
+ dist_info = setuptools.command.dist_info:dist_info
12
+ easy_install = setuptools.command.easy_install:easy_install
13
+ editable_wheel = setuptools.command.editable_wheel:editable_wheel
14
+ egg_info = setuptools.command.egg_info:egg_info
15
+ install = setuptools.command.install:install
16
+ install_egg_info = setuptools.command.install_egg_info:install_egg_info
17
+ install_lib = setuptools.command.install_lib:install_lib
18
+ install_scripts = setuptools.command.install_scripts:install_scripts
19
+ rotate = setuptools.command.rotate:rotate
20
+ saveopts = setuptools.command.saveopts:saveopts
21
+ sdist = setuptools.command.sdist:sdist
22
+ setopt = setuptools.command.setopt:setopt
23
+
24
+ [distutils.setup_keywords]
25
+ dependency_links = setuptools.dist:assert_string_list
26
+ eager_resources = setuptools.dist:assert_string_list
27
+ entry_points = setuptools.dist:check_entry_points
28
+ exclude_package_data = setuptools.dist:check_package_data
29
+ extras_require = setuptools.dist:check_extras
30
+ include_package_data = setuptools.dist:assert_bool
31
+ install_requires = setuptools.dist:check_requirements
32
+ namespace_packages = setuptools.dist:check_nsp
33
+ package_data = setuptools.dist:check_package_data
34
+ packages = setuptools.dist:check_packages
35
+ python_requires = setuptools.dist:check_specifier
36
+ setup_requires = setuptools.dist:check_requirements
37
+ use_2to3 = setuptools.dist:invalid_unless_false
38
+ zip_safe = setuptools.dist:assert_bool
39
+
40
+ [egg_info.writers]
41
+ PKG-INFO = setuptools.command.egg_info:write_pkg_info
42
+ dependency_links.txt = setuptools.command.egg_info:overwrite_arg
43
+ eager_resources.txt = setuptools.command.egg_info:overwrite_arg
44
+ entry_points.txt = setuptools.command.egg_info:write_entries
45
+ namespace_packages.txt = setuptools.command.egg_info:overwrite_arg
46
+ requires.txt = setuptools.command.egg_info:write_requirements
47
+ top_level.txt = setuptools.command.egg_info:write_toplevel_names
48
+
49
+ [setuptools.finalize_distribution_options]
50
+ keywords = setuptools.dist:Distribution._finalize_setup_keywords
51
+ parent_finalize = setuptools.dist:_Distribution.finalize_options
python/Lib/site-packages/setuptools-82.0.1.dist-info/licenses/LICENSE ADDED
@@ -0,0 +1,17 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ Permission is hereby granted, free of charge, to any person obtaining a copy
2
+ of this software and associated documentation files (the "Software"), to
3
+ deal in the Software without restriction, including without limitation the
4
+ rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
5
+ sell copies of the Software, and to permit persons to whom the Software is
6
+ furnished to do so, subject to the following conditions:
7
+
8
+ The above copyright notice and this permission notice shall be included in
9
+ all copies or substantial portions of the Software.
10
+
11
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
12
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
13
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
14
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
15
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
16
+ FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
17
+ IN THE SOFTWARE.
python/Lib/site-packages/setuptools-82.0.1.dist-info/top_level.txt ADDED
@@ -0,0 +1,2 @@
 
 
 
1
+ _distutils_hack
2
+ setuptools
python/Lib/site-packages/setuptools/__init__.py ADDED
@@ -0,0 +1,256 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ """Extensions to the 'distutils' for large or complex distributions"""
2
+ # mypy: disable_error_code=override
3
+ # Command.reinitialize_command has an extra **kw param that distutils doesn't have
4
+ # Can't disable on the exact line because distutils doesn't exists on Python 3.12
5
+ # and mypy isn't aware of distutils_hack, causing distutils.core.Command to be Any,
6
+ # and a [unused-ignore] to be raised on 3.12+
7
+
8
+ from __future__ import annotations
9
+
10
+ import functools
11
+ import os
12
+ import sys
13
+ from abc import abstractmethod
14
+ from collections.abc import Mapping
15
+ from typing import TYPE_CHECKING, TypeVar, overload
16
+
17
+ sys.path.extend(((vendor_path := os.path.join(os.path.dirname(os.path.dirname(__file__)), 'setuptools', '_vendor')) not in sys.path) * [vendor_path]) # fmt: skip
18
+ # workaround for #4476
19
+ sys.modules.pop('backports', None)
20
+
21
+ import _distutils_hack.override # noqa: F401
22
+
23
+ from . import logging, monkey
24
+ from .depends import Require
25
+ from .discovery import PackageFinder, PEP420PackageFinder
26
+ from .dist import Distribution
27
+ from .extension import Extension
28
+ from .version import __version__ as __version__
29
+ from .warnings import SetuptoolsDeprecationWarning
30
+
31
+ import distutils.core
32
+
33
+ __all__ = [
34
+ 'setup',
35
+ 'Distribution',
36
+ 'Command',
37
+ 'Extension',
38
+ 'Require',
39
+ 'SetuptoolsDeprecationWarning',
40
+ 'find_packages',
41
+ 'find_namespace_packages',
42
+ ]
43
+
44
+ _CommandT = TypeVar("_CommandT", bound="_Command")
45
+
46
+ bootstrap_install_from = None
47
+
48
+ find_packages = PackageFinder.find
49
+ find_namespace_packages = PEP420PackageFinder.find
50
+
51
+
52
+ def _install_setup_requires(attrs):
53
+ # Note: do not use `setuptools.Distribution` directly, as
54
+ # our PEP 517 backend patch `distutils.core.Distribution`.
55
+ class MinimalDistribution(distutils.core.Distribution):
56
+ """
57
+ A minimal version of a distribution for supporting the
58
+ fetch_build_eggs interface.
59
+ """
60
+
61
+ def __init__(self, attrs: Mapping[str, object]) -> None:
62
+ _incl = 'dependency_links', 'setup_requires'
63
+ filtered = {k: attrs[k] for k in set(_incl) & set(attrs)}
64
+ super().__init__(filtered)
65
+ # Prevent accidentally triggering discovery with incomplete set of attrs
66
+ self.set_defaults._disable()
67
+
68
+ def _get_project_config_files(self, filenames=None):
69
+ """Ignore ``pyproject.toml``, they are not related to setup_requires"""
70
+ try:
71
+ cfg, _toml = super()._split_standard_project_metadata(filenames)
72
+ except Exception:
73
+ return filenames, ()
74
+ return cfg, ()
75
+
76
+ def finalize_options(self):
77
+ """
78
+ Disable finalize_options to avoid building the working set.
79
+ Ref #2158.
80
+ """
81
+
82
+ dist = MinimalDistribution(attrs)
83
+
84
+ # Honor setup.cfg's options.
85
+ dist.parse_config_files(ignore_option_errors=True)
86
+ if dist.setup_requires:
87
+ _fetch_build_eggs(dist)
88
+
89
+
90
+ def _fetch_build_eggs(dist: Distribution):
91
+ try:
92
+ dist.fetch_build_eggs(dist.setup_requires)
93
+ except Exception as ex:
94
+ msg = """
95
+ It is possible a package already installed in your system
96
+ contains an version that is invalid according to PEP 440.
97
+ You can try `pip install --use-pep517` as a workaround for this problem,
98
+ or rely on a new virtual environment.
99
+
100
+ If the problem refers to a package that is not installed yet,
101
+ please contact that package's maintainers or distributors.
102
+ """
103
+ if "InvalidVersion" in ex.__class__.__name__:
104
+ if hasattr(ex, "add_note"):
105
+ ex.add_note(msg) # PEP 678
106
+ else:
107
+ dist.announce(f"\n{msg}\n")
108
+ raise
109
+
110
+
111
+ def setup(**attrs) -> Distribution:
112
+ logging.configure()
113
+ # Make sure we have any requirements needed to interpret 'attrs'.
114
+ _install_setup_requires(attrs)
115
+ # Override return type of distutils.core.Distribution with setuptools.dist.Distribution
116
+ # (implicitly implemented via `setuptools.monkey.patch_all`).
117
+ return distutils.core.setup(**attrs) # type: ignore[return-value]
118
+
119
+
120
+ setup.__doc__ = distutils.core.setup.__doc__
121
+
122
+ if TYPE_CHECKING:
123
+ # Work around a mypy issue where type[T] can't be used as a base: https://github.com/python/mypy/issues/10962
124
+ from distutils.core import Command as _Command
125
+ else:
126
+ _Command = monkey.get_unpatched(distutils.core.Command)
127
+
128
+
129
+ class Command(_Command):
130
+ """
131
+ Setuptools internal actions are organized using a *command design pattern*.
132
+ This means that each action (or group of closely related actions) executed during
133
+ the build should be implemented as a ``Command`` subclass.
134
+
135
+ These commands are abstractions and do not necessarily correspond to a command that
136
+ can (or should) be executed via a terminal, in a CLI fashion (although historically
137
+ they would).
138
+
139
+ When creating a new command from scratch, custom defined classes **SHOULD** inherit
140
+ from ``setuptools.Command`` and implement a few mandatory methods.
141
+ Between these mandatory methods, are listed:
142
+ :meth:`initialize_options`, :meth:`finalize_options` and :meth:`run`.
143
+
144
+ A useful analogy for command classes is to think of them as subroutines with local
145
+ variables called "options". The options are "declared" in :meth:`initialize_options`
146
+ and "defined" (given their final values, aka "finalized") in :meth:`finalize_options`,
147
+ both of which must be defined by every command class. The "body" of the subroutine,
148
+ (where it does all the work) is the :meth:`run` method.
149
+ Between :meth:`initialize_options` and :meth:`finalize_options`, ``setuptools`` may set
150
+ the values for options/attributes based on user's input (or circumstance),
151
+ which means that the implementation should be careful to not overwrite values in
152
+ :meth:`finalize_options` unless necessary.
153
+
154
+ Please note that other commands (or other parts of setuptools) may also overwrite
155
+ the values of the command's options/attributes multiple times during the build
156
+ process.
157
+ Therefore it is important to consistently implement :meth:`initialize_options` and
158
+ :meth:`finalize_options`. For example, all derived attributes (or attributes that
159
+ depend on the value of other attributes) **SHOULD** be recomputed in
160
+ :meth:`finalize_options`.
161
+
162
+ When overwriting existing commands, custom defined classes **MUST** abide by the
163
+ same APIs implemented by the original class. They also **SHOULD** inherit from the
164
+ original class.
165
+ """
166
+
167
+ command_consumes_arguments = False
168
+ distribution: Distribution # override distutils.dist.Distribution with setuptools.dist.Distribution
169
+
170
+ dry_run = False # type: ignore[assignment] # pyright: ignore[reportAssignmentType] (until #4689; see #4872)
171
+ """
172
+ For compatibility with vendored bdist_wheel.
173
+ https://github.com/pypa/setuptools/pull/4872/files#r1986395142
174
+ """
175
+
176
+ def __init__(self, dist: Distribution, **kw) -> None:
177
+ """
178
+ Construct the command for dist, updating
179
+ vars(self) with any keyword parameters.
180
+ """
181
+ super().__init__(dist)
182
+ vars(self).update(kw)
183
+
184
+ @overload
185
+ def reinitialize_command(
186
+ self, command: str, reinit_subcommands: bool = False, **kw
187
+ ) -> Command: ... # override distutils.cmd.Command with setuptools.Command
188
+ @overload
189
+ def reinitialize_command(
190
+ self, command: _CommandT, reinit_subcommands: bool = False, **kw
191
+ ) -> _CommandT: ...
192
+ def reinitialize_command(
193
+ self, command: str | _Command, reinit_subcommands: bool = False, **kw
194
+ ) -> Command | _Command:
195
+ cmd = _Command.reinitialize_command(self, command, reinit_subcommands)
196
+ vars(cmd).update(kw)
197
+ return cmd # pyright: ignore[reportReturnType] # pypa/distutils#307
198
+
199
+ @abstractmethod
200
+ def initialize_options(self) -> None:
201
+ """
202
+ Set or (reset) all options/attributes/caches used by the command
203
+ to their default values. Note that these values may be overwritten during
204
+ the build.
205
+ """
206
+ raise NotImplementedError
207
+
208
+ @abstractmethod
209
+ def finalize_options(self) -> None:
210
+ """
211
+ Set final values for all options/attributes used by the command.
212
+ Most of the time, each option/attribute/cache should only be set if it does not
213
+ have any value yet (e.g. ``if self.attr is None: self.attr = val``).
214
+ """
215
+ raise NotImplementedError
216
+
217
+ @abstractmethod
218
+ def run(self) -> None:
219
+ """
220
+ Execute the actions intended by the command.
221
+ (Side effects **SHOULD** only take place when :meth:`run` is executed,
222
+ for example, creating new files or writing to the terminal output).
223
+ """
224
+ raise NotImplementedError
225
+
226
+
227
+ def _find_all_simple(path):
228
+ """
229
+ Find all files under 'path'
230
+ """
231
+ results = (
232
+ os.path.join(base, file)
233
+ for base, dirs, files in os.walk(path, followlinks=True)
234
+ for file in files
235
+ )
236
+ return filter(os.path.isfile, results)
237
+
238
+
239
+ def findall(dir=os.curdir):
240
+ """
241
+ Find all files under 'dir' and return the list of full filenames.
242
+ Unless dir is '.', return full filenames with dir prepended.
243
+ """
244
+ files = _find_all_simple(dir)
245
+ if dir == os.curdir:
246
+ make_rel = functools.partial(os.path.relpath, start=dir)
247
+ files = map(make_rel, files)
248
+ return list(files)
249
+
250
+
251
+ class sic(str):
252
+ """Treat this string as-is (https://en.wikipedia.org/wiki/Sic)"""
253
+
254
+
255
+ # Apply monkey patches
256
+ monkey.patch_all()
python/Lib/site-packages/setuptools/_core_metadata.py ADDED
@@ -0,0 +1,337 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ """
2
+ Handling of Core Metadata for Python packages (including reading and writing).
3
+
4
+ See: https://packaging.python.org/en/latest/specifications/core-metadata/
5
+ """
6
+
7
+ from __future__ import annotations
8
+
9
+ import os
10
+ import stat
11
+ import textwrap
12
+ from email import message_from_file
13
+ from email.message import Message
14
+ from tempfile import NamedTemporaryFile
15
+
16
+ from packaging.markers import Marker
17
+ from packaging.requirements import Requirement
18
+ from packaging.utils import canonicalize_name, canonicalize_version
19
+ from packaging.version import Version
20
+
21
+ from . import _normalization, _reqs
22
+ from ._static import is_static
23
+ from .warnings import SetuptoolsDeprecationWarning
24
+
25
+ from distutils.util import rfc822_escape
26
+
27
+
28
+ def get_metadata_version(self):
29
+ mv = getattr(self, 'metadata_version', None)
30
+ if mv is None:
31
+ mv = Version('2.4')
32
+ self.metadata_version = mv
33
+ return mv
34
+
35
+
36
+ def rfc822_unescape(content: str) -> str:
37
+ """Reverse RFC-822 escaping by removing leading whitespaces from content."""
38
+ lines = content.splitlines()
39
+ if len(lines) == 1:
40
+ return lines[0].lstrip()
41
+ return '\n'.join((lines[0].lstrip(), textwrap.dedent('\n'.join(lines[1:]))))
42
+
43
+
44
+ def _read_field_from_msg(msg: Message, field: str) -> str | None:
45
+ """Read Message header field."""
46
+ value = msg[field]
47
+ if value == 'UNKNOWN':
48
+ return None
49
+ return value
50
+
51
+
52
+ def _read_field_unescaped_from_msg(msg: Message, field: str) -> str | None:
53
+ """Read Message header field and apply rfc822_unescape."""
54
+ value = _read_field_from_msg(msg, field)
55
+ if value is None:
56
+ return value
57
+ return rfc822_unescape(value)
58
+
59
+
60
+ def _read_list_from_msg(msg: Message, field: str) -> list[str] | None:
61
+ """Read Message header field and return all results as list."""
62
+ values = msg.get_all(field, None)
63
+ if values == []:
64
+ return None
65
+ return values
66
+
67
+
68
+ def _read_payload_from_msg(msg: Message) -> str | None:
69
+ value = str(msg.get_payload()).strip()
70
+ if value == 'UNKNOWN' or not value:
71
+ return None
72
+ return value
73
+
74
+
75
+ def read_pkg_file(self, file):
76
+ """Reads the metadata values from a file object."""
77
+ msg = message_from_file(file)
78
+
79
+ self.metadata_version = Version(msg['metadata-version'])
80
+ self.name = _read_field_from_msg(msg, 'name')
81
+ self.version = _read_field_from_msg(msg, 'version')
82
+ self.description = _read_field_from_msg(msg, 'summary')
83
+ # we are filling author only.
84
+ self.author = _read_field_from_msg(msg, 'author')
85
+ self.maintainer = None
86
+ self.author_email = _read_field_from_msg(msg, 'author-email')
87
+ self.maintainer_email = None
88
+ self.url = _read_field_from_msg(msg, 'home-page')
89
+ self.download_url = _read_field_from_msg(msg, 'download-url')
90
+ self.license = _read_field_unescaped_from_msg(msg, 'license')
91
+ self.license_expression = _read_field_unescaped_from_msg(msg, 'license-expression')
92
+
93
+ self.long_description = _read_field_unescaped_from_msg(msg, 'description')
94
+ if self.long_description is None and self.metadata_version >= Version('2.1'):
95
+ self.long_description = _read_payload_from_msg(msg)
96
+ self.description = _read_field_from_msg(msg, 'summary')
97
+
98
+ if 'keywords' in msg:
99
+ self.keywords = _read_field_from_msg(msg, 'keywords').split(',')
100
+
101
+ self.platforms = _read_list_from_msg(msg, 'platform')
102
+ self.classifiers = _read_list_from_msg(msg, 'classifier')
103
+
104
+ # PEP 314 - these fields only exist in 1.1
105
+ if self.metadata_version == Version('1.1'):
106
+ self.requires = _read_list_from_msg(msg, 'requires')
107
+ self.provides = _read_list_from_msg(msg, 'provides')
108
+ self.obsoletes = _read_list_from_msg(msg, 'obsoletes')
109
+ else:
110
+ self.requires = None
111
+ self.provides = None
112
+ self.obsoletes = None
113
+
114
+ self.license_files = _read_list_from_msg(msg, 'license-file')
115
+
116
+
117
+ def single_line(val):
118
+ """
119
+ Quick and dirty validation for Summary pypa/setuptools#1390.
120
+ """
121
+ if '\n' in val:
122
+ # TODO: Replace with `raise ValueError("newlines not allowed")`
123
+ # after reviewing #2893.
124
+ msg = "newlines are not allowed in `summary` and will break in the future"
125
+ SetuptoolsDeprecationWarning.emit("Invalid config.", msg)
126
+ # due_date is undefined. Controversial change, there was a lot of push back.
127
+ val = val.strip().split('\n')[0]
128
+ return val
129
+
130
+
131
+ def write_pkg_info(self, base_dir):
132
+ """Write the PKG-INFO file into the release tree."""
133
+ temp = ""
134
+ final = os.path.join(base_dir, 'PKG-INFO')
135
+ try:
136
+ # Use a temporary file while writing to avoid race conditions
137
+ # (e.g. `importlib.metadata` reading `.egg-info/PKG-INFO`):
138
+ with NamedTemporaryFile("w", encoding="utf-8", dir=base_dir, delete=False) as f:
139
+ temp = f.name
140
+ self.write_pkg_file(f)
141
+ permissions = stat.S_IMODE(os.lstat(temp).st_mode)
142
+ os.chmod(temp, permissions | stat.S_IRGRP | stat.S_IROTH)
143
+ os.replace(temp, final) # atomic operation.
144
+ finally:
145
+ if temp and os.path.exists(temp):
146
+ os.remove(temp)
147
+
148
+
149
+ # Based on Python 3.5 version
150
+ def write_pkg_file(self, file): # noqa: C901 # is too complex (14) # FIXME
151
+ """Write the PKG-INFO format data to a file object."""
152
+ version = self.get_metadata_version()
153
+
154
+ def write_field(key, value):
155
+ file.write(f"{key}: {value}\n")
156
+
157
+ write_field('Metadata-Version', str(version))
158
+ write_field('Name', self.get_name())
159
+ write_field('Version', self.get_version())
160
+
161
+ summary = self.get_description()
162
+ if summary:
163
+ write_field('Summary', single_line(summary))
164
+
165
+ optional_fields = (
166
+ ('Home-page', 'url'),
167
+ ('Download-URL', 'download_url'),
168
+ ('Author', 'author'),
169
+ ('Author-email', 'author_email'),
170
+ ('Maintainer', 'maintainer'),
171
+ ('Maintainer-email', 'maintainer_email'),
172
+ )
173
+
174
+ for field, attr in optional_fields:
175
+ attr_val = getattr(self, attr, None)
176
+ if attr_val is not None:
177
+ write_field(field, attr_val)
178
+
179
+ if license_expression := self.license_expression:
180
+ write_field('License-Expression', license_expression)
181
+ elif license := self.get_license():
182
+ write_field('License', rfc822_escape(license))
183
+
184
+ for label, url in self.project_urls.items():
185
+ write_field('Project-URL', f'{label}, {url}')
186
+
187
+ keywords = ','.join(self.get_keywords())
188
+ if keywords:
189
+ write_field('Keywords', keywords)
190
+
191
+ platforms = self.get_platforms() or []
192
+ for platform in platforms:
193
+ write_field('Platform', platform)
194
+
195
+ self._write_list(file, 'Classifier', self.get_classifiers())
196
+
197
+ # PEP 314
198
+ self._write_list(file, 'Requires', self.get_requires())
199
+ self._write_list(file, 'Provides', self.get_provides())
200
+ self._write_list(file, 'Obsoletes', self.get_obsoletes())
201
+
202
+ # Setuptools specific for PEP 345
203
+ if hasattr(self, 'python_requires'):
204
+ write_field('Requires-Python', self.python_requires)
205
+
206
+ # PEP 566
207
+ if self.long_description_content_type:
208
+ write_field('Description-Content-Type', self.long_description_content_type)
209
+
210
+ safe_license_files = map(_safe_license_file, self.license_files or [])
211
+ self._write_list(file, 'License-File', safe_license_files)
212
+ _write_requirements(self, file)
213
+
214
+ for field, attr in _POSSIBLE_DYNAMIC_FIELDS.items():
215
+ if (val := getattr(self, attr, None)) and not is_static(val):
216
+ write_field('Dynamic', field)
217
+
218
+ long_description = self.get_long_description()
219
+ if long_description:
220
+ file.write(f"\n{long_description}")
221
+ if not long_description.endswith("\n"):
222
+ file.write("\n")
223
+
224
+
225
+ def _write_requirements(self, file):
226
+ for req in _reqs.parse(self.install_requires):
227
+ file.write(f"Requires-Dist: {req}\n")
228
+
229
+ processed_extras = {}
230
+ for augmented_extra, reqs in self.extras_require.items():
231
+ # Historically, setuptools allows "augmented extras": `<extra>:<condition>`
232
+ unsafe_extra, _, condition = augmented_extra.partition(":")
233
+ unsafe_extra = unsafe_extra.strip()
234
+ extra = _normalization.safe_extra(unsafe_extra)
235
+
236
+ if extra:
237
+ _write_provides_extra(file, processed_extras, extra, unsafe_extra)
238
+ for req in _reqs.parse_strings(reqs):
239
+ r = _include_extra(req, extra, condition.strip())
240
+ file.write(f"Requires-Dist: {r}\n")
241
+
242
+ return processed_extras
243
+
244
+
245
+ def _include_extra(req: str, extra: str, condition: str) -> Requirement:
246
+ r = Requirement(req) # create a fresh object that can be modified
247
+ parts = (
248
+ f"({r.marker})" if r.marker else None,
249
+ f"({condition})" if condition else None,
250
+ f"extra == {extra!r}" if extra else None,
251
+ )
252
+ r.marker = Marker(" and ".join(x for x in parts if x))
253
+ return r
254
+
255
+
256
+ def _write_provides_extra(file, processed_extras, safe, unsafe):
257
+ previous = processed_extras.get(safe)
258
+ if previous == unsafe:
259
+ SetuptoolsDeprecationWarning.emit(
260
+ 'Ambiguity during "extra" normalization for dependencies.',
261
+ f"""
262
+ {previous!r} and {unsafe!r} normalize to the same value:\n
263
+ {safe!r}\n
264
+ In future versions, setuptools might halt the build process.
265
+ """,
266
+ see_url="https://peps.python.org/pep-0685/",
267
+ )
268
+ else:
269
+ processed_extras[safe] = unsafe
270
+ file.write(f"Provides-Extra: {safe}\n")
271
+
272
+
273
+ # from pypa/distutils#244; needed only until that logic is always available
274
+ def get_fullname(self):
275
+ return _distribution_fullname(self.get_name(), self.get_version())
276
+
277
+
278
+ def _distribution_fullname(name: str, version: str) -> str:
279
+ """
280
+ >>> _distribution_fullname('setup.tools', '1.0-2')
281
+ 'setup_tools-1.0.post2'
282
+ >>> _distribution_fullname('setup-tools', '1.2post2')
283
+ 'setup_tools-1.2.post2'
284
+ >>> _distribution_fullname('setup-tools', '1.0-r2')
285
+ 'setup_tools-1.0.post2'
286
+ >>> _distribution_fullname('setup.tools', '1.0.post')
287
+ 'setup_tools-1.0.post0'
288
+ >>> _distribution_fullname('setup.tools', '1.0+ubuntu-1')
289
+ 'setup_tools-1.0+ubuntu.1'
290
+ """
291
+ return "{}-{}".format(
292
+ canonicalize_name(name).replace('-', '_'),
293
+ canonicalize_version(version, strip_trailing_zero=False),
294
+ )
295
+
296
+
297
+ def _safe_license_file(file):
298
+ # XXX: Do we need this after the deprecation discussed in #4892, #4896??
299
+ normalized = os.path.normpath(file).replace(os.sep, "/")
300
+ if "../" in normalized:
301
+ return os.path.basename(normalized) # Temporarily restore pre PEP639 behaviour
302
+ return normalized
303
+
304
+
305
+ _POSSIBLE_DYNAMIC_FIELDS = {
306
+ # Core Metadata Field x related Distribution attribute
307
+ "author": "author",
308
+ "author-email": "author_email",
309
+ "classifier": "classifiers",
310
+ "description": "long_description",
311
+ "description-content-type": "long_description_content_type",
312
+ "download-url": "download_url",
313
+ "home-page": "url",
314
+ "keywords": "keywords",
315
+ "license": "license",
316
+ # XXX: License-File is complicated because the user gives globs that are expanded
317
+ # during the build. Without special handling it is likely always
318
+ # marked as Dynamic, which is an acceptable outcome according to:
319
+ # https://github.com/pypa/setuptools/issues/4629#issuecomment-2331233677
320
+ "license-file": "license_files",
321
+ "license-expression": "license_expression", # PEP 639
322
+ "maintainer": "maintainer",
323
+ "maintainer-email": "maintainer_email",
324
+ "obsoletes": "obsoletes",
325
+ # "obsoletes-dist": "obsoletes_dist", # NOT USED
326
+ "platform": "platforms",
327
+ "project-url": "project_urls",
328
+ "provides": "provides",
329
+ # "provides-dist": "provides_dist", # NOT USED
330
+ "provides-extra": "extras_require",
331
+ "requires": "requires",
332
+ "requires-dist": "install_requires",
333
+ # "requires-external": "requires_external", # NOT USED
334
+ "requires-python": "python_requires",
335
+ "summary": "description",
336
+ # "supported-platform": "supported_platforms", # NOT USED
337
+ }
python/Lib/site-packages/setuptools/_discovery.py ADDED
@@ -0,0 +1,33 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ import functools
2
+ import operator
3
+
4
+ import packaging.requirements
5
+
6
+
7
+ # from coherent.build.discovery
8
+ def extras_from_dep(dep):
9
+ try:
10
+ markers = packaging.requirements.Requirement(dep).marker._markers
11
+ except AttributeError:
12
+ markers = ()
13
+ return set(
14
+ marker[2].value
15
+ for marker in markers
16
+ if isinstance(marker, tuple) and marker[0].value == 'extra'
17
+ )
18
+
19
+
20
+ def extras_from_deps(deps):
21
+ """
22
+ >>> extras_from_deps(['requests'])
23
+ set()
24
+ >>> extras_from_deps(['pytest; extra == "test"'])
25
+ {'test'}
26
+ >>> sorted(extras_from_deps([
27
+ ... 'requests',
28
+ ... 'pytest; extra == "test"',
29
+ ... 'pytest-cov; extra == "test"',
30
+ ... 'sphinx; extra=="doc"']))
31
+ ['doc', 'test']
32
+ """
33
+ return functools.reduce(operator.or_, map(extras_from_dep, deps), set())
python/Lib/site-packages/setuptools/_entry_points.py ADDED
@@ -0,0 +1,94 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ import functools
2
+ import itertools
3
+ import operator
4
+
5
+ from jaraco.functools import pass_none
6
+ from jaraco.text import yield_lines
7
+ from more_itertools import consume
8
+
9
+ from ._importlib import metadata
10
+ from ._itertools import ensure_unique
11
+ from .errors import OptionError
12
+
13
+
14
+ def ensure_valid(ep):
15
+ """
16
+ Exercise one of the dynamic properties to trigger
17
+ the pattern match.
18
+
19
+ This function is deprecated in favor of importlib_metadata 8.7 and
20
+ Python 3.14 importlib.metadata, which validates entry points on
21
+ construction.
22
+ """
23
+ try:
24
+ ep.extras
25
+ except (AttributeError, AssertionError) as ex:
26
+ # Why both? See https://github.com/python/importlib_metadata/issues/488
27
+ msg = (
28
+ f"Problems to parse {ep}.\nPlease ensure entry-point follows the spec: "
29
+ "https://packaging.python.org/en/latest/specifications/entry-points/"
30
+ )
31
+ raise OptionError(msg) from ex
32
+
33
+
34
+ def load_group(value, group):
35
+ """
36
+ Given a value of an entry point or series of entry points,
37
+ return each as an EntryPoint.
38
+ """
39
+ # normalize to a single sequence of lines
40
+ lines = yield_lines(value)
41
+ text = f'[{group}]\n' + '\n'.join(lines)
42
+ return metadata.EntryPoints._from_text(text)
43
+
44
+
45
+ def by_group_and_name(ep):
46
+ return ep.group, ep.name
47
+
48
+
49
+ def validate(eps: metadata.EntryPoints):
50
+ """
51
+ Ensure entry points are unique by group and name and validate each.
52
+ """
53
+ consume(map(ensure_valid, ensure_unique(eps, key=by_group_and_name)))
54
+ return eps
55
+
56
+
57
+ @functools.singledispatch
58
+ def load(eps):
59
+ """
60
+ Given a Distribution.entry_points, produce EntryPoints.
61
+ """
62
+ groups = itertools.chain.from_iterable(
63
+ load_group(value, group) for group, value in eps.items()
64
+ )
65
+ return validate(metadata.EntryPoints(groups))
66
+
67
+
68
+ @load.register(str)
69
+ def _(eps):
70
+ r"""
71
+ >>> ep, = load('[console_scripts]\nfoo=bar')
72
+ >>> ep.group
73
+ 'console_scripts'
74
+ >>> ep.name
75
+ 'foo'
76
+ >>> ep.value
77
+ 'bar'
78
+ """
79
+ return validate(metadata.EntryPoints(metadata.EntryPoints._from_text(eps)))
80
+
81
+
82
+ load.register(type(None), lambda x: x)
83
+
84
+
85
+ @pass_none
86
+ def render(eps: metadata.EntryPoints):
87
+ by_group = operator.attrgetter('group')
88
+ groups = itertools.groupby(sorted(eps, key=by_group), by_group)
89
+
90
+ return '\n'.join(f'[{group}]\n{render_items(items)}\n' for group, items in groups)
91
+
92
+
93
+ def render_items(eps):
94
+ return '\n'.join(f'{ep.name} = {ep.value}' for ep in sorted(eps))
python/Lib/site-packages/setuptools/_imp.py ADDED
@@ -0,0 +1,87 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ """
2
+ Re-implementation of find_module and get_frozen_object
3
+ from the deprecated imp module.
4
+ """
5
+
6
+ import importlib.machinery
7
+ import importlib.util
8
+ import os
9
+ import tokenize
10
+ from importlib.util import module_from_spec
11
+
12
+ PY_SOURCE = 1
13
+ PY_COMPILED = 2
14
+ C_EXTENSION = 3
15
+ C_BUILTIN = 6
16
+ PY_FROZEN = 7
17
+
18
+
19
+ def find_spec(module, paths):
20
+ finder = (
21
+ importlib.machinery.PathFinder().find_spec
22
+ if isinstance(paths, list)
23
+ else importlib.util.find_spec
24
+ )
25
+ return finder(module, paths)
26
+
27
+
28
+ def find_module(module, paths=None):
29
+ """Just like 'imp.find_module()', but with package support"""
30
+ spec = find_spec(module, paths)
31
+ if spec is None:
32
+ raise ImportError(f"Can't find {module}")
33
+ if not spec.has_location and hasattr(spec, 'submodule_search_locations'):
34
+ spec = importlib.util.spec_from_loader('__init__.py', spec.loader)
35
+
36
+ kind = -1
37
+ file = None
38
+ static = isinstance(spec.loader, type)
39
+ if (
40
+ spec.origin == 'frozen'
41
+ or static
42
+ and issubclass(spec.loader, importlib.machinery.FrozenImporter)
43
+ ):
44
+ kind = PY_FROZEN
45
+ path = None # imp compabilty
46
+ suffix = mode = '' # imp compatibility
47
+ elif (
48
+ spec.origin == 'built-in'
49
+ or static
50
+ and issubclass(spec.loader, importlib.machinery.BuiltinImporter)
51
+ ):
52
+ kind = C_BUILTIN
53
+ path = None # imp compabilty
54
+ suffix = mode = '' # imp compatibility
55
+ elif spec.has_location:
56
+ path = spec.origin
57
+ suffix = os.path.splitext(path)[1]
58
+ mode = 'r' if suffix in importlib.machinery.SOURCE_SUFFIXES else 'rb'
59
+
60
+ if suffix in importlib.machinery.SOURCE_SUFFIXES:
61
+ kind = PY_SOURCE
62
+ file = tokenize.open(path)
63
+ elif suffix in importlib.machinery.BYTECODE_SUFFIXES:
64
+ kind = PY_COMPILED
65
+ file = open(path, 'rb')
66
+ elif suffix in importlib.machinery.EXTENSION_SUFFIXES:
67
+ kind = C_EXTENSION
68
+
69
+ else:
70
+ path = None
71
+ suffix = mode = ''
72
+
73
+ return file, path, (suffix, mode, kind)
74
+
75
+
76
+ def get_frozen_object(module, paths=None):
77
+ spec = find_spec(module, paths)
78
+ if not spec:
79
+ raise ImportError(f"Can't find {module}")
80
+ return spec.loader.get_code(module)
81
+
82
+
83
+ def get_module(module, paths, info):
84
+ spec = find_spec(module, paths)
85
+ if not spec:
86
+ raise ImportError(f"Can't find {module}")
87
+ return module_from_spec(spec)
python/Lib/site-packages/setuptools/_importlib.py ADDED
@@ -0,0 +1,9 @@
 
 
 
 
 
 
 
 
 
 
1
+ import sys
2
+
3
+ if sys.version_info < (3, 10):
4
+ import importlib_metadata as metadata # pragma: no cover
5
+ else:
6
+ import importlib.metadata as metadata # noqa: F401
7
+
8
+
9
+ import importlib.resources as resources # noqa: F401
python/Lib/site-packages/setuptools/_itertools.py ADDED
@@ -0,0 +1,23 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ from more_itertools import consume # noqa: F401
2
+
3
+
4
+ # copied from jaraco.itertools 6.1
5
+ def ensure_unique(iterable, key=lambda x: x):
6
+ """
7
+ Wrap an iterable to raise a ValueError if non-unique values are encountered.
8
+
9
+ >>> list(ensure_unique('abc'))
10
+ ['a', 'b', 'c']
11
+ >>> consume(ensure_unique('abca'))
12
+ Traceback (most recent call last):
13
+ ...
14
+ ValueError: Duplicate element 'a' encountered.
15
+ """
16
+ seen = set()
17
+ seen_add = seen.add
18
+ for element in iterable:
19
+ k = key(element)
20
+ if k in seen:
21
+ raise ValueError(f"Duplicate element {element!r} encountered.")
22
+ seen_add(k)
23
+ yield element
python/Lib/site-packages/setuptools/_normalization.py ADDED
@@ -0,0 +1,180 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ """
2
+ Helpers for normalization as expected in wheel/sdist/module file names
3
+ and core metadata
4
+ """
5
+
6
+ import re
7
+ from typing import TYPE_CHECKING
8
+
9
+ import packaging
10
+
11
+ # https://packaging.python.org/en/latest/specifications/core-metadata/#name
12
+ _VALID_NAME = re.compile(r"^([A-Z0-9]|[A-Z0-9][A-Z0-9._-]*[A-Z0-9])$", re.IGNORECASE)
13
+ _UNSAFE_NAME_CHARS = re.compile(r"[^A-Z0-9._-]+", re.IGNORECASE)
14
+ _NON_ALPHANUMERIC = re.compile(r"[^A-Z0-9]+", re.IGNORECASE)
15
+ _PEP440_FALLBACK = re.compile(
16
+ r"^v?(?P<safe>(?:[0-9]+!)?[0-9]+(?:\.[0-9]+)*)", re.IGNORECASE
17
+ )
18
+
19
+
20
+ def safe_identifier(name: str) -> str:
21
+ """Make a string safe to be used as Python identifier.
22
+ >>> safe_identifier("12abc")
23
+ '_12abc'
24
+ >>> safe_identifier("__editable__.myns.pkg-78.9.3_local")
25
+ '__editable___myns_pkg_78_9_3_local'
26
+ """
27
+ safe = re.sub(r'\W|^(?=\d)', '_', name)
28
+ assert safe.isidentifier()
29
+ return safe
30
+
31
+
32
+ def safe_name(component: str) -> str:
33
+ """Escape a component used as a project name according to Core Metadata.
34
+ >>> safe_name("hello world")
35
+ 'hello-world'
36
+ >>> safe_name("hello?world")
37
+ 'hello-world'
38
+ >>> safe_name("hello_world")
39
+ 'hello_world'
40
+ """
41
+ return _UNSAFE_NAME_CHARS.sub("-", component)
42
+
43
+
44
+ def safe_version(version: str) -> str:
45
+ """Convert an arbitrary string into a valid version string.
46
+ Can still raise an ``InvalidVersion`` exception.
47
+ To avoid exceptions use ``best_effort_version``.
48
+ >>> safe_version("1988 12 25")
49
+ '1988.12.25'
50
+ >>> safe_version("v0.2.1")
51
+ '0.2.1'
52
+ >>> safe_version("v0.2?beta")
53
+ '0.2b0'
54
+ >>> safe_version("v0.2 beta")
55
+ '0.2b0'
56
+ >>> safe_version("ubuntu lts")
57
+ Traceback (most recent call last):
58
+ ...
59
+ packaging.version.InvalidVersion: Invalid version: 'ubuntu.lts'
60
+ """
61
+ v = version.replace(' ', '.')
62
+ try:
63
+ return str(packaging.version.Version(v))
64
+ except packaging.version.InvalidVersion:
65
+ attempt = _UNSAFE_NAME_CHARS.sub("-", v)
66
+ return str(packaging.version.Version(attempt))
67
+
68
+
69
+ def best_effort_version(version: str) -> str:
70
+ """Convert an arbitrary string into a version-like string.
71
+ Fallback when ``safe_version`` is not safe enough.
72
+ >>> best_effort_version("v0.2 beta")
73
+ '0.2b0'
74
+ >>> best_effort_version("ubuntu lts")
75
+ '0.dev0+sanitized.ubuntu.lts'
76
+ >>> best_effort_version("0.23ubuntu1")
77
+ '0.23.dev0+sanitized.ubuntu1'
78
+ >>> best_effort_version("0.23-")
79
+ '0.23.dev0+sanitized'
80
+ >>> best_effort_version("0.-_")
81
+ '0.dev0+sanitized'
82
+ >>> best_effort_version("42.+?1")
83
+ '42.dev0+sanitized.1'
84
+ """
85
+ try:
86
+ return safe_version(version)
87
+ except packaging.version.InvalidVersion:
88
+ v = version.replace(' ', '.')
89
+ match = _PEP440_FALLBACK.search(v)
90
+ if match:
91
+ safe = match["safe"]
92
+ rest = v[len(safe) :]
93
+ else:
94
+ safe = "0"
95
+ rest = version
96
+ safe_rest = _NON_ALPHANUMERIC.sub(".", rest).strip(".")
97
+ local = f"sanitized.{safe_rest}".strip(".")
98
+ return safe_version(f"{safe}.dev0+{local}")
99
+
100
+
101
+ def safe_extra(extra: str) -> str:
102
+ """Normalize extra name according to PEP 685
103
+ >>> safe_extra("_FrIeNdLy-._.-bArD")
104
+ 'friendly-bard'
105
+ >>> safe_extra("FrIeNdLy-._.-bArD__._-")
106
+ 'friendly-bard'
107
+ """
108
+ return _NON_ALPHANUMERIC.sub("-", extra).strip("-").lower()
109
+
110
+
111
+ def filename_component(value: str) -> str:
112
+ """Normalize each component of a filename (e.g. distribution/version part of wheel)
113
+ Note: ``value`` needs to be already normalized.
114
+ >>> filename_component("my-pkg")
115
+ 'my_pkg'
116
+ """
117
+ return value.replace("-", "_").strip("_")
118
+
119
+
120
+ def filename_component_broken(value: str) -> str:
121
+ """
122
+ Produce the incorrect filename component for compatibility.
123
+
124
+ See pypa/setuptools#4167 for detailed analysis.
125
+
126
+ TODO: replace this with filename_component after pip 24 is
127
+ nearly-ubiquitous.
128
+
129
+ >>> filename_component_broken('foo_bar-baz')
130
+ 'foo-bar-baz'
131
+ """
132
+ return value.replace('_', '-')
133
+
134
+
135
+ def safer_name(value: str) -> str:
136
+ """Like ``safe_name`` but can be used as filename component for wheel"""
137
+ # See bdist_wheel.safer_name
138
+ return (
139
+ # Per https://packaging.python.org/en/latest/specifications/name-normalization/#name-normalization
140
+ re
141
+ .sub(r"[-_.]+", "-", safe_name(value))
142
+ .lower()
143
+ # Per https://packaging.python.org/en/latest/specifications/binary-distribution-format/#escaping-and-unicode
144
+ .replace("-", "_")
145
+ )
146
+
147
+
148
+ def safer_best_effort_version(value: str) -> str:
149
+ """Like ``best_effort_version`` but can be used as filename component for wheel"""
150
+ # See bdist_wheel.safer_verion
151
+ # TODO: Replace with only safe_version in the future (no need for best effort)
152
+ return filename_component(best_effort_version(value))
153
+
154
+
155
+ def _missing_canonicalize_license_expression(expression: str) -> str:
156
+ """
157
+ Defer import error to affect only users that actually use it
158
+ https://github.com/pypa/setuptools/issues/4894
159
+ >>> _missing_canonicalize_license_expression("a OR b")
160
+ Traceback (most recent call last):
161
+ ...
162
+ ImportError: ...Cannot import `packaging.licenses`...
163
+ """
164
+ raise ImportError(
165
+ "Cannot import `packaging.licenses`."
166
+ """
167
+ Setuptools>=77.0.0 requires "packaging>=24.2" to work properly.
168
+ Please make sure you have a suitable version installed.
169
+ """
170
+ )
171
+
172
+
173
+ try:
174
+ from packaging.licenses import (
175
+ canonicalize_license_expression as _canonicalize_license_expression,
176
+ )
177
+ except ImportError: # pragma: nocover
178
+ if not TYPE_CHECKING:
179
+ # XXX: pyright is still upset even with # pyright: ignore[reportAssignmentType]
180
+ _canonicalize_license_expression = _missing_canonicalize_license_expression
python/Lib/site-packages/setuptools/_path.py ADDED
@@ -0,0 +1,93 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ from __future__ import annotations
2
+
3
+ import contextlib
4
+ import os
5
+ import sys
6
+ from typing import TYPE_CHECKING, TypeVar, Union
7
+
8
+ from more_itertools import unique_everseen
9
+
10
+ if TYPE_CHECKING:
11
+ from typing_extensions import TypeAlias
12
+
13
+ StrPath: TypeAlias = Union[str, os.PathLike[str]] # Same as _typeshed.StrPath
14
+ StrPathT = TypeVar("StrPathT", bound=Union[str, os.PathLike[str]])
15
+
16
+
17
+ def ensure_directory(path):
18
+ """Ensure that the parent directory of `path` exists"""
19
+ dirname = os.path.dirname(path)
20
+ os.makedirs(dirname, exist_ok=True)
21
+
22
+
23
+ def same_path(p1: StrPath, p2: StrPath) -> bool:
24
+ """Differs from os.path.samefile because it does not require paths to exist.
25
+ Purely string based (no comparison between i-nodes).
26
+ >>> same_path("a/b", "./a/b")
27
+ True
28
+ >>> same_path("a/b", "a/./b")
29
+ True
30
+ >>> same_path("a/b", "././a/b")
31
+ True
32
+ >>> same_path("a/b", "./a/b/c/..")
33
+ True
34
+ >>> same_path("a/b", "../a/b/c")
35
+ False
36
+ >>> same_path("a", "a/b")
37
+ False
38
+ """
39
+ return normpath(p1) == normpath(p2)
40
+
41
+
42
+ def _cygwin_patch(filename: StrPath): # pragma: nocover
43
+ """
44
+ Contrary to POSIX 2008, on Cygwin, getcwd (3) contains
45
+ symlink components. Using
46
+ os.path.abspath() works around this limitation. A fix in os.getcwd()
47
+ would probably better, in Cygwin even more so, except
48
+ that this seems to be by design...
49
+ """
50
+ return os.path.abspath(filename) if sys.platform == 'cygwin' else filename
51
+
52
+
53
+ def normpath(filename: StrPath) -> str:
54
+ """Normalize a file/dir name for comparison purposes."""
55
+ return os.path.normcase(os.path.realpath(os.path.normpath(_cygwin_patch(filename))))
56
+
57
+
58
+ @contextlib.contextmanager
59
+ def paths_on_pythonpath(paths):
60
+ """
61
+ Add the indicated paths to the head of the PYTHONPATH environment
62
+ variable so that subprocesses will also see the packages at
63
+ these paths.
64
+
65
+ Do this in a context that restores the value on exit.
66
+
67
+ >>> getfixture('monkeypatch').setenv('PYTHONPATH', 'anything')
68
+ >>> with paths_on_pythonpath(['foo', 'bar']):
69
+ ... assert 'foo' in os.environ['PYTHONPATH']
70
+ ... assert 'anything' in os.environ['PYTHONPATH']
71
+ >>> os.environ['PYTHONPATH']
72
+ 'anything'
73
+
74
+ >>> getfixture('monkeypatch').delenv('PYTHONPATH')
75
+ >>> with paths_on_pythonpath(['foo', 'bar']):
76
+ ... assert 'foo' in os.environ['PYTHONPATH']
77
+ >>> os.environ.get('PYTHONPATH')
78
+ """
79
+ nothing = object()
80
+ orig_pythonpath = os.environ.get('PYTHONPATH', nothing)
81
+ current_pythonpath = os.environ.get('PYTHONPATH', '')
82
+ try:
83
+ prefix = os.pathsep.join(unique_everseen(paths))
84
+ to_join = filter(None, [prefix, current_pythonpath])
85
+ new_path = os.pathsep.join(to_join)
86
+ if new_path:
87
+ os.environ['PYTHONPATH'] = new_path
88
+ yield
89
+ finally:
90
+ if orig_pythonpath is nothing:
91
+ os.environ.pop('PYTHONPATH', None)
92
+ else:
93
+ os.environ['PYTHONPATH'] = orig_pythonpath
python/Lib/site-packages/setuptools/_reqs.py ADDED
@@ -0,0 +1,42 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ from __future__ import annotations
2
+
3
+ from collections.abc import Iterable, Iterator
4
+ from functools import lru_cache
5
+ from typing import TYPE_CHECKING, Callable, TypeVar, Union, overload
6
+
7
+ import jaraco.text as text
8
+ from packaging.requirements import Requirement
9
+
10
+ if TYPE_CHECKING:
11
+ from typing_extensions import TypeAlias
12
+
13
+ _T = TypeVar("_T")
14
+ _StrOrIter: TypeAlias = Union[str, Iterable[str]]
15
+
16
+
17
+ parse_req: Callable[[str], Requirement] = lru_cache()(Requirement)
18
+ # Setuptools parses the same requirement many times
19
+ # (e.g. first for validation than for normalisation),
20
+ # so it might be worth to cache.
21
+
22
+
23
+ def parse_strings(strs: _StrOrIter) -> Iterator[str]:
24
+ """
25
+ Yield requirement strings for each specification in `strs`.
26
+
27
+ `strs` must be a string, or a (possibly-nested) iterable thereof.
28
+ """
29
+ return text.join_continuation(map(text.drop_comment, text.yield_lines(strs)))
30
+
31
+
32
+ # These overloads are only needed because of a mypy false-positive, pyright gets it right
33
+ # https://github.com/python/mypy/issues/3737
34
+ @overload
35
+ def parse(strs: _StrOrIter) -> Iterator[Requirement]: ...
36
+ @overload
37
+ def parse(strs: _StrOrIter, parser: Callable[[str], _T]) -> Iterator[_T]: ...
38
+ def parse(strs: _StrOrIter, parser: Callable[[str], _T] = parse_req) -> Iterator[_T]: # type: ignore[assignment]
39
+ """
40
+ Parse requirements.
41
+ """
42
+ return map(parser, parse_strings(strs))
python/Lib/site-packages/setuptools/_scripts.py ADDED
@@ -0,0 +1,361 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ from __future__ import annotations
2
+
3
+ import os
4
+ import re
5
+ import shlex
6
+ import shutil
7
+ import struct
8
+ import subprocess
9
+ import sys
10
+ import textwrap
11
+ from collections.abc import Iterable
12
+ from typing import TYPE_CHECKING, TypedDict
13
+
14
+ from ._importlib import metadata, resources
15
+
16
+ if TYPE_CHECKING:
17
+ from typing_extensions import Self
18
+
19
+ from .warnings import SetuptoolsWarning
20
+
21
+ from distutils.command.build_scripts import first_line_re
22
+ from distutils.util import get_platform
23
+
24
+
25
+ class _SplitArgs(TypedDict, total=False):
26
+ comments: bool
27
+ posix: bool
28
+
29
+
30
+ class CommandSpec(list):
31
+ """
32
+ A command spec for a #! header, specified as a list of arguments akin to
33
+ those passed to Popen.
34
+ """
35
+
36
+ options: list[str] = []
37
+ split_args = _SplitArgs()
38
+
39
+ @classmethod
40
+ def best(cls):
41
+ """
42
+ Choose the best CommandSpec class based on environmental conditions.
43
+ """
44
+ return cls
45
+
46
+ @classmethod
47
+ def _sys_executable(cls):
48
+ _default = os.path.normpath(sys.executable)
49
+ return os.environ.get('__PYVENV_LAUNCHER__', _default)
50
+
51
+ @classmethod
52
+ def from_param(cls, param: Self | str | Iterable[str] | None) -> Self:
53
+ """
54
+ Construct a CommandSpec from a parameter to build_scripts, which may
55
+ be None.
56
+ """
57
+ if isinstance(param, cls):
58
+ return param
59
+ if isinstance(param, str):
60
+ return cls.from_string(param)
61
+ if isinstance(param, Iterable):
62
+ return cls(param)
63
+ if param is None:
64
+ return cls.from_environment()
65
+ raise TypeError(f"Argument has an unsupported type {type(param)}")
66
+
67
+ @classmethod
68
+ def from_environment(cls):
69
+ return cls([cls._sys_executable()])
70
+
71
+ @classmethod
72
+ def from_string(cls, string: str) -> Self:
73
+ """
74
+ Construct a command spec from a simple string representing a command
75
+ line parseable by shlex.split.
76
+ """
77
+ items = shlex.split(string, **cls.split_args)
78
+ return cls(items)
79
+
80
+ def install_options(self, script_text: str):
81
+ self.options = shlex.split(self._extract_options(script_text))
82
+ cmdline = subprocess.list2cmdline(self)
83
+ if not isascii(cmdline):
84
+ self.options[:0] = ['-x']
85
+
86
+ @staticmethod
87
+ def _extract_options(orig_script):
88
+ """
89
+ Extract any options from the first line of the script.
90
+ """
91
+ first = (orig_script + '\n').splitlines()[0]
92
+ match = _first_line_re().match(first)
93
+ options = match.group(1) or '' if match else ''
94
+ return options.strip()
95
+
96
+ def as_header(self):
97
+ return self._render(self + list(self.options))
98
+
99
+ @staticmethod
100
+ def _strip_quotes(item):
101
+ _QUOTES = '"\''
102
+ for q in _QUOTES:
103
+ if item.startswith(q) and item.endswith(q):
104
+ return item[1:-1]
105
+ return item
106
+
107
+ @staticmethod
108
+ def _render(items):
109
+ cmdline = subprocess.list2cmdline(
110
+ CommandSpec._strip_quotes(item.strip()) for item in items
111
+ )
112
+ return '#!' + cmdline + '\n'
113
+
114
+
115
+ class WindowsCommandSpec(CommandSpec):
116
+ split_args = _SplitArgs(posix=False)
117
+
118
+
119
+ class ScriptWriter:
120
+ """
121
+ Encapsulates behavior around writing entry point scripts for console and
122
+ gui apps.
123
+ """
124
+
125
+ template = textwrap.dedent(
126
+ r"""
127
+ # EASY-INSTALL-ENTRY-SCRIPT: %(spec)r,%(group)r,%(name)r
128
+ import re
129
+ import sys
130
+
131
+ # for compatibility with easy_install; see #2198
132
+ __requires__ = %(spec)r
133
+
134
+ try:
135
+ from importlib.metadata import distribution
136
+ except ImportError:
137
+ try:
138
+ from importlib_metadata import distribution
139
+ except ImportError:
140
+ from pkg_resources import load_entry_point
141
+
142
+
143
+ def importlib_load_entry_point(spec, group, name):
144
+ dist_name, _, _ = spec.partition('==')
145
+ matches = (
146
+ entry_point
147
+ for entry_point in distribution(dist_name).entry_points
148
+ if entry_point.group == group and entry_point.name == name
149
+ )
150
+ return next(matches).load()
151
+
152
+
153
+ globals().setdefault('load_entry_point', importlib_load_entry_point)
154
+
155
+
156
+ if __name__ == '__main__':
157
+ sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0])
158
+ sys.exit(load_entry_point(%(spec)r, %(group)r, %(name)r)())
159
+ """
160
+ ).lstrip()
161
+
162
+ command_spec_class = CommandSpec
163
+
164
+ @classmethod
165
+ def get_args(cls, dist, header=None):
166
+ """
167
+ Yield write_script() argument tuples for a distribution's
168
+ console_scripts and gui_scripts entry points.
169
+ """
170
+
171
+ # If distribution is not an importlib.metadata.Distribution, assume
172
+ # it's a pkg_resources.Distribution and transform it.
173
+ if not hasattr(dist, 'entry_points'):
174
+ SetuptoolsWarning.emit("Unsupported distribution encountered.")
175
+ dist = metadata.Distribution.at(dist.egg_info)
176
+
177
+ if header is None:
178
+ header = cls.get_header()
179
+ spec = f'{dist.name}=={dist.version}'
180
+ for type_ in 'console', 'gui':
181
+ group = f'{type_}_scripts'
182
+ for ep in dist.entry_points.select(group=group):
183
+ name = ep.name
184
+ cls._ensure_safe_name(ep.name)
185
+ script_text = cls.template % locals()
186
+ args = cls._get_script_args(type_, ep.name, header, script_text)
187
+ yield from args
188
+
189
+ @staticmethod
190
+ def _ensure_safe_name(name):
191
+ """
192
+ Prevent paths in *_scripts entry point names.
193
+ """
194
+ has_path_sep = re.search(r'[\\/]', name)
195
+ if has_path_sep:
196
+ raise ValueError("Path separators not allowed in script names")
197
+
198
+ @classmethod
199
+ def best(cls):
200
+ """
201
+ Select the best ScriptWriter for this environment.
202
+ """
203
+ if sys.platform == 'win32' or (os.name == 'java' and os._name == 'nt'):
204
+ return WindowsScriptWriter.best()
205
+ else:
206
+ return cls
207
+
208
+ @classmethod
209
+ def _get_script_args(cls, type_, name, header, script_text):
210
+ # Simply write the stub with no extension.
211
+ yield (name, header + script_text)
212
+
213
+ @classmethod
214
+ def get_header(
215
+ cls,
216
+ script_text: str = "",
217
+ executable: str | CommandSpec | Iterable[str] | None = None,
218
+ ) -> str:
219
+ """Create a #! line, getting options (if any) from script_text"""
220
+ cmd = cls.command_spec_class.best().from_param(executable)
221
+ cmd.install_options(script_text)
222
+ return cmd.as_header()
223
+
224
+
225
+ class WindowsScriptWriter(ScriptWriter):
226
+ command_spec_class = WindowsCommandSpec
227
+
228
+ @classmethod
229
+ def best(cls):
230
+ """
231
+ Select the best ScriptWriter suitable for Windows
232
+ """
233
+ writer_lookup = dict(
234
+ executable=WindowsExecutableLauncherWriter,
235
+ natural=cls,
236
+ )
237
+ # for compatibility, use the executable launcher by default
238
+ launcher = os.environ.get('SETUPTOOLS_LAUNCHER', 'executable')
239
+ return writer_lookup[launcher]
240
+
241
+ @classmethod
242
+ def _get_script_args(cls, type_, name, header, script_text):
243
+ "For Windows, add a .py extension"
244
+ ext = dict(console='.pya', gui='.pyw')[type_]
245
+ if ext not in os.environ['PATHEXT'].lower().split(';'):
246
+ msg = (
247
+ "{ext} not listed in PATHEXT; scripts will not be "
248
+ "recognized as executables."
249
+ ).format(**locals())
250
+ SetuptoolsWarning.emit(msg)
251
+ old = ['.pya', '.py', '-script.py', '.pyc', '.pyo', '.pyw', '.exe']
252
+ old.remove(ext)
253
+ header = cls._adjust_header(type_, header)
254
+ blockers = [name + x for x in old]
255
+ yield name + ext, header + script_text, 't', blockers
256
+
257
+ @classmethod
258
+ def _adjust_header(cls, type_, orig_header):
259
+ """
260
+ Make sure 'pythonw' is used for gui and 'python' is used for
261
+ console (regardless of what sys.executable is).
262
+ """
263
+ pattern = 'pythonw.exe'
264
+ repl = 'python.exe'
265
+ if type_ == 'gui':
266
+ pattern, repl = repl, pattern
267
+ pattern_ob = re.compile(re.escape(pattern), re.IGNORECASE)
268
+ new_header = pattern_ob.sub(string=orig_header, repl=repl)
269
+ return new_header if cls._use_header(new_header) else orig_header
270
+
271
+ @staticmethod
272
+ def _use_header(new_header):
273
+ """
274
+ Should _adjust_header use the replaced header?
275
+
276
+ On non-windows systems, always use. On
277
+ Windows systems, only use the replaced header if it resolves
278
+ to an executable on the system.
279
+ """
280
+ clean_header = new_header[2:-1].strip('"')
281
+ return sys.platform != 'win32' or shutil.which(clean_header)
282
+
283
+
284
+ class WindowsExecutableLauncherWriter(WindowsScriptWriter):
285
+ @classmethod
286
+ def _get_script_args(cls, type_, name, header, script_text):
287
+ """
288
+ For Windows, add a .py extension and an .exe launcher
289
+ """
290
+ if type_ == 'gui':
291
+ launcher_type = 'gui'
292
+ ext = '-script.pyw'
293
+ old = ['.pyw']
294
+ else:
295
+ launcher_type = 'cli'
296
+ ext = '-script.py'
297
+ old = ['.py', '.pyc', '.pyo']
298
+ hdr = cls._adjust_header(type_, header)
299
+ blockers = [name + x for x in old]
300
+ yield (name + ext, hdr + script_text, 't', blockers)
301
+ yield (
302
+ name + '.exe',
303
+ get_win_launcher(launcher_type),
304
+ 'b', # write in binary mode
305
+ )
306
+ if not is_64bit():
307
+ # install a manifest for the launcher to prevent Windows
308
+ # from detecting it as an installer (which it will for
309
+ # launchers like easy_install.exe). Consider only
310
+ # adding a manifest for launchers detected as installers.
311
+ # See Distribute #143 for details.
312
+ m_name = name + '.exe.manifest'
313
+ yield (m_name, load_launcher_manifest(name), 't')
314
+
315
+
316
+ def get_win_launcher(type):
317
+ """
318
+ Load the Windows launcher (executable) suitable for launching a script.
319
+
320
+ `type` should be either 'cli' or 'gui'
321
+
322
+ Returns the executable as a byte string.
323
+ """
324
+ launcher_fn = f'{type}.exe'
325
+ if is_64bit():
326
+ if get_platform() == "win-arm64":
327
+ launcher_fn = launcher_fn.replace(".", "-arm64.")
328
+ else:
329
+ launcher_fn = launcher_fn.replace(".", "-64.")
330
+ else:
331
+ launcher_fn = launcher_fn.replace(".", "-32.")
332
+ return resources.files('setuptools').joinpath(launcher_fn).read_bytes()
333
+
334
+
335
+ def load_launcher_manifest(name):
336
+ res = resources.files(__name__).joinpath('launcher manifest.xml')
337
+ return res.read_text(encoding='utf-8') % vars()
338
+
339
+
340
+ def _first_line_re():
341
+ """
342
+ Return a regular expression based on first_line_re suitable for matching
343
+ strings.
344
+ """
345
+ if isinstance(first_line_re.pattern, str):
346
+ return first_line_re
347
+
348
+ # first_line_re in Python >=3.1.4 and >=3.2.1 is a bytes pattern.
349
+ return re.compile(first_line_re.pattern.decode())
350
+
351
+
352
+ def is_64bit():
353
+ return struct.calcsize("P") == 8
354
+
355
+
356
+ def isascii(s):
357
+ try:
358
+ s.encode('ascii')
359
+ except UnicodeError:
360
+ return False
361
+ return True
python/Lib/site-packages/setuptools/_shutil.py ADDED
@@ -0,0 +1,59 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ """Convenience layer on top of stdlib's shutil and os"""
2
+
3
+ import os
4
+ import stat
5
+ from typing import Callable, TypeVar
6
+
7
+ from .compat import py311
8
+
9
+ from distutils import log
10
+
11
+ try:
12
+ from os import chmod # pyright: ignore[reportAssignmentType]
13
+ # Losing type-safety w/ pyright, but that's ok
14
+ except ImportError: # pragma: no cover
15
+ # Jython compatibility
16
+ def chmod(*args: object, **kwargs: object) -> None: # type: ignore[misc] # Mypy reuses the imported definition anyway
17
+ pass
18
+
19
+
20
+ _T = TypeVar("_T")
21
+
22
+
23
+ def attempt_chmod_verbose(path, mode):
24
+ log.debug("changing mode of %s to %o", path, mode)
25
+ try:
26
+ chmod(path, mode)
27
+ except OSError as e: # pragma: no cover
28
+ log.debug("chmod failed: %s", e)
29
+
30
+
31
+ # Must match shutil._OnExcCallback
32
+ def _auto_chmod(
33
+ func: Callable[..., _T], arg: str, exc: BaseException
34
+ ) -> _T: # pragma: no cover
35
+ """shutils onexc callback to automatically call chmod for certain functions."""
36
+ # Only retry for scenarios known to have an issue
37
+ if func in [os.unlink, os.remove] and os.name == 'nt':
38
+ attempt_chmod_verbose(arg, stat.S_IWRITE)
39
+ return func(arg)
40
+ raise exc
41
+
42
+
43
+ def rmtree(path, ignore_errors=False, onexc=_auto_chmod):
44
+ """
45
+ Similar to ``shutil.rmtree`` but automatically executes ``chmod``
46
+ for well know Windows failure scenarios.
47
+ """
48
+ return py311.shutil_rmtree(path, ignore_errors, onexc)
49
+
50
+
51
+ def rmdir(path, **opts):
52
+ if os.path.isdir(path):
53
+ rmtree(path, **opts)
54
+
55
+
56
+ def current_umask():
57
+ tmp = os.umask(0o022)
58
+ os.umask(tmp)
59
+ return tmp
python/Lib/site-packages/setuptools/_static.py ADDED
@@ -0,0 +1,188 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ from functools import wraps
2
+ from typing import TypeVar
3
+
4
+ import packaging.specifiers
5
+
6
+ from .warnings import SetuptoolsDeprecationWarning
7
+
8
+
9
+ class Static:
10
+ """
11
+ Wrapper for built-in object types that are allow setuptools to identify
12
+ static core metadata (in opposition to ``Dynamic``, as defined :pep:`643`).
13
+
14
+ The trick is to mark values with :class:`Static` when they come from
15
+ ``pyproject.toml`` or ``setup.cfg``, so if any plugin overwrite the value
16
+ with a built-in, setuptools will be able to recognise the change.
17
+
18
+ We inherit from built-in classes, so that we don't need to change the existing
19
+ code base to deal with the new types.
20
+ We also should strive for immutability objects to avoid changes after the
21
+ initial parsing.
22
+ """
23
+
24
+ _mutated_: bool = False # TODO: Remove after deprecation warning is solved
25
+
26
+
27
+ def _prevent_modification(target: type, method: str, copying: str) -> None:
28
+ """
29
+ Because setuptools is very flexible we cannot fully prevent
30
+ plugins and user customizations from modifying static values that were
31
+ parsed from config files.
32
+ But we can attempt to block "in-place" mutations and identify when they
33
+ were done.
34
+ """
35
+ fn = getattr(target, method, None)
36
+ if fn is None:
37
+ return
38
+
39
+ @wraps(fn)
40
+ def _replacement(self: Static, *args, **kwargs):
41
+ # TODO: After deprecation period raise NotImplementedError instead of warning
42
+ # which obviated the existence and checks of the `_mutated_` attribute.
43
+ self._mutated_ = True
44
+ SetuptoolsDeprecationWarning.emit(
45
+ "Direct modification of value will be disallowed",
46
+ f"""
47
+ In an effort to implement PEP 643, direct/in-place changes of static values
48
+ that come from configuration files are deprecated.
49
+ If you need to modify this value, please first create a copy with {copying}
50
+ and make sure conform to all relevant standards when overriding setuptools
51
+ functionality (https://packaging.python.org/en/latest/specifications/).
52
+ """,
53
+ due_date=(2025, 10, 10), # Initially introduced in 2024-09-06
54
+ )
55
+ return fn(self, *args, **kwargs)
56
+
57
+ _replacement.__doc__ = "" # otherwise doctest may fail.
58
+ setattr(target, method, _replacement)
59
+
60
+
61
+ class Str(str, Static):
62
+ pass
63
+
64
+
65
+ class Tuple(tuple, Static):
66
+ pass
67
+
68
+
69
+ class List(list, Static):
70
+ """
71
+ :meta private:
72
+ >>> x = List([1, 2, 3])
73
+ >>> is_static(x)
74
+ True
75
+ >>> x += [0] # doctest: +IGNORE_EXCEPTION_DETAIL
76
+ Traceback (most recent call last):
77
+ SetuptoolsDeprecationWarning: Direct modification ...
78
+ >>> is_static(x) # no longer static after modification
79
+ False
80
+ >>> y = list(x)
81
+ >>> y.clear()
82
+ >>> y
83
+ []
84
+ >>> y == x
85
+ False
86
+ >>> is_static(List(y))
87
+ True
88
+ """
89
+
90
+
91
+ # Make `List` immutable-ish
92
+ # (certain places of setuptools/distutils issue a warn if we use tuple instead of list)
93
+ for _method in (
94
+ '__delitem__',
95
+ '__iadd__',
96
+ '__setitem__',
97
+ 'append',
98
+ 'clear',
99
+ 'extend',
100
+ 'insert',
101
+ 'remove',
102
+ 'reverse',
103
+ 'pop',
104
+ ):
105
+ _prevent_modification(List, _method, "`list(value)`")
106
+
107
+
108
+ class Dict(dict, Static):
109
+ """
110
+ :meta private:
111
+ >>> x = Dict({'a': 1, 'b': 2})
112
+ >>> is_static(x)
113
+ True
114
+ >>> x['c'] = 0 # doctest: +IGNORE_EXCEPTION_DETAIL
115
+ Traceback (most recent call last):
116
+ SetuptoolsDeprecationWarning: Direct modification ...
117
+ >>> x._mutated_
118
+ True
119
+ >>> is_static(x) # no longer static after modification
120
+ False
121
+ >>> y = dict(x)
122
+ >>> y.popitem()
123
+ ('b', 2)
124
+ >>> y == x
125
+ False
126
+ >>> is_static(Dict(y))
127
+ True
128
+ """
129
+
130
+
131
+ # Make `Dict` immutable-ish (we cannot inherit from types.MappingProxyType):
132
+ for _method in (
133
+ '__delitem__',
134
+ '__ior__',
135
+ '__setitem__',
136
+ 'clear',
137
+ 'pop',
138
+ 'popitem',
139
+ 'setdefault',
140
+ 'update',
141
+ ):
142
+ _prevent_modification(Dict, _method, "`dict(value)`")
143
+
144
+
145
+ class SpecifierSet(packaging.specifiers.SpecifierSet, Static):
146
+ """Not exactly a built-in type but useful for ``requires-python``"""
147
+
148
+
149
+ T = TypeVar("T")
150
+
151
+
152
+ def noop(value: T) -> T:
153
+ """
154
+ >>> noop(42)
155
+ 42
156
+ """
157
+ return value
158
+
159
+
160
+ _CONVERSIONS = {str: Str, tuple: Tuple, list: List, dict: Dict}
161
+
162
+
163
+ def attempt_conversion(value: T) -> T:
164
+ """
165
+ >>> is_static(attempt_conversion("hello"))
166
+ True
167
+ >>> is_static(object())
168
+ False
169
+ """
170
+ return _CONVERSIONS.get(type(value), noop)(value) # type: ignore[call-overload]
171
+
172
+
173
+ def is_static(value: object) -> bool:
174
+ """
175
+ >>> is_static(a := Dict({'a': 1}))
176
+ True
177
+ >>> is_static(dict(a))
178
+ False
179
+ >>> is_static(b := List([1, 2, 3]))
180
+ True
181
+ >>> is_static(list(b))
182
+ False
183
+ """
184
+ return isinstance(value, Static) and not value._mutated_
185
+
186
+
187
+ EMPTY_LIST = List()
188
+ EMPTY_DICT = Dict()
python/Lib/site-packages/setuptools/command/alias.py ADDED
@@ -0,0 +1,77 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ from setuptools.command.setopt import config_file, edit_config, option_base
2
+
3
+ from distutils.errors import DistutilsOptionError
4
+
5
+
6
+ def shquote(arg):
7
+ """Quote an argument for later parsing by shlex.split()"""
8
+ for c in '"', "'", "\\", "#":
9
+ if c in arg:
10
+ return repr(arg)
11
+ if arg.split() != [arg]:
12
+ return repr(arg)
13
+ return arg
14
+
15
+
16
+ class alias(option_base):
17
+ """Define a shortcut that invokes one or more commands"""
18
+
19
+ description = "define a shortcut to invoke one or more commands"
20
+ command_consumes_arguments = True
21
+
22
+ user_options = [
23
+ ('remove', 'r', 'remove (unset) the alias'),
24
+ ] + option_base.user_options
25
+
26
+ boolean_options = option_base.boolean_options + ['remove']
27
+
28
+ def initialize_options(self):
29
+ option_base.initialize_options(self)
30
+ self.args = None
31
+ self.remove = None
32
+
33
+ def finalize_options(self) -> None:
34
+ option_base.finalize_options(self)
35
+ if self.remove and len(self.args) != 1:
36
+ raise DistutilsOptionError(
37
+ "Must specify exactly one argument (the alias name) when using --remove"
38
+ )
39
+
40
+ def run(self) -> None:
41
+ aliases = self.distribution.get_option_dict('aliases')
42
+
43
+ if not self.args:
44
+ print("Command Aliases")
45
+ print("---------------")
46
+ for alias in aliases:
47
+ print("setup.py alias", format_alias(alias, aliases))
48
+ return
49
+
50
+ elif len(self.args) == 1:
51
+ (alias,) = self.args
52
+ if self.remove:
53
+ command = None
54
+ elif alias in aliases:
55
+ print("setup.py alias", format_alias(alias, aliases))
56
+ return
57
+ else:
58
+ print(f"No alias definition found for {alias!r}")
59
+ return
60
+ else:
61
+ alias = self.args[0]
62
+ command = ' '.join(map(shquote, self.args[1:]))
63
+
64
+ edit_config(self.filename, {'aliases': {alias: command}})
65
+
66
+
67
+ def format_alias(name, aliases):
68
+ source, command = aliases[name]
69
+ if source == config_file('global'):
70
+ source = '--global-config '
71
+ elif source == config_file('user'):
72
+ source = '--user-config '
73
+ elif source == config_file('local'):
74
+ source = ''
75
+ else:
76
+ source = f'--filename={source!r}'
77
+ return source + name + ' ' + command
python/Lib/site-packages/setuptools/command/bdist_egg.py ADDED
@@ -0,0 +1,471 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ """setuptools.command.bdist_egg
2
+
3
+ Build .egg distributions"""
4
+
5
+ from __future__ import annotations
6
+
7
+ import marshal
8
+ import os
9
+ import re
10
+ import sys
11
+ import textwrap
12
+ from collections.abc import Iterator
13
+ from sysconfig import get_path, get_platform, get_python_version
14
+ from types import CodeType
15
+ from typing import TYPE_CHECKING, AnyStr, Literal
16
+
17
+ from setuptools import Command
18
+ from setuptools.extension import Library
19
+
20
+ from .._path import StrPath, StrPathT, ensure_directory
21
+
22
+ from distutils import log
23
+ from distutils.dir_util import mkpath, remove_tree
24
+
25
+ if TYPE_CHECKING:
26
+ from _typeshed import GenericPath
27
+ from typing_extensions import TypeAlias
28
+
29
+ # Same as zipfile._ZipFileMode from typeshed
30
+ _ZipFileMode: TypeAlias = Literal["r", "w", "x", "a"]
31
+
32
+
33
+ def _get_purelib():
34
+ return get_path("purelib")
35
+
36
+
37
+ def strip_module(filename):
38
+ if '.' in filename:
39
+ filename = os.path.splitext(filename)[0]
40
+ filename = filename.removesuffix('module')
41
+ return filename
42
+
43
+
44
+ def sorted_walk(
45
+ dir: GenericPath[AnyStr],
46
+ ) -> Iterator[tuple[AnyStr, list[AnyStr], list[AnyStr]]]:
47
+ """Do os.walk in a reproducible way,
48
+ independent of indeterministic filesystem readdir order
49
+ """
50
+ for base, dirs, files in os.walk(dir):
51
+ dirs.sort()
52
+ files.sort()
53
+ yield base, dirs, files
54
+
55
+
56
+ def write_stub(resource, pyfile) -> None:
57
+ _stub_template = textwrap.dedent(
58
+ """
59
+ def __bootstrap__():
60
+ global __bootstrap__, __loader__, __file__
61
+ import sys, importlib.resources as irs, importlib.util
62
+ with irs.as_file(irs.files(__name__).joinpath(%r)) as __file__:
63
+ __loader__ = None; del __bootstrap__, __loader__
64
+ spec = importlib.util.spec_from_file_location(__name__,__file__)
65
+ mod = importlib.util.module_from_spec(spec)
66
+ spec.loader.exec_module(mod)
67
+ __bootstrap__()
68
+ """
69
+ ).lstrip()
70
+ with open(pyfile, 'w', encoding="utf-8") as f:
71
+ f.write(_stub_template % resource)
72
+
73
+
74
+ class bdist_egg(Command):
75
+ description = 'create an "egg" distribution'
76
+
77
+ user_options = [
78
+ ('bdist-dir=', 'b', "temporary directory for creating the distribution"),
79
+ (
80
+ 'plat-name=',
81
+ 'p',
82
+ "platform name to embed in generated filenames "
83
+ "(by default uses `sysconfig.get_platform()`)",
84
+ ),
85
+ ('exclude-source-files', None, "remove all .py files from the generated egg"),
86
+ (
87
+ 'keep-temp',
88
+ 'k',
89
+ "keep the pseudo-installation tree around after "
90
+ "creating the distribution archive",
91
+ ),
92
+ ('dist-dir=', 'd', "directory to put final built distributions in"),
93
+ ('skip-build', None, "skip rebuilding everything (for testing/debugging)"),
94
+ ]
95
+
96
+ boolean_options = ['keep-temp', 'skip-build', 'exclude-source-files']
97
+
98
+ def initialize_options(self):
99
+ self.bdist_dir = None
100
+ self.plat_name = None
101
+ self.keep_temp = False
102
+ self.dist_dir = None
103
+ self.skip_build = False
104
+ self.egg_output = None
105
+ self.exclude_source_files = None
106
+
107
+ def finalize_options(self) -> None:
108
+ ei_cmd = self.ei_cmd = self.get_finalized_command("egg_info")
109
+ self.egg_info = ei_cmd.egg_info
110
+
111
+ if self.bdist_dir is None:
112
+ bdist_base = self.get_finalized_command('bdist').bdist_base
113
+ self.bdist_dir = os.path.join(bdist_base, 'egg')
114
+
115
+ if self.plat_name is None:
116
+ self.plat_name = get_platform()
117
+
118
+ self.set_undefined_options('bdist', ('dist_dir', 'dist_dir'))
119
+
120
+ if self.egg_output is None:
121
+ # Compute filename of the output egg
122
+ basename = ei_cmd._get_egg_basename(
123
+ py_version=get_python_version(),
124
+ platform=self.distribution.has_ext_modules() and self.plat_name,
125
+ )
126
+
127
+ self.egg_output = os.path.join(self.dist_dir, basename + '.egg')
128
+
129
+ def do_install_data(self) -> None:
130
+ # Hack for packages that install data to install's --install-lib
131
+ self.get_finalized_command('install').install_lib = self.bdist_dir
132
+
133
+ site_packages = os.path.normcase(os.path.realpath(_get_purelib()))
134
+ old, self.distribution.data_files = self.distribution.data_files, []
135
+
136
+ for item in old:
137
+ if isinstance(item, tuple) and len(item) == 2:
138
+ if os.path.isabs(item[0]):
139
+ realpath = os.path.realpath(item[0])
140
+ normalized = os.path.normcase(realpath)
141
+ if normalized == site_packages or normalized.startswith(
142
+ site_packages + os.sep
143
+ ):
144
+ item = realpath[len(site_packages) + 1 :], item[1]
145
+ # XXX else: raise ???
146
+ self.distribution.data_files.append(item)
147
+
148
+ try:
149
+ log.info("installing package data to %s", self.bdist_dir)
150
+ self.call_command('install_data', force=False, root=None)
151
+ finally:
152
+ self.distribution.data_files = old
153
+
154
+ def get_outputs(self):
155
+ return [self.egg_output]
156
+
157
+ def call_command(self, cmdname, **kw):
158
+ """Invoke reinitialized command `cmdname` with keyword args"""
159
+ for dirname in INSTALL_DIRECTORY_ATTRS:
160
+ kw.setdefault(dirname, self.bdist_dir)
161
+ kw.setdefault('skip_build', self.skip_build)
162
+ cmd = self.reinitialize_command(cmdname, **kw)
163
+ self.run_command(cmdname)
164
+ return cmd
165
+
166
+ def run(self) -> None: # noqa: C901 # is too complex (14) # FIXME
167
+ # Generate metadata first
168
+ self.run_command("egg_info")
169
+ # We run install_lib before install_data, because some data hacks
170
+ # pull their data path from the install_lib command.
171
+ log.info("installing library code to %s", self.bdist_dir)
172
+ instcmd = self.get_finalized_command('install')
173
+ old_root = instcmd.root
174
+ instcmd.root = None
175
+ if self.distribution.has_c_libraries() and not self.skip_build:
176
+ self.run_command('build_clib')
177
+ cmd = self.call_command('install_lib', warn_dir=False)
178
+ instcmd.root = old_root
179
+
180
+ all_outputs, ext_outputs = self.get_ext_outputs()
181
+ self.stubs = []
182
+ to_compile = []
183
+ for p, ext_name in enumerate(ext_outputs):
184
+ filename, _ext = os.path.splitext(ext_name)
185
+ pyfile = os.path.join(self.bdist_dir, strip_module(filename) + '.py')
186
+ self.stubs.append(pyfile)
187
+ log.info("creating stub loader for %s", ext_name)
188
+ write_stub(os.path.basename(ext_name), pyfile)
189
+ to_compile.append(pyfile)
190
+ ext_outputs[p] = ext_name.replace(os.sep, '/')
191
+
192
+ if to_compile:
193
+ cmd.byte_compile(to_compile)
194
+ if self.distribution.data_files:
195
+ self.do_install_data()
196
+
197
+ # Make the EGG-INFO directory
198
+ archive_root = self.bdist_dir
199
+ egg_info = os.path.join(archive_root, 'EGG-INFO')
200
+ self.mkpath(egg_info)
201
+ if self.distribution.scripts:
202
+ script_dir = os.path.join(egg_info, 'scripts')
203
+ log.info("installing scripts to %s", script_dir)
204
+ self.call_command('install_scripts', install_dir=script_dir, no_ep=True)
205
+
206
+ self.copy_metadata_to(egg_info)
207
+ native_libs = os.path.join(egg_info, "native_libs.txt")
208
+ if all_outputs:
209
+ log.info("writing %s", native_libs)
210
+ ensure_directory(native_libs)
211
+ with open(native_libs, 'wt', encoding="utf-8") as libs_file:
212
+ libs_file.write('\n'.join(all_outputs))
213
+ libs_file.write('\n')
214
+ elif os.path.isfile(native_libs):
215
+ log.info("removing %s", native_libs)
216
+ os.unlink(native_libs)
217
+
218
+ write_safety_flag(os.path.join(archive_root, 'EGG-INFO'), self.zip_safe())
219
+
220
+ if os.path.exists(os.path.join(self.egg_info, 'depends.txt')):
221
+ log.warn(
222
+ "WARNING: 'depends.txt' will not be used by setuptools 0.6!\n"
223
+ "Use the install_requires/extras_require setup() args instead."
224
+ )
225
+
226
+ if self.exclude_source_files:
227
+ self.zap_pyfiles()
228
+
229
+ # Make the archive
230
+ make_zipfile(
231
+ self.egg_output,
232
+ archive_root,
233
+ verbose=self.verbose,
234
+ mode=self.gen_header(),
235
+ )
236
+ if not self.keep_temp:
237
+ remove_tree(self.bdist_dir)
238
+
239
+ # Add to 'Distribution.dist_files' so that the "upload" command works
240
+ getattr(self.distribution, 'dist_files', []).append((
241
+ 'bdist_egg',
242
+ get_python_version(),
243
+ self.egg_output,
244
+ ))
245
+
246
+ def zap_pyfiles(self) -> None:
247
+ log.info("Removing .py files from temporary directory")
248
+ for base, dirs, files in walk_egg(self.bdist_dir):
249
+ for name in files:
250
+ path = os.path.join(base, name)
251
+
252
+ if name.endswith('.py'):
253
+ log.debug("Deleting %s", path)
254
+ os.unlink(path)
255
+
256
+ if base.endswith('__pycache__'):
257
+ path_old = path
258
+
259
+ pattern = r'(?P<name>.+)\.(?P<magic>[^.]+)\.pyc'
260
+ m = re.match(pattern, name)
261
+ # We shouldn't find any non-pyc files in __pycache__
262
+ assert m is not None
263
+ path_new = os.path.join(base, os.pardir, m.group('name') + '.pyc')
264
+ log.info(f"Renaming file from [{path_old}] to [{path_new}]")
265
+ try:
266
+ os.remove(path_new)
267
+ except OSError:
268
+ pass
269
+ os.rename(path_old, path_new)
270
+
271
+ def zip_safe(self):
272
+ safe = getattr(self.distribution, 'zip_safe', None)
273
+ if safe is not None:
274
+ return safe
275
+ log.warn("zip_safe flag not set; analyzing archive contents...")
276
+ return analyze_egg(self.bdist_dir, self.stubs)
277
+
278
+ def gen_header(self) -> Literal["w"]:
279
+ return 'w'
280
+
281
+ def copy_metadata_to(self, target_dir) -> None:
282
+ "Copy metadata (egg info) to the target_dir"
283
+ # normalize the path (so that a forward-slash in egg_info will
284
+ # match using startswith below)
285
+ norm_egg_info = os.path.normpath(self.egg_info)
286
+ prefix = os.path.join(norm_egg_info, '')
287
+ for path in self.ei_cmd.filelist.files:
288
+ if path.startswith(prefix):
289
+ target = os.path.join(target_dir, path[len(prefix) :])
290
+ ensure_directory(target)
291
+ self.copy_file(path, target)
292
+
293
+ def get_ext_outputs(self):
294
+ """Get a list of relative paths to C extensions in the output distro"""
295
+
296
+ all_outputs = []
297
+ ext_outputs = []
298
+
299
+ paths = {self.bdist_dir: ''}
300
+ for base, dirs, files in sorted_walk(self.bdist_dir):
301
+ all_outputs.extend(
302
+ paths[base] + filename
303
+ for filename in files
304
+ if os.path.splitext(filename)[1].lower() in NATIVE_EXTENSIONS
305
+ )
306
+ for filename in dirs:
307
+ paths[os.path.join(base, filename)] = paths[base] + filename + '/'
308
+
309
+ if self.distribution.has_ext_modules():
310
+ build_cmd = self.get_finalized_command('build_ext')
311
+ for ext in build_cmd.extensions:
312
+ if isinstance(ext, Library):
313
+ continue
314
+ fullname = build_cmd.get_ext_fullname(ext.name)
315
+ filename = build_cmd.get_ext_filename(fullname)
316
+ if not os.path.basename(filename).startswith('dl-'):
317
+ if os.path.exists(os.path.join(self.bdist_dir, filename)):
318
+ ext_outputs.append(filename)
319
+
320
+ return all_outputs, ext_outputs
321
+
322
+
323
+ NATIVE_EXTENSIONS: dict[str, None] = dict.fromkeys('.dll .so .dylib .pyd'.split())
324
+
325
+
326
+ def walk_egg(egg_dir: StrPath) -> Iterator[tuple[str, list[str], list[str]]]:
327
+ """Walk an unpacked egg's contents, skipping the metadata directory"""
328
+ walker = sorted_walk(egg_dir)
329
+ base, dirs, files = next(walker)
330
+ if 'EGG-INFO' in dirs:
331
+ dirs.remove('EGG-INFO')
332
+ yield base, dirs, files
333
+ yield from walker
334
+
335
+
336
+ def analyze_egg(egg_dir, stubs):
337
+ # check for existing flag in EGG-INFO
338
+ for flag, fn in safety_flags.items():
339
+ if os.path.exists(os.path.join(egg_dir, 'EGG-INFO', fn)):
340
+ return flag
341
+ if not can_scan():
342
+ return False
343
+ safe = True
344
+ for base, dirs, files in walk_egg(egg_dir):
345
+ for name in files:
346
+ if name.endswith(('.py', '.pyw')):
347
+ continue
348
+ elif name.endswith(('.pyc', '.pyo')):
349
+ # always scan, even if we already know we're not safe
350
+ safe = scan_module(egg_dir, base, name, stubs) and safe
351
+ return safe
352
+
353
+
354
+ def write_safety_flag(egg_dir, safe) -> None:
355
+ # Write or remove zip safety flag file(s)
356
+ for flag, fn in safety_flags.items():
357
+ fn = os.path.join(egg_dir, fn)
358
+ if os.path.exists(fn):
359
+ if safe is None or bool(safe) != flag:
360
+ os.unlink(fn)
361
+ elif safe is not None and bool(safe) == flag:
362
+ with open(fn, 'wt', encoding="utf-8") as f:
363
+ f.write('\n')
364
+
365
+
366
+ safety_flags = {
367
+ True: 'zip-safe',
368
+ False: 'not-zip-safe',
369
+ }
370
+
371
+
372
+ def scan_module(egg_dir, base, name, stubs):
373
+ """Check whether module possibly uses unsafe-for-zipfile stuff"""
374
+
375
+ filename = os.path.join(base, name)
376
+ if filename[:-1] in stubs:
377
+ return True # Extension module
378
+ pkg = base[len(egg_dir) + 1 :].replace(os.sep, '.')
379
+ module = pkg + (pkg and '.' or '') + os.path.splitext(name)[0]
380
+ skip = 16 # skip magic & reserved? & date & file size
381
+ f = open(filename, 'rb')
382
+ f.read(skip)
383
+ code = marshal.load(f)
384
+ f.close()
385
+ safe = True
386
+ symbols = dict.fromkeys(iter_symbols(code))
387
+ for bad in ['__file__', '__path__']:
388
+ if bad in symbols:
389
+ log.warn("%s: module references %s", module, bad)
390
+ safe = False
391
+ if 'inspect' in symbols:
392
+ for bad in [
393
+ 'getsource',
394
+ 'getabsfile',
395
+ 'getfile',
396
+ 'getsourcefile',
397
+ 'getsourcelines',
398
+ 'findsource',
399
+ 'getcomments',
400
+ 'getframeinfo',
401
+ 'getinnerframes',
402
+ 'getouterframes',
403
+ 'stack',
404
+ 'trace',
405
+ ]:
406
+ if bad in symbols:
407
+ log.warn("%s: module MAY be using inspect.%s", module, bad)
408
+ safe = False
409
+ return safe
410
+
411
+
412
+ def iter_symbols(code: CodeType) -> Iterator[str]:
413
+ """Yield names and strings used by `code` and its nested code objects"""
414
+ yield from code.co_names
415
+ for const in code.co_consts:
416
+ if isinstance(const, str):
417
+ yield const
418
+ elif isinstance(const, CodeType):
419
+ yield from iter_symbols(const)
420
+
421
+
422
+ def can_scan() -> bool:
423
+ if not sys.platform.startswith('java') and sys.platform != 'cli':
424
+ # CPython, PyPy, etc.
425
+ return True
426
+ log.warn("Unable to analyze compiled code on this platform.")
427
+ log.warn(
428
+ "Please ask the author to include a 'zip_safe'"
429
+ " setting (either True or False) in the package's setup.py"
430
+ )
431
+ return False
432
+
433
+
434
+ # Attribute names of options for commands that might need to be convinced to
435
+ # install to the egg build directory
436
+
437
+ INSTALL_DIRECTORY_ATTRS = ['install_lib', 'install_dir', 'install_data', 'install_base']
438
+
439
+
440
+ def make_zipfile(
441
+ zip_filename: StrPathT,
442
+ base_dir,
443
+ verbose: bool = False,
444
+ compress=True,
445
+ mode: _ZipFileMode = 'w',
446
+ ) -> StrPathT:
447
+ """Create a zip file from all the files under 'base_dir'. The output
448
+ zip file will be named 'base_dir' + ".zip". Uses either the "zipfile"
449
+ Python module (if available) or the InfoZIP "zip" utility (if installed
450
+ and found on the default search path). If neither tool is available,
451
+ raises DistutilsExecError. Returns the name of the output zip file.
452
+ """
453
+ import zipfile
454
+
455
+ mkpath(os.path.dirname(zip_filename)) # type: ignore[arg-type] # python/mypy#18075
456
+ log.info("creating '%s' and adding '%s' to it", zip_filename, base_dir)
457
+
458
+ def visit(z, dirname, names):
459
+ for name in names:
460
+ path = os.path.normpath(os.path.join(dirname, name))
461
+ if os.path.isfile(path):
462
+ p = path[len(base_dir) + 1 :]
463
+ z.write(path, p)
464
+ log.debug("adding '%s'", p)
465
+
466
+ compression = zipfile.ZIP_DEFLATED if compress else zipfile.ZIP_STORED
467
+ z = zipfile.ZipFile(zip_filename, mode, compression=compression)
468
+ for dirname, dirs, files in sorted_walk(base_dir):
469
+ visit(z, dirname, files)
470
+ z.close()
471
+ return zip_filename
python/Lib/site-packages/setuptools/modified.py ADDED
@@ -0,0 +1,18 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ try:
2
+ # Ensure a DistutilsError raised by these methods is the same as distutils.errors.DistutilsError
3
+ from distutils._modified import (
4
+ newer,
5
+ newer_group,
6
+ newer_pairwise,
7
+ newer_pairwise_group,
8
+ )
9
+ except ImportError:
10
+ # fallback for SETUPTOOLS_USE_DISTUTILS=stdlib, because _modified never existed in stdlib
11
+ from ._distutils._modified import (
12
+ newer,
13
+ newer_group,
14
+ newer_pairwise,
15
+ newer_pairwise_group,
16
+ )
17
+
18
+ __all__ = ['newer', 'newer_pairwise', 'newer_group', 'newer_pairwise_group']
python/Lib/site-packages/setuptools/monkey.py ADDED
@@ -0,0 +1,126 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ """
2
+ Monkey patching of distutils.
3
+ """
4
+
5
+ from __future__ import annotations
6
+
7
+ import inspect
8
+ import platform
9
+ import sys
10
+ import types
11
+ from typing import TypeVar, cast, overload
12
+
13
+ import distutils.filelist
14
+
15
+ _T = TypeVar("_T")
16
+ _UnpatchT = TypeVar("_UnpatchT", type, types.FunctionType)
17
+
18
+
19
+ __all__: list[str] = []
20
+ """
21
+ Everything is private. Contact the project team
22
+ if you think you need this functionality.
23
+ """
24
+
25
+
26
+ def _get_mro(cls):
27
+ """
28
+ Returns the bases classes for cls sorted by the MRO.
29
+
30
+ Works around an issue on Jython where inspect.getmro will not return all
31
+ base classes if multiple classes share the same name. Instead, this
32
+ function will return a tuple containing the class itself, and the contents
33
+ of cls.__bases__. See https://github.com/pypa/setuptools/issues/1024.
34
+ """
35
+ if platform.python_implementation() == "Jython":
36
+ return (cls,) + cls.__bases__
37
+ return inspect.getmro(cls)
38
+
39
+
40
+ @overload
41
+ def get_unpatched(item: _UnpatchT) -> _UnpatchT: ...
42
+ @overload
43
+ def get_unpatched(item: object) -> None: ...
44
+ def get_unpatched(
45
+ item: type | types.FunctionType | object,
46
+ ) -> type | types.FunctionType | None:
47
+ if isinstance(item, type):
48
+ return get_unpatched_class(item)
49
+ if isinstance(item, types.FunctionType):
50
+ return get_unpatched_function(item)
51
+ return None
52
+
53
+
54
+ def get_unpatched_class(cls: type[_T]) -> type[_T]:
55
+ """Protect against re-patching the distutils if reloaded
56
+
57
+ Also ensures that no other distutils extension monkeypatched the distutils
58
+ first.
59
+ """
60
+ external_bases = (
61
+ cast(type[_T], cls)
62
+ for cls in _get_mro(cls)
63
+ if not cls.__module__.startswith('setuptools')
64
+ )
65
+ base = next(external_bases)
66
+ if not base.__module__.startswith('distutils'):
67
+ msg = f"distutils has already been patched by {cls!r}"
68
+ raise AssertionError(msg)
69
+ return base
70
+
71
+
72
+ def patch_all() -> None:
73
+ import setuptools
74
+
75
+ # we can't patch distutils.cmd, alas
76
+ distutils.core.Command = setuptools.Command # type: ignore[misc,assignment] # monkeypatching
77
+
78
+ _patch_distribution_metadata()
79
+
80
+ # Install Distribution throughout the distutils
81
+ for module in distutils.dist, distutils.core, distutils.cmd:
82
+ module.Distribution = setuptools.dist.Distribution
83
+
84
+ # Install the patched Extension
85
+ distutils.core.Extension = setuptools.extension.Extension # type: ignore[misc,assignment] # monkeypatching
86
+ distutils.extension.Extension = setuptools.extension.Extension # type: ignore[misc,assignment] # monkeypatching
87
+ if 'distutils.command.build_ext' in sys.modules:
88
+ sys.modules[
89
+ 'distutils.command.build_ext'
90
+ ].Extension = setuptools.extension.Extension
91
+
92
+
93
+ def _patch_distribution_metadata():
94
+ from . import _core_metadata
95
+
96
+ """Patch write_pkg_file and read_pkg_file for higher metadata standards"""
97
+ for attr in (
98
+ 'write_pkg_info',
99
+ 'write_pkg_file',
100
+ 'read_pkg_file',
101
+ 'get_metadata_version',
102
+ 'get_fullname',
103
+ ):
104
+ new_val = getattr(_core_metadata, attr)
105
+ setattr(distutils.dist.DistributionMetadata, attr, new_val)
106
+
107
+
108
+ def patch_func(replacement, target_mod, func_name) -> None:
109
+ """
110
+ Patch func_name in target_mod with replacement
111
+
112
+ Important - original must be resolved by name to avoid
113
+ patching an already patched function.
114
+ """
115
+ original = getattr(target_mod, func_name)
116
+
117
+ # set the 'unpatched' attribute on the replacement to
118
+ # point to the original.
119
+ vars(replacement).setdefault('unpatched', original)
120
+
121
+ # replace the function in the original module
122
+ setattr(target_mod, func_name, replacement)
123
+
124
+
125
+ def get_unpatched_function(candidate):
126
+ return candidate.unpatched
python/Lib/site-packages/setuptools/msvc.py ADDED
@@ -0,0 +1,1557 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ """
2
+ Environment info about Microsoft Compilers.
3
+
4
+ >>> getfixture('windows_only')
5
+ >>> ei = EnvironmentInfo('amd64')
6
+ """
7
+
8
+ from __future__ import annotations
9
+
10
+ import contextlib
11
+ import itertools
12
+ import json
13
+ import os
14
+ import os.path
15
+ import platform
16
+ from typing import TYPE_CHECKING, TypedDict, overload
17
+
18
+ from more_itertools import unique_everseen
19
+
20
+ from ._path import StrPath
21
+ from .compat import py310
22
+
23
+ import distutils.errors
24
+
25
+ if TYPE_CHECKING:
26
+ from typing_extensions import LiteralString, NotRequired
27
+
28
+ # https://github.com/python/mypy/issues/8166
29
+ if not TYPE_CHECKING and platform.system() == 'Windows':
30
+ import winreg
31
+ from os import environ
32
+ else:
33
+ # Mock winreg and environ so the module can be imported on this platform.
34
+
35
+ class winreg:
36
+ HKEY_USERS = None
37
+ HKEY_CURRENT_USER = None
38
+ HKEY_LOCAL_MACHINE = None
39
+ HKEY_CLASSES_ROOT = None
40
+
41
+ environ: dict[str, str] = dict()
42
+
43
+
44
+ class PlatformInfo:
45
+ """
46
+ Current and Target Architectures information.
47
+
48
+ Parameters
49
+ ----------
50
+ arch: str
51
+ Target architecture.
52
+ """
53
+
54
+ current_cpu = environ.get('processor_architecture', '').lower()
55
+
56
+ def __init__(self, arch: str) -> None:
57
+ self.arch = arch.lower().replace('x64', 'amd64')
58
+
59
+ @property
60
+ def target_cpu(self) -> str:
61
+ """
62
+ Return Target CPU architecture.
63
+
64
+ Return
65
+ ------
66
+ str
67
+ Target CPU
68
+ """
69
+ return self.arch[self.arch.find('_') + 1 :]
70
+
71
+ def target_is_x86(self) -> bool:
72
+ """
73
+ Return True if target CPU is x86 32 bits..
74
+
75
+ Return
76
+ ------
77
+ bool
78
+ CPU is x86 32 bits
79
+ """
80
+ return self.target_cpu == 'x86'
81
+
82
+ def current_is_x86(self) -> bool:
83
+ """
84
+ Return True if current CPU is x86 32 bits..
85
+
86
+ Return
87
+ ------
88
+ bool
89
+ CPU is x86 32 bits
90
+ """
91
+ return self.current_cpu == 'x86'
92
+
93
+ def current_dir(self, hidex86=False, x64=False) -> str:
94
+ """
95
+ Current platform specific subfolder.
96
+
97
+ Parameters
98
+ ----------
99
+ hidex86: bool
100
+ return '' and not '\x86' if architecture is x86.
101
+ x64: bool
102
+ return '\x64' and not '\amd64' if architecture is amd64.
103
+
104
+ Return
105
+ ------
106
+ str
107
+ subfolder: '\target', or '' (see hidex86 parameter)
108
+ """
109
+ return (
110
+ ''
111
+ if (self.current_cpu == 'x86' and hidex86)
112
+ else r'\x64'
113
+ if (self.current_cpu == 'amd64' and x64)
114
+ else rf'\{self.current_cpu}'
115
+ )
116
+
117
+ def target_dir(self, hidex86=False, x64=False) -> str:
118
+ r"""
119
+ Target platform specific subfolder.
120
+
121
+ Parameters
122
+ ----------
123
+ hidex86: bool
124
+ return '' and not '\x86' if architecture is x86.
125
+ x64: bool
126
+ return '\x64' and not '\amd64' if architecture is amd64.
127
+
128
+ Return
129
+ ------
130
+ str
131
+ subfolder: '\current', or '' (see hidex86 parameter)
132
+ """
133
+ return (
134
+ ''
135
+ if (self.target_cpu == 'x86' and hidex86)
136
+ else r'\x64'
137
+ if (self.target_cpu == 'amd64' and x64)
138
+ else rf'\{self.target_cpu}'
139
+ )
140
+
141
+ def cross_dir(self, forcex86=False) -> str:
142
+ r"""
143
+ Cross platform specific subfolder.
144
+
145
+ Parameters
146
+ ----------
147
+ forcex86: bool
148
+ Use 'x86' as current architecture even if current architecture is
149
+ not x86.
150
+
151
+ Return
152
+ ------
153
+ str
154
+ subfolder: '' if target architecture is current architecture,
155
+ '\current_target' if not.
156
+ """
157
+ current = 'x86' if forcex86 else self.current_cpu
158
+ return (
159
+ ''
160
+ if self.target_cpu == current
161
+ else self.target_dir().replace('\\', f'\\{current}_')
162
+ )
163
+
164
+
165
+ class RegistryInfo:
166
+ """
167
+ Microsoft Visual Studio related registry information.
168
+
169
+ Parameters
170
+ ----------
171
+ platform_info: PlatformInfo
172
+ "PlatformInfo" instance.
173
+ """
174
+
175
+ HKEYS = (
176
+ winreg.HKEY_USERS,
177
+ winreg.HKEY_CURRENT_USER,
178
+ winreg.HKEY_LOCAL_MACHINE,
179
+ winreg.HKEY_CLASSES_ROOT,
180
+ )
181
+
182
+ def __init__(self, platform_info: PlatformInfo) -> None:
183
+ self.pi = platform_info
184
+
185
+ @property
186
+ def visualstudio(self) -> LiteralString:
187
+ """
188
+ Microsoft Visual Studio root registry key.
189
+
190
+ Return
191
+ ------
192
+ str
193
+ Registry key
194
+ """
195
+ return 'VisualStudio'
196
+
197
+ @property
198
+ def sxs(self) -> LiteralString:
199
+ """
200
+ Microsoft Visual Studio SxS registry key.
201
+
202
+ Return
203
+ ------
204
+ str
205
+ Registry key
206
+ """
207
+ return os.path.join(self.visualstudio, 'SxS')
208
+
209
+ @property
210
+ def vc(self) -> LiteralString:
211
+ """
212
+ Microsoft Visual C++ VC7 registry key.
213
+
214
+ Return
215
+ ------
216
+ str
217
+ Registry key
218
+ """
219
+ return os.path.join(self.sxs, 'VC7')
220
+
221
+ @property
222
+ def vs(self) -> LiteralString:
223
+ """
224
+ Microsoft Visual Studio VS7 registry key.
225
+
226
+ Return
227
+ ------
228
+ str
229
+ Registry key
230
+ """
231
+ return os.path.join(self.sxs, 'VS7')
232
+
233
+ @property
234
+ def vc_for_python(self) -> LiteralString:
235
+ """
236
+ Microsoft Visual C++ for Python registry key.
237
+
238
+ Return
239
+ ------
240
+ str
241
+ Registry key
242
+ """
243
+ return r'DevDiv\VCForPython'
244
+
245
+ @property
246
+ def microsoft_sdk(self) -> LiteralString:
247
+ """
248
+ Microsoft SDK registry key.
249
+
250
+ Return
251
+ ------
252
+ str
253
+ Registry key
254
+ """
255
+ return 'Microsoft SDKs'
256
+
257
+ @property
258
+ def windows_sdk(self) -> LiteralString:
259
+ """
260
+ Microsoft Windows/Platform SDK registry key.
261
+
262
+ Return
263
+ ------
264
+ str
265
+ Registry key
266
+ """
267
+ return os.path.join(self.microsoft_sdk, 'Windows')
268
+
269
+ @property
270
+ def netfx_sdk(self) -> LiteralString:
271
+ """
272
+ Microsoft .NET Framework SDK registry key.
273
+
274
+ Return
275
+ ------
276
+ str
277
+ Registry key
278
+ """
279
+ return os.path.join(self.microsoft_sdk, 'NETFXSDK')
280
+
281
+ @property
282
+ def windows_kits_roots(self) -> LiteralString:
283
+ """
284
+ Microsoft Windows Kits Roots registry key.
285
+
286
+ Return
287
+ ------
288
+ str
289
+ Registry key
290
+ """
291
+ return r'Windows Kits\Installed Roots'
292
+
293
+ @overload
294
+ def microsoft(self, key: LiteralString, x86: bool = False) -> LiteralString: ...
295
+ @overload
296
+ def microsoft(self, key: str, x86: bool = False) -> str: ... # type: ignore[misc]
297
+ def microsoft(self, key: str, x86: bool = False) -> str:
298
+ """
299
+ Return key in Microsoft software registry.
300
+
301
+ Parameters
302
+ ----------
303
+ key: str
304
+ Registry key path where look.
305
+ x86: bool
306
+ Force x86 software registry.
307
+
308
+ Return
309
+ ------
310
+ str
311
+ Registry key
312
+ """
313
+ node64 = '' if self.pi.current_is_x86() or x86 else 'Wow6432Node'
314
+ return os.path.join('Software', node64, 'Microsoft', key)
315
+
316
+ def lookup(self, key: str, name: str) -> str | None:
317
+ """
318
+ Look for values in registry in Microsoft software registry.
319
+
320
+ Parameters
321
+ ----------
322
+ key: str
323
+ Registry key path where look.
324
+ name: str
325
+ Value name to find.
326
+
327
+ Return
328
+ ------
329
+ str | None
330
+ value
331
+ """
332
+ key_read = winreg.KEY_READ
333
+ openkey = winreg.OpenKey
334
+ closekey = winreg.CloseKey
335
+ ms = self.microsoft
336
+ for hkey in self.HKEYS:
337
+ bkey = None
338
+ try:
339
+ bkey = openkey(hkey, ms(key), 0, key_read)
340
+ except OSError:
341
+ if not self.pi.current_is_x86():
342
+ try:
343
+ bkey = openkey(hkey, ms(key, True), 0, key_read)
344
+ except OSError:
345
+ continue
346
+ else:
347
+ continue
348
+ try:
349
+ return winreg.QueryValueEx(bkey, name)[0]
350
+ except OSError:
351
+ pass
352
+ finally:
353
+ if bkey:
354
+ closekey(bkey)
355
+ return None
356
+
357
+
358
+ class SystemInfo:
359
+ """
360
+ Microsoft Windows and Visual Studio related system information.
361
+
362
+ Parameters
363
+ ----------
364
+ registry_info: RegistryInfo
365
+ "RegistryInfo" instance.
366
+ vc_ver: float
367
+ Required Microsoft Visual C++ version.
368
+ """
369
+
370
+ # Variables and properties in this class use originals CamelCase variables
371
+ # names from Microsoft source files for more easy comparison.
372
+ WinDir = environ.get('WinDir', '')
373
+ ProgramFiles = environ.get('ProgramFiles', '')
374
+ ProgramFilesx86 = environ.get('ProgramFiles(x86)', ProgramFiles)
375
+
376
+ def __init__(
377
+ self, registry_info: RegistryInfo, vc_ver: float | None = None
378
+ ) -> None:
379
+ self.ri = registry_info
380
+ self.pi = self.ri.pi
381
+
382
+ self.known_vs_paths = self.find_programdata_vs_vers()
383
+
384
+ # Except for VS15+, VC version is aligned with VS version
385
+ self.vs_ver = self.vc_ver = vc_ver or self._find_latest_available_vs_ver()
386
+
387
+ def _find_latest_available_vs_ver(self):
388
+ """
389
+ Find the latest VC version
390
+
391
+ Return
392
+ ------
393
+ float
394
+ version
395
+ """
396
+ reg_vc_vers = self.find_reg_vs_vers()
397
+
398
+ if not (reg_vc_vers or self.known_vs_paths):
399
+ raise distutils.errors.DistutilsPlatformError(
400
+ 'No Microsoft Visual C++ version found'
401
+ )
402
+
403
+ vc_vers = set(reg_vc_vers)
404
+ vc_vers.update(self.known_vs_paths)
405
+ return max(vc_vers)
406
+
407
+ def find_reg_vs_vers(self) -> list[float]:
408
+ """
409
+ Find Microsoft Visual Studio versions available in registry.
410
+
411
+ Return
412
+ ------
413
+ list of float
414
+ Versions
415
+ """
416
+ ms = self.ri.microsoft
417
+ vckeys = (self.ri.vc, self.ri.vc_for_python, self.ri.vs)
418
+ vs_vers = []
419
+ for hkey, key in itertools.product(self.ri.HKEYS, vckeys):
420
+ try:
421
+ bkey = winreg.OpenKey(hkey, ms(key), 0, winreg.KEY_READ)
422
+ except OSError:
423
+ continue
424
+ with bkey:
425
+ subkeys, values, _ = winreg.QueryInfoKey(bkey)
426
+ for i in range(values):
427
+ with contextlib.suppress(ValueError):
428
+ ver = float(winreg.EnumValue(bkey, i)[0])
429
+ if ver not in vs_vers:
430
+ vs_vers.append(ver)
431
+ for i in range(subkeys):
432
+ with contextlib.suppress(ValueError):
433
+ ver = float(winreg.EnumKey(bkey, i))
434
+ if ver not in vs_vers:
435
+ vs_vers.append(ver)
436
+ return sorted(vs_vers)
437
+
438
+ def find_programdata_vs_vers(self) -> dict[float, str]:
439
+ r"""
440
+ Find Visual studio 2017+ versions from information in
441
+ "C:\ProgramData\Microsoft\VisualStudio\Packages\_Instances".
442
+
443
+ Return
444
+ ------
445
+ dict
446
+ float version as key, path as value.
447
+ """
448
+ vs_versions: dict[float, str] = {}
449
+ instances_dir = r'C:\ProgramData\Microsoft\VisualStudio\Packages\_Instances'
450
+
451
+ try:
452
+ hashed_names = os.listdir(instances_dir)
453
+
454
+ except OSError:
455
+ # Directory not exists with all Visual Studio versions
456
+ return vs_versions
457
+
458
+ for name in hashed_names:
459
+ try:
460
+ # Get VS installation path from "state.json" file
461
+ state_path = os.path.join(instances_dir, name, 'state.json')
462
+ with open(state_path, 'rt', encoding='utf-8') as state_file:
463
+ state = json.load(state_file)
464
+ vs_path = state['installationPath']
465
+
466
+ # Raises OSError if this VS installation does not contain VC
467
+ os.listdir(os.path.join(vs_path, r'VC\Tools\MSVC'))
468
+
469
+ # Store version and path
470
+ vs_versions[self._as_float_version(state['installationVersion'])] = (
471
+ vs_path
472
+ )
473
+
474
+ except (OSError, KeyError):
475
+ # Skip if "state.json" file is missing or bad format
476
+ continue
477
+
478
+ return vs_versions
479
+
480
+ @staticmethod
481
+ def _as_float_version(version):
482
+ """
483
+ Return a string version as a simplified float version (major.minor)
484
+
485
+ Parameters
486
+ ----------
487
+ version: str
488
+ Version.
489
+
490
+ Return
491
+ ------
492
+ float
493
+ version
494
+ """
495
+ return float('.'.join(version.split('.')[:2]))
496
+
497
+ @property
498
+ def VSInstallDir(self) -> str:
499
+ """
500
+ Microsoft Visual Studio directory.
501
+
502
+ Return
503
+ ------
504
+ str
505
+ path
506
+ """
507
+ # Default path
508
+ default = os.path.join(
509
+ self.ProgramFilesx86, f'Microsoft Visual Studio {self.vs_ver:0.1f}'
510
+ )
511
+
512
+ # Try to get path from registry, if fail use default path
513
+ return self.ri.lookup(self.ri.vs, f'{self.vs_ver:0.1f}') or default
514
+
515
+ @property
516
+ def VCInstallDir(self) -> str:
517
+ """
518
+ Microsoft Visual C++ directory.
519
+
520
+ Return
521
+ ------
522
+ str
523
+ path
524
+ """
525
+ path = self._guess_vc() or self._guess_vc_legacy()
526
+
527
+ if not os.path.isdir(path):
528
+ msg = 'Microsoft Visual C++ directory not found'
529
+ raise distutils.errors.DistutilsPlatformError(msg)
530
+
531
+ return path
532
+
533
+ def _guess_vc(self):
534
+ """
535
+ Locate Visual C++ for VS2017+.
536
+
537
+ Return
538
+ ------
539
+ str
540
+ path
541
+ """
542
+ if self.vs_ver <= 14.0:
543
+ return ''
544
+
545
+ try:
546
+ # First search in known VS paths
547
+ vs_dir = self.known_vs_paths[self.vs_ver]
548
+ except KeyError:
549
+ # Else, search with path from registry
550
+ vs_dir = self.VSInstallDir
551
+
552
+ guess_vc = os.path.join(vs_dir, r'VC\Tools\MSVC')
553
+
554
+ # Subdir with VC exact version as name
555
+ try:
556
+ # Update the VC version with real one instead of VS version
557
+ vc_ver = os.listdir(guess_vc)[-1]
558
+ self.vc_ver = self._as_float_version(vc_ver)
559
+ return os.path.join(guess_vc, vc_ver)
560
+ except (OSError, IndexError):
561
+ return ''
562
+
563
+ def _guess_vc_legacy(self):
564
+ """
565
+ Locate Visual C++ for versions prior to 2017.
566
+
567
+ Return
568
+ ------
569
+ str
570
+ path
571
+ """
572
+ default = os.path.join(
573
+ self.ProgramFilesx86,
574
+ rf'Microsoft Visual Studio {self.vs_ver:0.1f}\VC',
575
+ )
576
+
577
+ # Try to get "VC++ for Python" path from registry as default path
578
+ reg_path = os.path.join(self.ri.vc_for_python, f'{self.vs_ver:0.1f}')
579
+ python_vc = self.ri.lookup(reg_path, 'installdir')
580
+ default_vc = os.path.join(python_vc, 'VC') if python_vc else default
581
+
582
+ # Try to get path from registry, if fail use default path
583
+ return self.ri.lookup(self.ri.vc, f'{self.vs_ver:0.1f}') or default_vc
584
+
585
+ @property
586
+ def WindowsSdkVersion(self) -> tuple[LiteralString, ...]:
587
+ """
588
+ Microsoft Windows SDK versions for specified MSVC++ version.
589
+
590
+ Return
591
+ ------
592
+ tuple of str
593
+ versions
594
+ """
595
+ if self.vs_ver <= 9.0:
596
+ return '7.0', '6.1', '6.0a'
597
+ elif self.vs_ver == 10.0:
598
+ return '7.1', '7.0a'
599
+ elif self.vs_ver == 11.0:
600
+ return '8.0', '8.0a'
601
+ elif self.vs_ver == 12.0:
602
+ return '8.1', '8.1a'
603
+ elif self.vs_ver >= 14.0:
604
+ return '10.0', '8.1'
605
+ return ()
606
+
607
+ @property
608
+ def WindowsSdkLastVersion(self) -> str:
609
+ """
610
+ Microsoft Windows SDK last version.
611
+
612
+ Return
613
+ ------
614
+ str
615
+ version
616
+ """
617
+ return self._use_last_dir_name(os.path.join(self.WindowsSdkDir, 'lib'))
618
+
619
+ @property
620
+ def WindowsSdkDir(self) -> str: # noqa: C901 # is too complex (12) # FIXME
621
+ """
622
+ Microsoft Windows SDK directory.
623
+
624
+ Return
625
+ ------
626
+ str
627
+ path
628
+ """
629
+ sdkdir: str | None = ''
630
+ for ver in self.WindowsSdkVersion:
631
+ # Try to get it from registry
632
+ loc = os.path.join(self.ri.windows_sdk, f'v{ver}')
633
+ sdkdir = self.ri.lookup(loc, 'installationfolder')
634
+ if sdkdir:
635
+ break
636
+ if not sdkdir or not os.path.isdir(sdkdir):
637
+ # Try to get "VC++ for Python" version from registry
638
+ path = os.path.join(self.ri.vc_for_python, f'{self.vc_ver:0.1f}')
639
+ install_base = self.ri.lookup(path, 'installdir')
640
+ if install_base:
641
+ sdkdir = os.path.join(install_base, 'WinSDK')
642
+ if not sdkdir or not os.path.isdir(sdkdir):
643
+ # If fail, use default new path
644
+ for ver in self.WindowsSdkVersion:
645
+ intver = ver[: ver.rfind('.')]
646
+ path = rf'Microsoft SDKs\Windows Kits\{intver}'
647
+ d = os.path.join(self.ProgramFiles, path)
648
+ if os.path.isdir(d):
649
+ sdkdir = d
650
+ if not sdkdir or not os.path.isdir(sdkdir):
651
+ # If fail, use default old path
652
+ for ver in self.WindowsSdkVersion:
653
+ path = rf'Microsoft SDKs\Windows\v{ver}'
654
+ d = os.path.join(self.ProgramFiles, path)
655
+ if os.path.isdir(d):
656
+ sdkdir = d
657
+ if not sdkdir:
658
+ # If fail, use Platform SDK
659
+ sdkdir = os.path.join(self.VCInstallDir, 'PlatformSDK')
660
+ return sdkdir
661
+
662
+ @property
663
+ def WindowsSDKExecutablePath(self) -> str | None:
664
+ """
665
+ Microsoft Windows SDK executable directory.
666
+
667
+ Return
668
+ ------
669
+ str | None
670
+ path
671
+ """
672
+ # Find WinSDK NetFx Tools registry dir name
673
+ if self.vs_ver <= 11.0:
674
+ netfxver = 35
675
+ arch = ''
676
+ else:
677
+ netfxver = 40
678
+ hidex86 = True if self.vs_ver <= 12.0 else False
679
+ arch = self.pi.current_dir(x64=True, hidex86=hidex86).replace('\\', '-')
680
+ fx = f'WinSDK-NetFx{netfxver}Tools{arch}'
681
+
682
+ # list all possibles registry paths
683
+ regpaths = []
684
+ if self.vs_ver >= 14.0:
685
+ for ver in self.NetFxSdkVersion:
686
+ regpaths += [os.path.join(self.ri.netfx_sdk, ver, fx)]
687
+
688
+ for ver in self.WindowsSdkVersion:
689
+ regpaths += [os.path.join(self.ri.windows_sdk, f'v{ver}A', fx)]
690
+
691
+ # Return installation folder from the more recent path
692
+ for path in regpaths:
693
+ execpath = self.ri.lookup(path, 'installationfolder')
694
+ if execpath:
695
+ return execpath
696
+
697
+ return None
698
+
699
+ @property
700
+ def FSharpInstallDir(self) -> str:
701
+ """
702
+ Microsoft Visual F# directory.
703
+
704
+ Return
705
+ ------
706
+ str
707
+ path
708
+ """
709
+ path = os.path.join(self.ri.visualstudio, rf'{self.vs_ver:0.1f}\Setup\F#')
710
+ return self.ri.lookup(path, 'productdir') or ''
711
+
712
+ @property
713
+ def UniversalCRTSdkDir(self) -> str | None:
714
+ """
715
+ Microsoft Universal CRT SDK directory.
716
+
717
+ Return
718
+ ------
719
+ str | None
720
+ path
721
+ """
722
+ # Set Kit Roots versions for specified MSVC++ version
723
+ vers = ('10', '81') if self.vs_ver >= 14.0 else ()
724
+
725
+ # Find path of the more recent Kit
726
+ for ver in vers:
727
+ sdkdir = self.ri.lookup(self.ri.windows_kits_roots, f'kitsroot{ver}')
728
+ if sdkdir:
729
+ return sdkdir
730
+
731
+ return None
732
+
733
+ @property
734
+ def UniversalCRTSdkLastVersion(self) -> str:
735
+ """
736
+ Microsoft Universal C Runtime SDK last version.
737
+
738
+ Return
739
+ ------
740
+ str
741
+ version
742
+ """
743
+ try:
744
+ return self._use_last_dir_name(os.path.join(self.UniversalCRTSdkDir, 'lib')) # type: ignore[arg-type] # Expected TypeError
745
+ except TypeError as ex:
746
+ py310.add_note(ex, "Cannot find UniversalCRTSdkDir")
747
+ raise
748
+
749
+ @property
750
+ def NetFxSdkVersion(self) -> tuple[LiteralString, ...]:
751
+ """
752
+ Microsoft .NET Framework SDK versions.
753
+
754
+ Return
755
+ ------
756
+ tuple of str
757
+ versions
758
+ """
759
+ # Set FxSdk versions for specified VS version
760
+ return (
761
+ ('4.7.2', '4.7.1', '4.7', '4.6.2', '4.6.1', '4.6', '4.5.2', '4.5.1', '4.5')
762
+ if self.vs_ver >= 14.0
763
+ else ()
764
+ )
765
+
766
+ @property
767
+ def NetFxSdkDir(self) -> str | None:
768
+ """
769
+ Microsoft .NET Framework SDK directory.
770
+
771
+ Return
772
+ ------
773
+ str | None
774
+ path
775
+ """
776
+ sdkdir: str | None = ''
777
+ for ver in self.NetFxSdkVersion:
778
+ loc = os.path.join(self.ri.netfx_sdk, ver)
779
+ sdkdir = self.ri.lookup(loc, 'kitsinstallationfolder')
780
+ if sdkdir:
781
+ break
782
+ return sdkdir
783
+
784
+ @property
785
+ def FrameworkDir32(self) -> str:
786
+ """
787
+ Microsoft .NET Framework 32bit directory.
788
+
789
+ Return
790
+ ------
791
+ str
792
+ path
793
+ """
794
+ # Default path
795
+ guess_fw = os.path.join(self.WinDir, r'Microsoft.NET\Framework')
796
+
797
+ # Try to get path from registry, if fail use default path
798
+ return self.ri.lookup(self.ri.vc, 'frameworkdir32') or guess_fw
799
+
800
+ @property
801
+ def FrameworkDir64(self) -> str:
802
+ """
803
+ Microsoft .NET Framework 64bit directory.
804
+
805
+ Return
806
+ ------
807
+ str
808
+ path
809
+ """
810
+ # Default path
811
+ guess_fw = os.path.join(self.WinDir, r'Microsoft.NET\Framework64')
812
+
813
+ # Try to get path from registry, if fail use default path
814
+ return self.ri.lookup(self.ri.vc, 'frameworkdir64') or guess_fw
815
+
816
+ @property
817
+ def FrameworkVersion32(self) -> tuple[str, ...]:
818
+ """
819
+ Microsoft .NET Framework 32bit versions.
820
+
821
+ Return
822
+ ------
823
+ tuple of str
824
+ versions
825
+ """
826
+ return self._find_dot_net_versions(32)
827
+
828
+ @property
829
+ def FrameworkVersion64(self) -> tuple[str, ...]:
830
+ """
831
+ Microsoft .NET Framework 64bit versions.
832
+
833
+ Return
834
+ ------
835
+ tuple of str
836
+ versions
837
+ """
838
+ return self._find_dot_net_versions(64)
839
+
840
+ def _find_dot_net_versions(self, bits) -> tuple[str, ...]:
841
+ """
842
+ Find Microsoft .NET Framework versions.
843
+
844
+ Parameters
845
+ ----------
846
+ bits: int
847
+ Platform number of bits: 32 or 64.
848
+
849
+ Return
850
+ ------
851
+ tuple of str
852
+ versions
853
+ """
854
+ # Find actual .NET version in registry
855
+ reg_ver = self.ri.lookup(self.ri.vc, f'frameworkver{bits}')
856
+ dot_net_dir = getattr(self, f'FrameworkDir{bits}')
857
+ ver = reg_ver or self._use_last_dir_name(dot_net_dir, 'v') or ''
858
+
859
+ # Set .NET versions for specified MSVC++ version
860
+ if self.vs_ver >= 12.0:
861
+ return ver, 'v4.0'
862
+ elif self.vs_ver >= 10.0:
863
+ return 'v4.0.30319' if ver.lower()[:2] != 'v4' else ver, 'v3.5'
864
+ elif self.vs_ver == 9.0:
865
+ return 'v3.5', 'v2.0.50727'
866
+ elif self.vs_ver == 8.0:
867
+ return 'v3.0', 'v2.0.50727'
868
+ return ()
869
+
870
+ @staticmethod
871
+ def _use_last_dir_name(path: StrPath, prefix: str = '') -> str:
872
+ """
873
+ Return name of the last dir in path or '' if no dir found.
874
+
875
+ Parameters
876
+ ----------
877
+ path: StrPath
878
+ Use dirs in this path
879
+ prefix: str
880
+ Use only dirs starting by this prefix
881
+
882
+ Return
883
+ ------
884
+ str
885
+ name
886
+ """
887
+ matching_dirs = (
888
+ dir_name
889
+ for dir_name in reversed(os.listdir(path))
890
+ if os.path.isdir(os.path.join(path, dir_name))
891
+ and dir_name.startswith(prefix)
892
+ )
893
+ return next(matching_dirs, '')
894
+
895
+
896
+ class _EnvironmentDict(TypedDict):
897
+ include: str
898
+ lib: str
899
+ libpath: str
900
+ path: str
901
+ py_vcruntime_redist: NotRequired[str | None]
902
+
903
+
904
+ class EnvironmentInfo:
905
+ """
906
+ Return environment variables for specified Microsoft Visual C++ version
907
+ and platform : Lib, Include, Path and libpath.
908
+
909
+ This function is compatible with Microsoft Visual C++ 9.0 to 14.X.
910
+
911
+ Script created by analysing Microsoft environment configuration files like
912
+ "vcvars[...].bat", "SetEnv.Cmd", "vcbuildtools.bat", ...
913
+
914
+ Parameters
915
+ ----------
916
+ arch: str
917
+ Target architecture.
918
+ vc_ver: float
919
+ Required Microsoft Visual C++ version. If not set, autodetect the last
920
+ version.
921
+ vc_min_ver: float
922
+ Minimum Microsoft Visual C++ version.
923
+ """
924
+
925
+ # Variables and properties in this class use originals CamelCase variables
926
+ # names from Microsoft source files for more easy comparison.
927
+
928
+ def __init__(self, arch, vc_ver=None, vc_min_ver=0) -> None:
929
+ self.pi = PlatformInfo(arch)
930
+ self.ri = RegistryInfo(self.pi)
931
+ self.si = SystemInfo(self.ri, vc_ver)
932
+
933
+ if self.vc_ver < vc_min_ver:
934
+ err = 'No suitable Microsoft Visual C++ version found'
935
+ raise distutils.errors.DistutilsPlatformError(err)
936
+
937
+ @property
938
+ def vs_ver(self):
939
+ """
940
+ Microsoft Visual Studio.
941
+
942
+ Return
943
+ ------
944
+ float
945
+ version
946
+ """
947
+ return self.si.vs_ver
948
+
949
+ @property
950
+ def vc_ver(self):
951
+ """
952
+ Microsoft Visual C++ version.
953
+
954
+ Return
955
+ ------
956
+ float
957
+ version
958
+ """
959
+ return self.si.vc_ver
960
+
961
+ @property
962
+ def VSTools(self):
963
+ """
964
+ Microsoft Visual Studio Tools.
965
+
966
+ Return
967
+ ------
968
+ list of str
969
+ paths
970
+ """
971
+ paths = [r'Common7\IDE', r'Common7\Tools']
972
+
973
+ if self.vs_ver >= 14.0:
974
+ arch_subdir = self.pi.current_dir(hidex86=True, x64=True)
975
+ paths += [r'Common7\IDE\CommonExtensions\Microsoft\TestWindow']
976
+ paths += [r'Team Tools\Performance Tools']
977
+ paths += [rf'Team Tools\Performance Tools{arch_subdir}']
978
+
979
+ return [os.path.join(self.si.VSInstallDir, path) for path in paths]
980
+
981
+ @property
982
+ def VCIncludes(self):
983
+ """
984
+ Microsoft Visual C++ & Microsoft Foundation Class Includes.
985
+
986
+ Return
987
+ ------
988
+ list of str
989
+ paths
990
+ """
991
+ return [
992
+ os.path.join(self.si.VCInstallDir, 'Include'),
993
+ os.path.join(self.si.VCInstallDir, r'ATLMFC\Include'),
994
+ ]
995
+
996
+ @property
997
+ def VCLibraries(self):
998
+ """
999
+ Microsoft Visual C++ & Microsoft Foundation Class Libraries.
1000
+
1001
+ Return
1002
+ ------
1003
+ list of str
1004
+ paths
1005
+ """
1006
+ if self.vs_ver >= 15.0:
1007
+ arch_subdir = self.pi.target_dir(x64=True)
1008
+ else:
1009
+ arch_subdir = self.pi.target_dir(hidex86=True)
1010
+ paths = [f'Lib{arch_subdir}', rf'ATLMFC\Lib{arch_subdir}']
1011
+
1012
+ if self.vs_ver >= 14.0:
1013
+ paths += [rf'Lib\store{arch_subdir}']
1014
+
1015
+ return [os.path.join(self.si.VCInstallDir, path) for path in paths]
1016
+
1017
+ @property
1018
+ def VCStoreRefs(self):
1019
+ """
1020
+ Microsoft Visual C++ store references Libraries.
1021
+
1022
+ Return
1023
+ ------
1024
+ list of str
1025
+ paths
1026
+ """
1027
+ if self.vs_ver < 14.0:
1028
+ return []
1029
+ return [os.path.join(self.si.VCInstallDir, r'Lib\store\references')]
1030
+
1031
+ @property
1032
+ def VCTools(self):
1033
+ """
1034
+ Microsoft Visual C++ Tools.
1035
+
1036
+ Return
1037
+ ------
1038
+ list of str
1039
+ paths
1040
+
1041
+ When host CPU is ARM, the tools should be found for ARM.
1042
+
1043
+ >>> getfixture('windows_only')
1044
+ >>> mp = getfixture('monkeypatch')
1045
+ >>> mp.setattr(PlatformInfo, 'current_cpu', 'arm64')
1046
+ >>> ei = EnvironmentInfo(arch='irrelevant')
1047
+ >>> paths = ei.VCTools
1048
+ >>> any('HostARM64' in path for path in paths)
1049
+ True
1050
+ """
1051
+ si = self.si
1052
+ tools = [os.path.join(si.VCInstallDir, 'VCPackages')]
1053
+
1054
+ forcex86 = True if self.vs_ver <= 10.0 else False
1055
+ arch_subdir = self.pi.cross_dir(forcex86)
1056
+ if arch_subdir:
1057
+ tools += [os.path.join(si.VCInstallDir, f'Bin{arch_subdir}')]
1058
+
1059
+ if self.vs_ver == 14.0:
1060
+ path = f'Bin{self.pi.current_dir(hidex86=True)}'
1061
+ tools += [os.path.join(si.VCInstallDir, path)]
1062
+
1063
+ elif self.vs_ver >= 15.0:
1064
+ host_id = self.pi.current_cpu.replace('amd64', 'x64').upper()
1065
+ host_dir = os.path.join('bin', f'Host{host_id}%s')
1066
+ tools += [
1067
+ os.path.join(si.VCInstallDir, host_dir % self.pi.target_dir(x64=True))
1068
+ ]
1069
+
1070
+ if self.pi.current_cpu != self.pi.target_cpu:
1071
+ tools += [
1072
+ os.path.join(
1073
+ si.VCInstallDir, host_dir % self.pi.current_dir(x64=True)
1074
+ )
1075
+ ]
1076
+
1077
+ else:
1078
+ tools += [os.path.join(si.VCInstallDir, 'Bin')]
1079
+
1080
+ return tools
1081
+
1082
+ @property
1083
+ def OSLibraries(self):
1084
+ """
1085
+ Microsoft Windows SDK Libraries.
1086
+
1087
+ Return
1088
+ ------
1089
+ list of str
1090
+ paths
1091
+ """
1092
+ if self.vs_ver <= 10.0:
1093
+ arch_subdir = self.pi.target_dir(hidex86=True, x64=True)
1094
+ return [os.path.join(self.si.WindowsSdkDir, f'Lib{arch_subdir}')]
1095
+
1096
+ else:
1097
+ arch_subdir = self.pi.target_dir(x64=True)
1098
+ lib = os.path.join(self.si.WindowsSdkDir, 'lib')
1099
+ libver = self._sdk_subdir
1100
+ return [os.path.join(lib, f'{libver}um{arch_subdir}')]
1101
+
1102
+ @property
1103
+ def OSIncludes(self):
1104
+ """
1105
+ Microsoft Windows SDK Include.
1106
+
1107
+ Return
1108
+ ------
1109
+ list of str
1110
+ paths
1111
+ """
1112
+ include = os.path.join(self.si.WindowsSdkDir, 'include')
1113
+
1114
+ if self.vs_ver <= 10.0:
1115
+ return [include, os.path.join(include, 'gl')]
1116
+
1117
+ else:
1118
+ if self.vs_ver >= 14.0:
1119
+ sdkver = self._sdk_subdir
1120
+ else:
1121
+ sdkver = ''
1122
+ return [
1123
+ os.path.join(include, f'{sdkver}shared'),
1124
+ os.path.join(include, f'{sdkver}um'),
1125
+ os.path.join(include, f'{sdkver}winrt'),
1126
+ ]
1127
+
1128
+ @property
1129
+ def OSLibpath(self):
1130
+ """
1131
+ Microsoft Windows SDK Libraries Paths.
1132
+
1133
+ Return
1134
+ ------
1135
+ list of str
1136
+ paths
1137
+ """
1138
+ ref = os.path.join(self.si.WindowsSdkDir, 'References')
1139
+ libpath = []
1140
+
1141
+ if self.vs_ver <= 9.0:
1142
+ libpath += self.OSLibraries
1143
+
1144
+ if self.vs_ver >= 11.0:
1145
+ libpath += [os.path.join(ref, r'CommonConfiguration\Neutral')]
1146
+
1147
+ if self.vs_ver >= 14.0:
1148
+ libpath += [
1149
+ ref,
1150
+ os.path.join(self.si.WindowsSdkDir, 'UnionMetadata'),
1151
+ os.path.join(ref, 'Windows.Foundation.UniversalApiContract', '1.0.0.0'),
1152
+ os.path.join(ref, 'Windows.Foundation.FoundationContract', '1.0.0.0'),
1153
+ os.path.join(
1154
+ ref, 'Windows.Networking.Connectivity.WwanContract', '1.0.0.0'
1155
+ ),
1156
+ os.path.join(
1157
+ self.si.WindowsSdkDir,
1158
+ 'ExtensionSDKs',
1159
+ 'Microsoft.VCLibs',
1160
+ f'{self.vs_ver:0.1f}',
1161
+ 'References',
1162
+ 'CommonConfiguration',
1163
+ 'neutral',
1164
+ ),
1165
+ ]
1166
+ return libpath
1167
+
1168
+ @property
1169
+ def SdkTools(self):
1170
+ """
1171
+ Microsoft Windows SDK Tools.
1172
+
1173
+ Return
1174
+ ------
1175
+ list of str
1176
+ paths
1177
+ """
1178
+ return list(self._sdk_tools())
1179
+
1180
+ def _sdk_tools(self):
1181
+ """
1182
+ Microsoft Windows SDK Tools paths generator.
1183
+
1184
+ Return
1185
+ ------
1186
+ generator of str
1187
+ paths
1188
+ """
1189
+ if self.vs_ver < 15.0:
1190
+ bin_dir = 'Bin' if self.vs_ver <= 11.0 else r'Bin\x86'
1191
+ yield os.path.join(self.si.WindowsSdkDir, bin_dir)
1192
+
1193
+ if not self.pi.current_is_x86():
1194
+ arch_subdir = self.pi.current_dir(x64=True)
1195
+ path = f'Bin{arch_subdir}'
1196
+ yield os.path.join(self.si.WindowsSdkDir, path)
1197
+
1198
+ if self.vs_ver in (10.0, 11.0):
1199
+ if self.pi.target_is_x86():
1200
+ arch_subdir = ''
1201
+ else:
1202
+ arch_subdir = self.pi.current_dir(hidex86=True, x64=True)
1203
+ path = rf'Bin\NETFX 4.0 Tools{arch_subdir}'
1204
+ yield os.path.join(self.si.WindowsSdkDir, path)
1205
+
1206
+ elif self.vs_ver >= 15.0:
1207
+ path = os.path.join(self.si.WindowsSdkDir, 'Bin')
1208
+ arch_subdir = self.pi.current_dir(x64=True)
1209
+ sdkver = self.si.WindowsSdkLastVersion
1210
+ yield os.path.join(path, f'{sdkver}{arch_subdir}')
1211
+
1212
+ if self.si.WindowsSDKExecutablePath:
1213
+ yield self.si.WindowsSDKExecutablePath
1214
+
1215
+ @property
1216
+ def _sdk_subdir(self) -> str:
1217
+ """
1218
+ Microsoft Windows SDK version subdir.
1219
+
1220
+ Return
1221
+ ------
1222
+ str
1223
+ subdir
1224
+ """
1225
+ ucrtver = self.si.WindowsSdkLastVersion
1226
+ return (f'{ucrtver}\\') if ucrtver else ''
1227
+
1228
+ @property
1229
+ def SdkSetup(self):
1230
+ """
1231
+ Microsoft Windows SDK Setup.
1232
+
1233
+ Return
1234
+ ------
1235
+ list of str
1236
+ paths
1237
+ """
1238
+ if self.vs_ver > 9.0:
1239
+ return []
1240
+
1241
+ return [os.path.join(self.si.WindowsSdkDir, 'Setup')]
1242
+
1243
+ @property
1244
+ def FxTools(self):
1245
+ """
1246
+ Microsoft .NET Framework Tools.
1247
+
1248
+ Return
1249
+ ------
1250
+ list of str
1251
+ paths
1252
+ """
1253
+ pi = self.pi
1254
+ si = self.si
1255
+
1256
+ if self.vs_ver <= 10.0:
1257
+ include32 = True
1258
+ include64 = not pi.target_is_x86() and not pi.current_is_x86()
1259
+ else:
1260
+ include32 = pi.target_is_x86() or pi.current_is_x86()
1261
+ include64 = pi.current_cpu == 'amd64' or pi.target_cpu == 'amd64'
1262
+
1263
+ tools = []
1264
+ if include32:
1265
+ tools += [
1266
+ os.path.join(si.FrameworkDir32, ver) for ver in si.FrameworkVersion32
1267
+ ]
1268
+ if include64:
1269
+ tools += [
1270
+ os.path.join(si.FrameworkDir64, ver) for ver in si.FrameworkVersion64
1271
+ ]
1272
+ return tools
1273
+
1274
+ @property
1275
+ def NetFxSDKLibraries(self):
1276
+ """
1277
+ Microsoft .Net Framework SDK Libraries.
1278
+
1279
+ Return
1280
+ ------
1281
+ list of str
1282
+ paths
1283
+ """
1284
+ if self.vs_ver < 14.0 or not self.si.NetFxSdkDir:
1285
+ return []
1286
+
1287
+ arch_subdir = self.pi.target_dir(x64=True)
1288
+ return [os.path.join(self.si.NetFxSdkDir, rf'lib\um{arch_subdir}')]
1289
+
1290
+ @property
1291
+ def NetFxSDKIncludes(self):
1292
+ """
1293
+ Microsoft .Net Framework SDK Includes.
1294
+
1295
+ Return
1296
+ ------
1297
+ list of str
1298
+ paths
1299
+ """
1300
+ if self.vs_ver < 14.0 or not self.si.NetFxSdkDir:
1301
+ return []
1302
+
1303
+ return [os.path.join(self.si.NetFxSdkDir, r'include\um')]
1304
+
1305
+ @property
1306
+ def VsTDb(self):
1307
+ """
1308
+ Microsoft Visual Studio Team System Database.
1309
+
1310
+ Return
1311
+ ------
1312
+ list of str
1313
+ paths
1314
+ """
1315
+ return [os.path.join(self.si.VSInstallDir, r'VSTSDB\Deploy')]
1316
+
1317
+ @property
1318
+ def MSBuild(self):
1319
+ """
1320
+ Microsoft Build Engine.
1321
+
1322
+ Return
1323
+ ------
1324
+ list of str
1325
+ paths
1326
+ """
1327
+ if self.vs_ver < 12.0:
1328
+ return []
1329
+ elif self.vs_ver < 15.0:
1330
+ base_path = self.si.ProgramFilesx86
1331
+ arch_subdir = self.pi.current_dir(hidex86=True)
1332
+ else:
1333
+ base_path = self.si.VSInstallDir
1334
+ arch_subdir = ''
1335
+
1336
+ path = rf'MSBuild\{self.vs_ver:0.1f}\bin{arch_subdir}'
1337
+ build = [os.path.join(base_path, path)]
1338
+
1339
+ if self.vs_ver >= 15.0:
1340
+ # Add Roslyn C# & Visual Basic Compiler
1341
+ build += [os.path.join(base_path, path, 'Roslyn')]
1342
+
1343
+ return build
1344
+
1345
+ @property
1346
+ def HTMLHelpWorkshop(self):
1347
+ """
1348
+ Microsoft HTML Help Workshop.
1349
+
1350
+ Return
1351
+ ------
1352
+ list of str
1353
+ paths
1354
+ """
1355
+ if self.vs_ver < 11.0:
1356
+ return []
1357
+
1358
+ return [os.path.join(self.si.ProgramFilesx86, 'HTML Help Workshop')]
1359
+
1360
+ @property
1361
+ def UCRTLibraries(self) -> list[str]:
1362
+ """
1363
+ Microsoft Universal C Runtime SDK Libraries.
1364
+
1365
+ Return
1366
+ ------
1367
+ list of str
1368
+ paths
1369
+ """
1370
+ if self.vs_ver < 14.0:
1371
+ return []
1372
+
1373
+ arch_subdir = self.pi.target_dir(x64=True)
1374
+ try:
1375
+ lib = os.path.join(self.si.UniversalCRTSdkDir, 'lib') # type: ignore[arg-type] # Expected TypeError
1376
+ except TypeError as ex:
1377
+ py310.add_note(ex, "Cannot find UniversalCRTSdkDir")
1378
+ raise
1379
+ ucrtver = self._ucrt_subdir
1380
+ return [os.path.join(lib, f'{ucrtver}ucrt{arch_subdir}')]
1381
+
1382
+ @property
1383
+ def UCRTIncludes(self) -> list[str]:
1384
+ """
1385
+ Microsoft Universal C Runtime SDK Include.
1386
+
1387
+ Return
1388
+ ------
1389
+ list of str
1390
+ paths
1391
+ """
1392
+ if self.vs_ver < 14.0:
1393
+ return []
1394
+
1395
+ try:
1396
+ include = os.path.join(self.si.UniversalCRTSdkDir, 'include') # type: ignore[arg-type] # Expected TypeError
1397
+ except TypeError as ex:
1398
+ py310.add_note(ex, "Cannot find UniversalCRTSdkDir")
1399
+ raise
1400
+ return [os.path.join(include, f'{self._ucrt_subdir}ucrt')]
1401
+
1402
+ @property
1403
+ def _ucrt_subdir(self) -> str:
1404
+ """
1405
+ Microsoft Universal C Runtime SDK version subdir.
1406
+
1407
+ Return
1408
+ ------
1409
+ str
1410
+ subdir
1411
+ """
1412
+ ucrtver = self.si.UniversalCRTSdkLastVersion
1413
+ return (f'{ucrtver}\\') if ucrtver else ''
1414
+
1415
+ @property
1416
+ def FSharp(self):
1417
+ """
1418
+ Microsoft Visual F#.
1419
+
1420
+ Return
1421
+ ------
1422
+ list of str
1423
+ paths
1424
+ """
1425
+ if 11.0 > self.vs_ver > 12.0:
1426
+ return []
1427
+
1428
+ return [self.si.FSharpInstallDir]
1429
+
1430
+ @property
1431
+ def VCRuntimeRedist(self) -> str | None:
1432
+ """
1433
+ Microsoft Visual C++ runtime redistributable dll.
1434
+
1435
+ Returns the first suitable path found or None.
1436
+ """
1437
+ vcruntime = f'vcruntime{self.vc_ver}0.dll'
1438
+ arch_subdir = self.pi.target_dir(x64=True).strip('\\')
1439
+
1440
+ # Installation prefixes candidates
1441
+ prefixes = []
1442
+ tools_path = self.si.VCInstallDir
1443
+ redist_path = os.path.dirname(tools_path.replace(r'\Tools', r'\Redist'))
1444
+ if os.path.isdir(redist_path):
1445
+ # Redist version may not be exactly the same as tools
1446
+ redist_path = os.path.join(redist_path, os.listdir(redist_path)[-1])
1447
+ prefixes += [redist_path, os.path.join(redist_path, 'onecore')]
1448
+
1449
+ prefixes += [os.path.join(tools_path, 'redist')] # VS14 legacy path
1450
+
1451
+ # CRT directory
1452
+ crt_dirs = (
1453
+ f'Microsoft.VC{self.vc_ver * 10}.CRT',
1454
+ # Sometime store in directory with VS version instead of VC
1455
+ f'Microsoft.VC{int(self.vs_ver) * 10}.CRT',
1456
+ )
1457
+
1458
+ # vcruntime path
1459
+ candidate_paths = (
1460
+ os.path.join(prefix, arch_subdir, crt_dir, vcruntime)
1461
+ for (prefix, crt_dir) in itertools.product(prefixes, crt_dirs)
1462
+ )
1463
+ return next(filter(os.path.isfile, candidate_paths), None) # type: ignore[arg-type] #python/mypy#12682
1464
+
1465
+ def return_env(self, exists: bool = True) -> _EnvironmentDict:
1466
+ """
1467
+ Return environment dict.
1468
+
1469
+ Parameters
1470
+ ----------
1471
+ exists: bool
1472
+ It True, only return existing paths.
1473
+
1474
+ Return
1475
+ ------
1476
+ dict
1477
+ environment
1478
+ """
1479
+ env = _EnvironmentDict(
1480
+ include=self._build_paths(
1481
+ 'include',
1482
+ [
1483
+ self.VCIncludes,
1484
+ self.OSIncludes,
1485
+ self.UCRTIncludes,
1486
+ self.NetFxSDKIncludes,
1487
+ ],
1488
+ exists,
1489
+ ),
1490
+ lib=self._build_paths(
1491
+ 'lib',
1492
+ [
1493
+ self.VCLibraries,
1494
+ self.OSLibraries,
1495
+ self.FxTools,
1496
+ self.UCRTLibraries,
1497
+ self.NetFxSDKLibraries,
1498
+ ],
1499
+ exists,
1500
+ ),
1501
+ libpath=self._build_paths(
1502
+ 'libpath',
1503
+ [self.VCLibraries, self.FxTools, self.VCStoreRefs, self.OSLibpath],
1504
+ exists,
1505
+ ),
1506
+ path=self._build_paths(
1507
+ 'path',
1508
+ [
1509
+ self.VCTools,
1510
+ self.VSTools,
1511
+ self.VsTDb,
1512
+ self.SdkTools,
1513
+ self.SdkSetup,
1514
+ self.FxTools,
1515
+ self.MSBuild,
1516
+ self.HTMLHelpWorkshop,
1517
+ self.FSharp,
1518
+ ],
1519
+ exists,
1520
+ ),
1521
+ )
1522
+ if self.vs_ver >= 14 and self.VCRuntimeRedist:
1523
+ env['py_vcruntime_redist'] = self.VCRuntimeRedist
1524
+ return env
1525
+
1526
+ def _build_paths(self, name, spec_path_lists, exists):
1527
+ """
1528
+ Given an environment variable name and specified paths,
1529
+ return a pathsep-separated string of paths containing
1530
+ unique, extant, directories from those paths and from
1531
+ the environment variable. Raise an error if no paths
1532
+ are resolved.
1533
+
1534
+ Parameters
1535
+ ----------
1536
+ name: str
1537
+ Environment variable name
1538
+ spec_path_lists: list of str
1539
+ Paths
1540
+ exists: bool
1541
+ It True, only return existing paths.
1542
+
1543
+ Return
1544
+ ------
1545
+ str
1546
+ Pathsep-separated paths
1547
+ """
1548
+ # flatten spec_path_lists
1549
+ spec_paths = itertools.chain.from_iterable(spec_path_lists)
1550
+ env_paths = environ.get(name, '').split(os.pathsep)
1551
+ paths = itertools.chain(spec_paths, env_paths)
1552
+ extant_paths = list(filter(os.path.isdir, paths)) if exists else paths
1553
+ if not extant_paths:
1554
+ msg = f"{name.upper()} environment variable is empty"
1555
+ raise distutils.errors.DistutilsPlatformError(msg)
1556
+ unique_paths = unique_everseen(extant_paths)
1557
+ return os.pathsep.join(unique_paths)
python/Lib/site-packages/setuptools/namespaces.py ADDED
@@ -0,0 +1,101 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ import itertools
2
+ import os
3
+
4
+ from .compat import py312
5
+
6
+ from distutils import log
7
+
8
+ flatten = itertools.chain.from_iterable
9
+
10
+
11
+ class Installer:
12
+ nspkg_ext = '-nspkg.pth'
13
+
14
+ def install_namespaces(self) -> None:
15
+ nsp = self._get_all_ns_packages()
16
+ if not nsp:
17
+ return
18
+ filename = self._get_nspkg_file()
19
+ self.outputs.append(filename)
20
+ log.info("Installing %s", filename)
21
+ lines = map(self._gen_nspkg_line, nsp)
22
+
23
+ with open(filename, 'wt', encoding=py312.PTH_ENCODING) as f:
24
+ # Python<3.13 requires encoding="locale" instead of "utf-8"
25
+ # See: python/cpython#77102
26
+ f.writelines(lines)
27
+
28
+ def uninstall_namespaces(self) -> None:
29
+ filename = self._get_nspkg_file()
30
+ if not os.path.exists(filename):
31
+ return
32
+ log.info("Removing %s", filename)
33
+ os.remove(filename)
34
+
35
+ def _get_nspkg_file(self):
36
+ filename, _ = os.path.splitext(self._get_target())
37
+ return filename + self.nspkg_ext
38
+
39
+ def _get_target(self):
40
+ return self.target
41
+
42
+ _nspkg_tmpl = (
43
+ "import sys, types, os",
44
+ "p = os.path.join(%(root)s, *%(pth)r)",
45
+ "importlib = __import__('importlib.util')",
46
+ "__import__('importlib.machinery')",
47
+ (
48
+ "m = "
49
+ "sys.modules.setdefault(%(pkg)r, "
50
+ "importlib.util.module_from_spec("
51
+ "importlib.machinery.PathFinder.find_spec(%(pkg)r, "
52
+ "[os.path.dirname(p)])))"
53
+ ),
54
+ ("m = m or sys.modules.setdefault(%(pkg)r, types.ModuleType(%(pkg)r))"),
55
+ "mp = (m or []) and m.__dict__.setdefault('__path__',[])",
56
+ "(p not in mp) and mp.append(p)",
57
+ )
58
+ "lines for the namespace installer"
59
+
60
+ _nspkg_tmpl_multi = ('m and setattr(sys.modules[%(parent)r], %(child)r, m)',)
61
+ "additional line(s) when a parent package is indicated"
62
+
63
+ def _get_root(self):
64
+ return "sys._getframe(1).f_locals['sitedir']"
65
+
66
+ def _gen_nspkg_line(self, pkg):
67
+ pth = tuple(pkg.split('.'))
68
+ root = self._get_root()
69
+ tmpl_lines = self._nspkg_tmpl
70
+ parent, sep, child = pkg.rpartition('.')
71
+ if parent:
72
+ tmpl_lines += self._nspkg_tmpl_multi
73
+ return ';'.join(tmpl_lines) % locals() + '\n'
74
+
75
+ def _get_all_ns_packages(self):
76
+ """Return sorted list of all package namespaces"""
77
+ pkgs = self.distribution.namespace_packages or []
78
+ return sorted(set(flatten(map(self._pkg_names, pkgs))))
79
+
80
+ @staticmethod
81
+ def _pkg_names(pkg):
82
+ """
83
+ Given a namespace package, yield the components of that
84
+ package.
85
+
86
+ >>> names = Installer._pkg_names('a.b.c')
87
+ >>> set(names) == set(['a', 'a.b', 'a.b.c'])
88
+ True
89
+ """
90
+ parts = pkg.split('.')
91
+ while parts:
92
+ yield '.'.join(parts)
93
+ parts.pop()
94
+
95
+
96
+ class DevelopInstaller(Installer):
97
+ def _get_root(self):
98
+ return repr(str(self.egg_path))
99
+
100
+ def _get_target(self):
101
+ return self.egg_link
python/Lib/site-packages/setuptools/script (dev).tmpl ADDED
@@ -0,0 +1,6 @@
 
 
 
 
 
 
 
1
+ # EASY-INSTALL-DEV-SCRIPT: %(spec)r,%(script_name)r
2
+ __requires__ = %(spec)r
3
+ __import__('pkg_resources').require(%(spec)r)
4
+ __file__ = %(dev_path)r
5
+ with open(__file__) as f:
6
+ exec(compile(f.read(), __file__, 'exec'))
python/Lib/site-packages/setuptools/script.tmpl ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ # EASY-INSTALL-SCRIPT: %(spec)r,%(script_name)r
2
+ __requires__ = %(spec)r
3
+ __import__('pkg_resources').run_script(%(spec)r, %(script_name)r)
python/Lib/site-packages/setuptools/unicode_utils.py ADDED
@@ -0,0 +1,102 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ import sys
2
+ import unicodedata
3
+ from configparser import RawConfigParser
4
+
5
+ from .compat import py39
6
+ from .warnings import SetuptoolsDeprecationWarning
7
+
8
+
9
+ # HFS Plus uses decomposed UTF-8
10
+ def decompose(path):
11
+ if isinstance(path, str):
12
+ return unicodedata.normalize('NFD', path)
13
+ try:
14
+ path = path.decode('utf-8')
15
+ path = unicodedata.normalize('NFD', path)
16
+ path = path.encode('utf-8')
17
+ except UnicodeError:
18
+ pass # Not UTF-8
19
+ return path
20
+
21
+
22
+ def filesys_decode(path):
23
+ """
24
+ Ensure that the given path is decoded,
25
+ ``None`` when no expected encoding works
26
+ """
27
+
28
+ if isinstance(path, str):
29
+ return path
30
+
31
+ fs_enc = sys.getfilesystemencoding() or 'utf-8'
32
+ candidates = fs_enc, 'utf-8'
33
+
34
+ for enc in candidates:
35
+ try:
36
+ return path.decode(enc)
37
+ except UnicodeDecodeError:
38
+ continue
39
+
40
+ return None
41
+
42
+
43
+ def try_encode(string, enc):
44
+ "turn unicode encoding into a functional routine"
45
+ try:
46
+ return string.encode(enc)
47
+ except UnicodeEncodeError:
48
+ return None
49
+
50
+
51
+ def _read_utf8_with_fallback(file: str, fallback_encoding=py39.LOCALE_ENCODING) -> str:
52
+ """
53
+ First try to read the file with UTF-8, if there is an error fallback to a
54
+ different encoding ("locale" by default). Returns the content of the file.
55
+ Also useful when reading files that might have been produced by an older version of
56
+ setuptools.
57
+ """
58
+ try:
59
+ with open(file, "r", encoding="utf-8") as f:
60
+ return f.read()
61
+ except UnicodeDecodeError: # pragma: no cover
62
+ _Utf8EncodingNeeded.emit(file=file, fallback_encoding=fallback_encoding)
63
+ with open(file, "r", encoding=fallback_encoding) as f:
64
+ return f.read()
65
+
66
+
67
+ def _cfg_read_utf8_with_fallback(
68
+ cfg: RawConfigParser, file: str, fallback_encoding=py39.LOCALE_ENCODING
69
+ ) -> None:
70
+ """Same idea as :func:`_read_utf8_with_fallback`, but for the
71
+ :meth:`RawConfigParser.read` method.
72
+
73
+ This method may call ``cfg.clear()``.
74
+ """
75
+ try:
76
+ cfg.read(file, encoding="utf-8")
77
+ except UnicodeDecodeError: # pragma: no cover
78
+ _Utf8EncodingNeeded.emit(file=file, fallback_encoding=fallback_encoding)
79
+ cfg.clear()
80
+ cfg.read(file, encoding=fallback_encoding)
81
+
82
+
83
+ class _Utf8EncodingNeeded(SetuptoolsDeprecationWarning):
84
+ _SUMMARY = """
85
+ `encoding="utf-8"` fails with {file!r}, trying `encoding={fallback_encoding!r}`.
86
+ """
87
+
88
+ _DETAILS = """
89
+ Fallback behavior for UTF-8 is considered **deprecated** and future versions of
90
+ `setuptools` may not implement it.
91
+
92
+ Please encode {file!r} with "utf-8" to ensure future builds will succeed.
93
+
94
+ If this file was produced by `setuptools` itself, cleaning up the cached files
95
+ and re-building/re-installing the package with a newer version of `setuptools`
96
+ (e.g. by updating `build-system.requires` in its `pyproject.toml`)
97
+ might solve the problem.
98
+ """
99
+ # TODO: Add a deadline?
100
+ # Will we be able to remove this?
101
+ # The question comes to mind mainly because of sdists that have been produced
102
+ # by old versions of setuptools and published to PyPI...
python/Lib/site-packages/setuptools/version.py ADDED
@@ -0,0 +1,6 @@
 
 
 
 
 
 
 
1
+ from ._importlib import metadata
2
+
3
+ try:
4
+ __version__ = metadata.version('setuptools') or '0.dev0+unknown'
5
+ except Exception:
6
+ __version__ = '0.dev0+unknown'
python/Lib/site-packages/setuptools/warnings.py ADDED
@@ -0,0 +1,110 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ """Provide basic warnings used by setuptools modules.
2
+
3
+ Using custom classes (other than ``UserWarning``) allow users to set
4
+ ``PYTHONWARNINGS`` filters to run tests and prepare for upcoming changes in
5
+ setuptools.
6
+ """
7
+
8
+ from __future__ import annotations
9
+
10
+ import os
11
+ import warnings
12
+ from datetime import date
13
+ from inspect import cleandoc
14
+ from textwrap import indent
15
+ from typing import TYPE_CHECKING
16
+
17
+ if TYPE_CHECKING:
18
+ from typing_extensions import TypeAlias
19
+
20
+ _DueDate: TypeAlias = tuple[int, int, int] # time tuple
21
+ _INDENT = 8 * " "
22
+ _TEMPLATE = f"""{80 * '*'}\n{{details}}\n{80 * '*'}"""
23
+
24
+
25
+ class SetuptoolsWarning(UserWarning):
26
+ """Base class in ``setuptools`` warning hierarchy."""
27
+
28
+ @classmethod
29
+ def emit(
30
+ cls,
31
+ summary: str | None = None,
32
+ details: str | None = None,
33
+ due_date: _DueDate | None = None,
34
+ see_docs: str | None = None,
35
+ see_url: str | None = None,
36
+ stacklevel: int = 2,
37
+ **kwargs,
38
+ ) -> None:
39
+ """Private: reserved for ``setuptools`` internal use only"""
40
+ # Default values:
41
+ summary_ = summary or getattr(cls, "_SUMMARY", None) or ""
42
+ details_ = details or getattr(cls, "_DETAILS", None) or ""
43
+ due_date = due_date or getattr(cls, "_DUE_DATE", None)
44
+ docs_ref = see_docs or getattr(cls, "_SEE_DOCS", None)
45
+ docs_url = docs_ref and f"https://setuptools.pypa.io/en/latest/{docs_ref}"
46
+ see_url = see_url or getattr(cls, "_SEE_URL", None)
47
+ due = date(*due_date) if due_date else None
48
+
49
+ text = cls._format(summary_, details_, due, see_url or docs_url, kwargs)
50
+ if due and due < date.today() and _should_enforce():
51
+ raise cls(text)
52
+ warnings.warn(text, cls, stacklevel=stacklevel + 1)
53
+
54
+ @classmethod
55
+ def _format(
56
+ cls,
57
+ summary: str,
58
+ details: str,
59
+ due_date: date | None = None,
60
+ see_url: str | None = None,
61
+ format_args: dict | None = None,
62
+ ) -> str:
63
+ """Private: reserved for ``setuptools`` internal use only"""
64
+ today = date.today()
65
+ summary = cleandoc(summary).format_map(format_args or {})
66
+ possible_parts = [
67
+ cleandoc(details).format_map(format_args or {}),
68
+ (
69
+ f"\nBy {due_date:%Y-%b-%d}, you need to update your project and remove "
70
+ "deprecated calls\nor your builds will no longer be supported."
71
+ if due_date and due_date > today
72
+ else None
73
+ ),
74
+ (
75
+ "\nThis deprecation is overdue, please update your project and remove "
76
+ "deprecated\ncalls to avoid build errors in the future."
77
+ if due_date and due_date < today
78
+ else None
79
+ ),
80
+ (f"\nSee {see_url} for details." if see_url else None),
81
+ ]
82
+ parts = [x for x in possible_parts if x]
83
+ if parts:
84
+ body = indent(_TEMPLATE.format(details="\n".join(parts)), _INDENT)
85
+ return "\n".join([summary, "!!\n", body, "\n!!"])
86
+ return summary
87
+
88
+
89
+ class InformationOnly(SetuptoolsWarning):
90
+ """Currently there is no clear way of displaying messages to the users
91
+ that use the setuptools backend directly via ``pip``.
92
+ The only thing that might work is a warning, although it is not the
93
+ most appropriate tool for the job...
94
+
95
+ See pypa/packaging-problems#558.
96
+ """
97
+
98
+
99
+ class SetuptoolsDeprecationWarning(SetuptoolsWarning):
100
+ """
101
+ Base class for warning deprecations in ``setuptools``
102
+
103
+ This class is not derived from ``DeprecationWarning``, and as such is
104
+ visible by default.
105
+ """
106
+
107
+
108
+ def _should_enforce():
109
+ enforce = os.getenv("SETUPTOOLS_ENFORCE_DEPRECATION", "false").lower()
110
+ return enforce in ("true", "on", "ok", "1")
python/Lib/site-packages/setuptools/wheel.py ADDED
@@ -0,0 +1,262 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ """Wheels support."""
2
+
3
+ import contextlib
4
+ import email
5
+ import functools
6
+ import itertools
7
+ import os
8
+ import posixpath
9
+ import re
10
+ import zipfile
11
+ from collections.abc import Iterator
12
+
13
+ from packaging.requirements import Requirement
14
+ from packaging.tags import sys_tags
15
+ from packaging.utils import canonicalize_name
16
+ from packaging.version import Version as parse_version
17
+
18
+ import setuptools
19
+ from setuptools.archive_util import _unpack_zipfile_obj
20
+ from setuptools.command.egg_info import _egg_basename, write_requirements
21
+
22
+ from ._discovery import extras_from_deps
23
+ from ._importlib import metadata
24
+ from .unicode_utils import _read_utf8_with_fallback
25
+
26
+ from distutils.util import get_platform
27
+
28
+ WHEEL_NAME = re.compile(
29
+ r"""^(?P<project_name>.+?)-(?P<version>\d.*?)
30
+ ((-(?P<build>\d.*?))?-(?P<py_version>.+?)-(?P<abi>.+?)-(?P<platform>.+?)
31
+ )\.whl$""",
32
+ re.VERBOSE,
33
+ ).match
34
+
35
+ NAMESPACE_PACKAGE_INIT = "__import__('pkg_resources').declare_namespace(__name__)\n"
36
+
37
+
38
+ @functools.cache
39
+ def _get_supported_tags():
40
+ # We calculate the supported tags only once, otherwise calling
41
+ # this method on thousands of wheels takes seconds instead of
42
+ # milliseconds.
43
+ return {(t.interpreter, t.abi, t.platform) for t in sys_tags()}
44
+
45
+
46
+ def unpack(src_dir, dst_dir) -> None:
47
+ """Move everything under `src_dir` to `dst_dir`, and delete the former."""
48
+ for dirpath, dirnames, filenames in os.walk(src_dir):
49
+ subdir = os.path.relpath(dirpath, src_dir)
50
+ for f in filenames:
51
+ src = os.path.join(dirpath, f)
52
+ dst = os.path.join(dst_dir, subdir, f)
53
+ os.renames(src, dst)
54
+ for n, d in reversed(list(enumerate(dirnames))):
55
+ src = os.path.join(dirpath, d)
56
+ dst = os.path.join(dst_dir, subdir, d)
57
+ if not os.path.exists(dst):
58
+ # Directory does not exist in destination,
59
+ # rename it and prune it from os.walk list.
60
+ os.renames(src, dst)
61
+ del dirnames[n]
62
+ # Cleanup.
63
+ for dirpath, dirnames, filenames in os.walk(src_dir, topdown=True):
64
+ assert not filenames
65
+ os.rmdir(dirpath)
66
+
67
+
68
+ @contextlib.contextmanager
69
+ def disable_info_traces() -> Iterator[None]:
70
+ """
71
+ Temporarily disable info traces.
72
+ """
73
+ from distutils import log
74
+
75
+ saved = log.set_threshold(log.WARN)
76
+ try:
77
+ yield
78
+ finally:
79
+ log.set_threshold(saved)
80
+
81
+
82
+ class Wheel:
83
+ def __init__(self, filename) -> None:
84
+ match = WHEEL_NAME(os.path.basename(filename))
85
+ if match is None:
86
+ raise ValueError(f'invalid wheel name: {filename!r}')
87
+ self.filename = filename
88
+ for k, v in match.groupdict().items():
89
+ setattr(self, k, v)
90
+
91
+ def tags(self):
92
+ """List tags (py_version, abi, platform) supported by this wheel."""
93
+ return itertools.product(
94
+ self.py_version.split('.'),
95
+ self.abi.split('.'),
96
+ self.platform.split('.'),
97
+ )
98
+
99
+ def is_compatible(self):
100
+ """Is the wheel compatible with the current platform?"""
101
+ return next((True for t in self.tags() if t in _get_supported_tags()), False)
102
+
103
+ def egg_name(self):
104
+ return (
105
+ _egg_basename(
106
+ self.project_name,
107
+ self.version,
108
+ platform=(None if self.platform == 'any' else get_platform()),
109
+ )
110
+ + ".egg"
111
+ )
112
+
113
+ def get_dist_info(self, zf):
114
+ # find the correct name of the .dist-info dir in the wheel file
115
+ for member in zf.namelist():
116
+ dirname = posixpath.dirname(member)
117
+ if dirname.endswith('.dist-info') and canonicalize_name(dirname).startswith(
118
+ canonicalize_name(self.project_name)
119
+ ):
120
+ return dirname
121
+ raise ValueError("unsupported wheel format. .dist-info not found")
122
+
123
+ def install_as_egg(self, destination_eggdir) -> None:
124
+ """Install wheel as an egg directory."""
125
+ with zipfile.ZipFile(self.filename) as zf:
126
+ self._install_as_egg(destination_eggdir, zf)
127
+
128
+ def _install_as_egg(self, destination_eggdir, zf):
129
+ dist_basename = f'{self.project_name}-{self.version}'
130
+ dist_info = self.get_dist_info(zf)
131
+ dist_data = f'{dist_basename}.data'
132
+ egg_info = os.path.join(destination_eggdir, 'EGG-INFO')
133
+
134
+ self._convert_metadata(zf, destination_eggdir, dist_info, egg_info)
135
+ self._move_data_entries(destination_eggdir, dist_data)
136
+ self._fix_namespace_packages(egg_info, destination_eggdir)
137
+
138
+ @staticmethod
139
+ def _convert_metadata(zf, destination_eggdir, dist_info, egg_info):
140
+ def get_metadata(name):
141
+ with zf.open(posixpath.join(dist_info, name)) as fp:
142
+ value = fp.read().decode('utf-8')
143
+ return email.parser.Parser().parsestr(value)
144
+
145
+ wheel_metadata = get_metadata('WHEEL')
146
+ # Check wheel format version is supported.
147
+ wheel_version = parse_version(wheel_metadata.get('Wheel-Version'))
148
+ wheel_v1 = parse_version('1.0') <= wheel_version < parse_version('2.0dev0')
149
+ if not wheel_v1:
150
+ raise ValueError(f'unsupported wheel format version: {wheel_version}')
151
+ # Extract to target directory.
152
+ _unpack_zipfile_obj(zf, destination_eggdir)
153
+ dist_info = os.path.join(destination_eggdir, dist_info)
154
+ install_requires, extras_require = Wheel._convert_requires(
155
+ destination_eggdir, dist_info
156
+ )
157
+ os.rename(dist_info, egg_info)
158
+ os.rename(
159
+ os.path.join(egg_info, 'METADATA'),
160
+ os.path.join(egg_info, 'PKG-INFO'),
161
+ )
162
+ setup_dist = setuptools.Distribution(
163
+ attrs=dict(
164
+ install_requires=install_requires,
165
+ extras_require=extras_require,
166
+ ),
167
+ )
168
+ with disable_info_traces():
169
+ write_requirements(
170
+ setup_dist.get_command_obj('egg_info'),
171
+ None,
172
+ os.path.join(egg_info, 'requires.txt'),
173
+ )
174
+
175
+ @staticmethod
176
+ def _convert_requires(destination_eggdir, dist_info):
177
+ md = metadata.Distribution.at(dist_info).metadata
178
+ deps = md.get_all('Requires-Dist') or []
179
+ reqs = list(map(Requirement, deps))
180
+
181
+ extras = extras_from_deps(deps)
182
+
183
+ # Note: Evaluate and strip markers now,
184
+ # as it's difficult to convert back from the syntax:
185
+ # foobar; "linux" in sys_platform and extra == 'test'
186
+ def raw_req(req):
187
+ req = Requirement(str(req))
188
+ req.marker = None
189
+ return str(req)
190
+
191
+ def eval(req, **env):
192
+ return not req.marker or req.marker.evaluate(env)
193
+
194
+ def for_extra(req):
195
+ try:
196
+ markers = req.marker._markers
197
+ except AttributeError:
198
+ markers = ()
199
+ return set(
200
+ marker[2].value
201
+ for marker in markers
202
+ if isinstance(marker, tuple) and marker[0].value == 'extra'
203
+ )
204
+
205
+ install_requires = list(
206
+ map(raw_req, filter(eval, itertools.filterfalse(for_extra, reqs)))
207
+ )
208
+ extras_require = {
209
+ extra: list(
210
+ map(
211
+ raw_req,
212
+ (req for req in reqs if for_extra(req) and eval(req, extra=extra)),
213
+ )
214
+ )
215
+ for extra in extras
216
+ }
217
+ return install_requires, extras_require
218
+
219
+ @staticmethod
220
+ def _move_data_entries(destination_eggdir, dist_data):
221
+ """Move data entries to their correct location."""
222
+ dist_data = os.path.join(destination_eggdir, dist_data)
223
+ dist_data_scripts = os.path.join(dist_data, 'scripts')
224
+ if os.path.exists(dist_data_scripts):
225
+ egg_info_scripts = os.path.join(destination_eggdir, 'EGG-INFO', 'scripts')
226
+ os.mkdir(egg_info_scripts)
227
+ for entry in os.listdir(dist_data_scripts):
228
+ # Remove bytecode, as it's not properly handled
229
+ # during easy_install scripts install phase.
230
+ if entry.endswith('.pyc'):
231
+ os.unlink(os.path.join(dist_data_scripts, entry))
232
+ else:
233
+ os.rename(
234
+ os.path.join(dist_data_scripts, entry),
235
+ os.path.join(egg_info_scripts, entry),
236
+ )
237
+ os.rmdir(dist_data_scripts)
238
+ for subdir in filter(
239
+ os.path.exists,
240
+ (
241
+ os.path.join(dist_data, d)
242
+ for d in ('data', 'headers', 'purelib', 'platlib')
243
+ ),
244
+ ):
245
+ unpack(subdir, destination_eggdir)
246
+ if os.path.exists(dist_data):
247
+ os.rmdir(dist_data)
248
+
249
+ @staticmethod
250
+ def _fix_namespace_packages(egg_info, destination_eggdir):
251
+ namespace_packages = os.path.join(egg_info, 'namespace_packages.txt')
252
+ if os.path.exists(namespace_packages):
253
+ namespace_packages = _read_utf8_with_fallback(namespace_packages).split()
254
+
255
+ for mod in namespace_packages:
256
+ mod_dir = os.path.join(destination_eggdir, *mod.split('.'))
257
+ mod_init = os.path.join(mod_dir, '__init__.py')
258
+ if not os.path.exists(mod_dir):
259
+ os.mkdir(mod_dir)
260
+ if not os.path.exists(mod_init):
261
+ with open(mod_init, 'w', encoding="utf-8") as fp:
262
+ fp.write(NAMESPACE_PACKAGE_INIT)
python/Lib/site-packages/setuptools/windows_support.py ADDED
@@ -0,0 +1,30 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ import platform
2
+
3
+
4
+ def windows_only(func):
5
+ if platform.system() != 'Windows':
6
+ return lambda *args, **kwargs: None
7
+ return func
8
+
9
+
10
+ @windows_only
11
+ def hide_file(path: str) -> None:
12
+ """
13
+ Set the hidden attribute on a file or directory.
14
+
15
+ From https://stackoverflow.com/questions/19622133/
16
+
17
+ `path` must be text.
18
+ """
19
+ import ctypes
20
+ import ctypes.wintypes
21
+
22
+ SetFileAttributes = ctypes.windll.kernel32.SetFileAttributesW
23
+ SetFileAttributes.argtypes = ctypes.wintypes.LPWSTR, ctypes.wintypes.DWORD
24
+ SetFileAttributes.restype = ctypes.wintypes.BOOL
25
+
26
+ FILE_ATTRIBUTE_HIDDEN = 0x02
27
+
28
+ ret = SetFileAttributes(path, FILE_ATTRIBUTE_HIDDEN)
29
+ if not ret:
30
+ raise ctypes.WinError()
python/Lib/site-packages/wheel-0.47.0.dist-info/INSTALLER ADDED
@@ -0,0 +1 @@
 
 
1
+ pip
python/Lib/site-packages/wheel-0.47.0.dist-info/METADATA ADDED
@@ -0,0 +1,66 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ Metadata-Version: 2.4
2
+ Name: wheel
3
+ Version: 0.47.0
4
+ Summary: Command line tool for manipulating wheel files
5
+ Keywords: wheel,packaging
6
+ Author-email: Daniel Holth <dholth@fastmail.fm>
7
+ Maintainer-email: Alex Grönholm <alex.gronholm@nextday.fi>
8
+ Requires-Python: >=3.9
9
+ Description-Content-Type: text/x-rst
10
+ License-Expression: MIT
11
+ Classifier: Development Status :: 5 - Production/Stable
12
+ Classifier: Intended Audience :: Developers
13
+ Classifier: Topic :: System :: Archiving :: Packaging
14
+ Classifier: Programming Language :: Python
15
+ Classifier: Programming Language :: Python :: 3 :: Only
16
+ Classifier: Programming Language :: Python :: 3.9
17
+ Classifier: Programming Language :: Python :: 3.10
18
+ Classifier: Programming Language :: Python :: 3.11
19
+ Classifier: Programming Language :: Python :: 3.12
20
+ Classifier: Programming Language :: Python :: 3.13
21
+ Classifier: Programming Language :: Python :: 3.14
22
+ License-File: LICENSE.txt
23
+ Requires-Dist: packaging >= 24.0
24
+ Project-URL: Changelog, https://wheel.readthedocs.io/en/stable/news.html
25
+ Project-URL: Documentation, https://wheel.readthedocs.io/
26
+ Project-URL: Issue Tracker, https://github.com/pypa/wheel/issues
27
+ Project-URL: Source, https://github.com/pypa/wheel
28
+
29
+ wheel
30
+ =====
31
+
32
+ This is a command line tool for manipulating Python wheel files, as defined in
33
+ `PEP 427`_. It contains the following functionality:
34
+
35
+ * Convert ``.egg`` archives into ``.whl``
36
+ * Unpack wheel archives
37
+ * Repack wheel archives
38
+ * Add or remove tags in existing wheel archives
39
+
40
+ .. _PEP 427: https://peps.python.org/pep-0427/
41
+
42
+ Historical note
43
+ ---------------
44
+
45
+ This project used to contain the implementation of the setuptools_ ``bdist_wheel``
46
+ command, but as of setuptools v70.1, it no longer needs ``wheel`` installed for that to
47
+ work. Thus, you should install this **only** if you intend to use the ``wheel`` command
48
+ line tool!
49
+
50
+ .. _setuptools: https://pypi.org/project/setuptools/
51
+
52
+ Documentation
53
+ -------------
54
+
55
+ The documentation_ can be found on Read The Docs.
56
+
57
+ .. _documentation: https://wheel.readthedocs.io/
58
+
59
+ Code of Conduct
60
+ ---------------
61
+
62
+ Everyone interacting in the wheel project's codebases, issue trackers, chat
63
+ rooms, and mailing lists is expected to follow the `PSF Code of Conduct`_.
64
+
65
+ .. _PSF Code of Conduct: https://github.com/pypa/.github/blob/main/CODE_OF_CONDUCT.md
66
+
python/Lib/site-packages/wheel-0.47.0.dist-info/RECORD ADDED
@@ -0,0 +1,38 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ../../Scripts/wheel.exe,sha256=u29U5ry3U8DkAf4kiVW5EPQGqwKgsqQOjhZ2cwNX5OI,108337
2
+ wheel-0.47.0.dist-info/INSTALLER,sha256=zuuue4knoyJ-UwPPXg8fezS7VCrXJQrAP7zeNuwvFQg,4
3
+ wheel-0.47.0.dist-info/METADATA,sha256=1ujLv6IVE-1GvkAn5heEsTGxLFyvrL3mkTzlrQF2dkM,2282
4
+ wheel-0.47.0.dist-info/RECORD,,
5
+ wheel-0.47.0.dist-info/REQUESTED,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
6
+ wheel-0.47.0.dist-info/WHEEL,sha256=G2gURzTEtmeR8nrdXUJfNiB3VYVxigPQ-bEQujpNiNs,82
7
+ wheel-0.47.0.dist-info/entry_points.txt,sha256=JJdtSAGTvMLbIkTVZUAMvGKO39FtWfCVF8mp_NH6e4g,110
8
+ wheel-0.47.0.dist-info/licenses/LICENSE.txt,sha256=MMI2GGeRCPPo6h0qZYx8pBe9_IkcmO8aifpP8MmChlQ,1107
9
+ wheel/__init__.py,sha256=hvOb7D5MtyR4b9_B_vS_nn6LevSY3Z4cItbGpnQKO20,59
10
+ wheel/__main__.py,sha256=2H-pZZw-0uFWPYT46XjFt7wUi7eJ1afPXwocKkDzXXM,516
11
+ wheel/__pycache__/__init__.cpython-313.pyc,,
12
+ wheel/__pycache__/__main__.cpython-313.pyc,,
13
+ wheel/__pycache__/_bdist_wheel.cpython-313.pyc,,
14
+ wheel/__pycache__/_metadata.cpython-313.pyc,,
15
+ wheel/__pycache__/_setuptools_logging.cpython-313.pyc,,
16
+ wheel/__pycache__/bdist_wheel.cpython-313.pyc,,
17
+ wheel/__pycache__/macosx_libfile.cpython-313.pyc,,
18
+ wheel/__pycache__/metadata.cpython-313.pyc,,
19
+ wheel/__pycache__/wheelfile.cpython-313.pyc,,
20
+ wheel/_bdist_wheel.py,sha256=bpmNa7_s-CYFkVgXf9ENAYTiJ01XBhRW4pxH1T8XYsI,21729
21
+ wheel/_commands/__init__.py,sha256=agjM7BnNxNU93HBm9eb-9zVn5wRB8pWPXNMfPB1QsJk,4964
22
+ wheel/_commands/__pycache__/__init__.cpython-313.pyc,,
23
+ wheel/_commands/__pycache__/convert.cpython-313.pyc,,
24
+ wheel/_commands/__pycache__/info.cpython-313.pyc,,
25
+ wheel/_commands/__pycache__/pack.cpython-313.pyc,,
26
+ wheel/_commands/__pycache__/tags.cpython-313.pyc,,
27
+ wheel/_commands/__pycache__/unpack.cpython-313.pyc,,
28
+ wheel/_commands/convert.py,sha256=0wSJMU0m-6LY16Om8Wmmloy-hJWFZeOmI8hT-2Z7Qms,12743
29
+ wheel/_commands/info.py,sha256=GzV4h1sovB3DYsCCNQ5CYzavbA0z2EU2d1e1qqi9mH0,4446
30
+ wheel/_commands/pack.py,sha256=o3iwjfRHl7N9ul-M2kHbewLJZnqBLAWf0tzUCwoiTMw,3078
31
+ wheel/_commands/tags.py,sha256=Rv2ySVb8-qX3osKp3uJgxcIMXkjt43XUD0-zvC6KvnY,4775
32
+ wheel/_commands/unpack.py,sha256=AjDSS23XYyCSFfifnMutinrpPv-DK_2wbNHkKAUFwgM,1016
33
+ wheel/_metadata.py,sha256=BP5jC9uC1hyicp7nL4FJ2LYixNFpEJIV_uMDY1KBZBg,6188
34
+ wheel/_setuptools_logging.py,sha256=-5KC-lne0ilOUWIDfOkqapUWGMFZhuKYDIavIZiB5kM,781
35
+ wheel/bdist_wheel.py,sha256=HrzYiSzMkh5ohAAhlQnYBS1p8qbr85X6F59xqxd9kBg,1102
36
+ wheel/macosx_libfile.py,sha256=pL0wm88jRMl_4ASgGlNg_mz69Zmv5xm8JSkjLdwyvIQ,16712
37
+ wheel/metadata.py,sha256=GknOO7JJiZMlcEe_fiD7nqnDTTLd0sX_-IgipM4L3-4,757
38
+ wheel/wheelfile.py,sha256=Lr-hlD6vlagOoXjHkJseN7bKD4qsWQlsPBaB5QnJrVs,9288
python/Lib/site-packages/wheel-0.47.0.dist-info/REQUESTED ADDED
File without changes
python/Lib/site-packages/wheel-0.47.0.dist-info/WHEEL ADDED
@@ -0,0 +1,4 @@
 
 
 
 
 
1
+ Wheel-Version: 1.0
2
+ Generator: flit 3.12.0
3
+ Root-Is-Purelib: true
4
+ Tag: py3-none-any
python/Lib/site-packages/wheel-0.47.0.dist-info/entry_points.txt ADDED
@@ -0,0 +1,6 @@
 
 
 
 
 
 
 
1
+ [console_scripts]
2
+ wheel=wheel._commands:main
3
+
4
+ [distutils.commands]
5
+ bdist_wheel=wheel.bdist_wheel:bdist_wheel
6
+
python/Lib/site-packages/wheel-0.47.0.dist-info/licenses/LICENSE.txt ADDED
@@ -0,0 +1,21 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ MIT License
2
+
3
+ Copyright (c) 2012 Daniel Holth <dholth@fastmail.fm> and contributors
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a
6
+ copy of this software and associated documentation files (the "Software"),
7
+ to deal in the Software without restriction, including without limitation
8
+ the rights to use, copy, modify, merge, publish, distribute, sublicense,
9
+ and/or sell copies of the Software, and to permit persons to whom the
10
+ Software is furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included
13
+ in all copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
18
+ THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR
19
+ OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
20
+ ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
21
+ OTHER DEALINGS IN THE SOFTWARE.
python/Lib/site-packages/wheel/__init__.py ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ from __future__ import annotations
2
+
3
+ __version__ = "0.47.0"
python/Lib/site-packages/wheel/__main__.py ADDED
@@ -0,0 +1,25 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ """
2
+ Wheel command line tool (enables the ``python -m wheel`` syntax)
3
+ """
4
+
5
+ from __future__ import annotations
6
+
7
+ import sys
8
+ from typing import NoReturn
9
+
10
+
11
+ def main() -> NoReturn: # needed for console script
12
+ if __spec__.parent == "":
13
+ # To be able to run 'python wheel-0.9.whl/wheel':
14
+ import os.path
15
+
16
+ path = os.path.dirname(os.path.dirname(__file__))
17
+ sys.path[0:0] = [path]
18
+
19
+ from ._commands import main as cli_main
20
+
21
+ sys.exit(cli_main())
22
+
23
+
24
+ if __name__ == "__main__":
25
+ main()
python/Lib/site-packages/wheel/__pycache__/__init__.cpython-313.pyc ADDED
Binary file (240 Bytes). View file
 
python/Lib/site-packages/wheel/__pycache__/__main__.cpython-313.pyc ADDED
Binary file (997 Bytes). View file
 
python/Lib/site-packages/wheel/__pycache__/_bdist_wheel.cpython-313.pyc ADDED
Binary file (26.8 kB). View file