Add files using upload-large-folder tool
Browse filesThis view is limited to 50 files because it contains too many changes. See raw diff
- code/LaDi-RL-old-qwen-cod/LaDi-RL-old-qwen-cod/venv/lib64/python3.10/site-packages/setuptools-79.0.1.dist-info/INSTALLER +1 -0
- code/LaDi-RL-old-qwen-cod/LaDi-RL-old-qwen-cod/venv/lib64/python3.10/site-packages/setuptools-79.0.1.dist-info/METADATA +140 -0
- code/LaDi-RL-old-qwen-cod/LaDi-RL-old-qwen-cod/venv/lib64/python3.10/site-packages/setuptools-79.0.1.dist-info/RECORD +873 -0
- code/LaDi-RL-old-qwen-cod/LaDi-RL-old-qwen-cod/venv/lib64/python3.10/site-packages/setuptools-79.0.1.dist-info/REQUESTED +0 -0
- code/LaDi-RL-old-qwen-cod/LaDi-RL-old-qwen-cod/venv/lib64/python3.10/site-packages/setuptools-79.0.1.dist-info/WHEEL +5 -0
- code/LaDi-RL-old-qwen-cod/LaDi-RL-old-qwen-cod/venv/lib64/python3.10/site-packages/setuptools-79.0.1.dist-info/entry_points.txt +51 -0
- code/LaDi-RL-old-qwen-cod/LaDi-RL-old-qwen-cod/venv/lib64/python3.10/site-packages/setuptools-79.0.1.dist-info/licenses/LICENSE +17 -0
- code/LaDi-RL-old-qwen-cod/LaDi-RL-old-qwen-cod/venv/lib64/python3.10/site-packages/setuptools-79.0.1.dist-info/top_level.txt +3 -0
- code/LaDi-RL-old-qwen-cod/LaDi-RL-old-qwen-cod/venv/lib64/python3.10/site-packages/setuptools/_vendor/wheel-0.45.1.dist-info/INSTALLER +1 -0
- code/LaDi-RL-old-qwen-cod/LaDi-RL-old-qwen-cod/venv/lib64/python3.10/site-packages/setuptools/_vendor/wheel-0.45.1.dist-info/LICENSE.txt +21 -0
- code/LaDi-RL-old-qwen-cod/LaDi-RL-old-qwen-cod/venv/lib64/python3.10/site-packages/setuptools/_vendor/wheel-0.45.1.dist-info/METADATA +66 -0
- code/LaDi-RL-old-qwen-cod/LaDi-RL-old-qwen-cod/venv/lib64/python3.10/site-packages/setuptools/_vendor/wheel-0.45.1.dist-info/RECORD +68 -0
- code/LaDi-RL-old-qwen-cod/LaDi-RL-old-qwen-cod/venv/lib64/python3.10/site-packages/setuptools/_vendor/wheel-0.45.1.dist-info/REQUESTED +0 -0
- code/LaDi-RL-old-qwen-cod/LaDi-RL-old-qwen-cod/venv/lib64/python3.10/site-packages/setuptools/_vendor/wheel-0.45.1.dist-info/WHEEL +4 -0
- code/LaDi-RL-old-qwen-cod/LaDi-RL-old-qwen-cod/venv/lib64/python3.10/site-packages/setuptools/_vendor/wheel-0.45.1.dist-info/entry_points.txt +6 -0
- code/LaDi-RL-old-qwen-cod/LaDi-RL-old-qwen-cod/venv/lib64/python3.10/site-packages/setuptools/_vendor/wheel/vendored/packaging/__init__.py +0 -0
- code/LaDi-RL-old-qwen-cod/LaDi-RL-old-qwen-cod/venv/lib64/python3.10/site-packages/setuptools/_vendor/wheel/vendored/packaging/_elffile.py +108 -0
- code/LaDi-RL-old-qwen-cod/LaDi-RL-old-qwen-cod/venv/lib64/python3.10/site-packages/setuptools/_vendor/wheel/vendored/packaging/_manylinux.py +260 -0
- code/LaDi-RL-old-qwen-cod/LaDi-RL-old-qwen-cod/venv/lib64/python3.10/site-packages/setuptools/_vendor/wheel/vendored/packaging/_musllinux.py +83 -0
- code/LaDi-RL-old-qwen-cod/LaDi-RL-old-qwen-cod/venv/lib64/python3.10/site-packages/setuptools/_vendor/wheel/vendored/packaging/_parser.py +356 -0
- code/LaDi-RL-old-qwen-cod/LaDi-RL-old-qwen-cod/venv/lib64/python3.10/site-packages/setuptools/_vendor/wheel/vendored/packaging/_structures.py +61 -0
- code/LaDi-RL-old-qwen-cod/LaDi-RL-old-qwen-cod/venv/lib64/python3.10/site-packages/setuptools/_vendor/wheel/vendored/packaging/_tokenizer.py +192 -0
- code/LaDi-RL-old-qwen-cod/LaDi-RL-old-qwen-cod/venv/lib64/python3.10/site-packages/setuptools/_vendor/wheel/vendored/packaging/markers.py +253 -0
- code/LaDi-RL-old-qwen-cod/LaDi-RL-old-qwen-cod/venv/lib64/python3.10/site-packages/setuptools/_vendor/wheel/vendored/packaging/requirements.py +90 -0
- code/LaDi-RL-old-qwen-cod/LaDi-RL-old-qwen-cod/venv/lib64/python3.10/site-packages/setuptools/_vendor/wheel/vendored/packaging/specifiers.py +1011 -0
- code/LaDi-RL-old-qwen-cod/LaDi-RL-old-qwen-cod/venv/lib64/python3.10/site-packages/setuptools/_vendor/wheel/vendored/packaging/tags.py +571 -0
- code/LaDi-RL-old-qwen-cod/LaDi-RL-old-qwen-cod/venv/lib64/python3.10/site-packages/setuptools/_vendor/wheel/vendored/packaging/utils.py +172 -0
- code/LaDi-RL-old-qwen-cod/LaDi-RL-old-qwen-cod/venv/lib64/python3.10/site-packages/setuptools/_vendor/wheel/vendored/packaging/version.py +561 -0
- code/LaDi-RL-old-qwen-cod/LaDi-RL-old-qwen-cod/venv/lib64/python3.10/site-packages/setuptools/_vendor/zipp-3.19.2.dist-info/INSTALLER +1 -0
- code/LaDi-RL-old-qwen-cod/LaDi-RL-old-qwen-cod/venv/lib64/python3.10/site-packages/setuptools/_vendor/zipp-3.19.2.dist-info/LICENSE +17 -0
- code/LaDi-RL-old-qwen-cod/LaDi-RL-old-qwen-cod/venv/lib64/python3.10/site-packages/setuptools/_vendor/zipp-3.19.2.dist-info/METADATA +102 -0
- code/LaDi-RL-old-qwen-cod/LaDi-RL-old-qwen-cod/venv/lib64/python3.10/site-packages/setuptools/_vendor/zipp-3.19.2.dist-info/RECORD +15 -0
- code/LaDi-RL-old-qwen-cod/LaDi-RL-old-qwen-cod/venv/lib64/python3.10/site-packages/setuptools/_vendor/zipp-3.19.2.dist-info/REQUESTED +0 -0
- code/LaDi-RL-old-qwen-cod/LaDi-RL-old-qwen-cod/venv/lib64/python3.10/site-packages/setuptools/_vendor/zipp-3.19.2.dist-info/WHEEL +5 -0
- code/LaDi-RL-old-qwen-cod/LaDi-RL-old-qwen-cod/venv/lib64/python3.10/site-packages/setuptools/_vendor/zipp-3.19.2.dist-info/top_level.txt +1 -0
- code/LaDi-RL-old-qwen-cod/LaDi-RL-old-qwen-cod/venv/lib64/python3.10/site-packages/setuptools/_vendor/zipp/__init__.py +501 -0
- code/LaDi-RL-old-qwen-cod/LaDi-RL-old-qwen-cod/venv/lib64/python3.10/site-packages/setuptools/_vendor/zipp/compat/__init__.py +0 -0
- code/LaDi-RL-old-qwen-cod/LaDi-RL-old-qwen-cod/venv/lib64/python3.10/site-packages/setuptools/_vendor/zipp/compat/py310.py +11 -0
- code/LaDi-RL-old-qwen-cod/LaDi-RL-old-qwen-cod/venv/lib64/python3.10/site-packages/setuptools/_vendor/zipp/glob.py +106 -0
- code/LaDi-RL-old-qwen-cod/LaDi-RL-old-qwen-cod/venv/lib64/python3.10/site-packages/setuptools/command/__init__.py +21 -0
- code/LaDi-RL-old-qwen-cod/LaDi-RL-old-qwen-cod/venv/lib64/python3.10/site-packages/setuptools/command/_requirestxt.py +131 -0
- code/LaDi-RL-old-qwen-cod/LaDi-RL-old-qwen-cod/venv/lib64/python3.10/site-packages/setuptools/command/alias.py +77 -0
- code/LaDi-RL-old-qwen-cod/LaDi-RL-old-qwen-cod/venv/lib64/python3.10/site-packages/setuptools/command/bdist_egg.py +479 -0
- code/LaDi-RL-old-qwen-cod/LaDi-RL-old-qwen-cod/venv/lib64/python3.10/site-packages/setuptools/command/bdist_rpm.py +42 -0
- code/LaDi-RL-old-qwen-cod/LaDi-RL-old-qwen-cod/venv/lib64/python3.10/site-packages/setuptools/command/bdist_wheel.py +604 -0
- code/LaDi-RL-old-qwen-cod/LaDi-RL-old-qwen-cod/venv/lib64/python3.10/site-packages/setuptools/command/build.py +135 -0
- code/LaDi-RL-old-qwen-cod/LaDi-RL-old-qwen-cod/venv/lib64/python3.10/site-packages/setuptools/command/build_clib.py +103 -0
- code/LaDi-RL-old-qwen-cod/LaDi-RL-old-qwen-cod/venv/lib64/python3.10/site-packages/setuptools/command/build_ext.py +469 -0
- code/LaDi-RL-old-qwen-cod/LaDi-RL-old-qwen-cod/venv/lib64/python3.10/site-packages/setuptools/command/build_py.py +400 -0
- code/LaDi-RL-old-qwen-cod/LaDi-RL-old-qwen-cod/venv/lib64/python3.10/site-packages/setuptools/command/develop.py +195 -0
code/LaDi-RL-old-qwen-cod/LaDi-RL-old-qwen-cod/venv/lib64/python3.10/site-packages/setuptools-79.0.1.dist-info/INSTALLER
ADDED
|
@@ -0,0 +1 @@
|
|
|
|
|
|
|
| 1 |
+
pip
|
code/LaDi-RL-old-qwen-cod/LaDi-RL-old-qwen-cod/venv/lib64/python3.10/site-packages/setuptools-79.0.1.dist-info/METADATA
ADDED
|
@@ -0,0 +1,140 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
Metadata-Version: 2.4
|
| 2 |
+
Name: setuptools
|
| 3 |
+
Version: 79.0.1
|
| 4 |
+
Summary: Easily download, build, install, upgrade, and uninstall Python packages
|
| 5 |
+
Author-email: Python Packaging Authority <distutils-sig@python.org>
|
| 6 |
+
Project-URL: Source, https://github.com/pypa/setuptools
|
| 7 |
+
Project-URL: Documentation, https://setuptools.pypa.io/
|
| 8 |
+
Project-URL: Changelog, https://setuptools.pypa.io/en/stable/history.html
|
| 9 |
+
Keywords: CPAN PyPI distutils eggs package management
|
| 10 |
+
Classifier: Development Status :: 5 - Production/Stable
|
| 11 |
+
Classifier: Intended Audience :: Developers
|
| 12 |
+
Classifier: Programming Language :: Python :: 3
|
| 13 |
+
Classifier: Programming Language :: Python :: 3 :: Only
|
| 14 |
+
Classifier: Topic :: Software Development :: Libraries :: Python Modules
|
| 15 |
+
Classifier: Topic :: System :: Archiving :: Packaging
|
| 16 |
+
Classifier: Topic :: System :: Systems Administration
|
| 17 |
+
Classifier: Topic :: Utilities
|
| 18 |
+
Requires-Python: >=3.9
|
| 19 |
+
Description-Content-Type: text/x-rst
|
| 20 |
+
License-File: LICENSE
|
| 21 |
+
Provides-Extra: test
|
| 22 |
+
Requires-Dist: pytest!=8.1.*,>=6; extra == "test"
|
| 23 |
+
Requires-Dist: virtualenv>=13.0.0; extra == "test"
|
| 24 |
+
Requires-Dist: wheel>=0.44.0; extra == "test"
|
| 25 |
+
Requires-Dist: pip>=19.1; extra == "test"
|
| 26 |
+
Requires-Dist: packaging>=24.2; extra == "test"
|
| 27 |
+
Requires-Dist: jaraco.envs>=2.2; extra == "test"
|
| 28 |
+
Requires-Dist: pytest-xdist>=3; extra == "test"
|
| 29 |
+
Requires-Dist: jaraco.path>=3.7.2; extra == "test"
|
| 30 |
+
Requires-Dist: build[virtualenv]>=1.0.3; extra == "test"
|
| 31 |
+
Requires-Dist: filelock>=3.4.0; extra == "test"
|
| 32 |
+
Requires-Dist: ini2toml[lite]>=0.14; extra == "test"
|
| 33 |
+
Requires-Dist: tomli-w>=1.0.0; extra == "test"
|
| 34 |
+
Requires-Dist: pytest-timeout; extra == "test"
|
| 35 |
+
Requires-Dist: pytest-perf; sys_platform != "cygwin" and extra == "test"
|
| 36 |
+
Requires-Dist: jaraco.develop>=7.21; (python_version >= "3.9" and sys_platform != "cygwin") and extra == "test"
|
| 37 |
+
Requires-Dist: pytest-home>=0.5; extra == "test"
|
| 38 |
+
Requires-Dist: pytest-subprocess; extra == "test"
|
| 39 |
+
Requires-Dist: pyproject-hooks!=1.1; extra == "test"
|
| 40 |
+
Requires-Dist: jaraco.test>=5.5; extra == "test"
|
| 41 |
+
Provides-Extra: doc
|
| 42 |
+
Requires-Dist: sphinx>=3.5; extra == "doc"
|
| 43 |
+
Requires-Dist: jaraco.packaging>=9.3; extra == "doc"
|
| 44 |
+
Requires-Dist: rst.linker>=1.9; extra == "doc"
|
| 45 |
+
Requires-Dist: furo; extra == "doc"
|
| 46 |
+
Requires-Dist: sphinx-lint; extra == "doc"
|
| 47 |
+
Requires-Dist: jaraco.tidelift>=1.4; extra == "doc"
|
| 48 |
+
Requires-Dist: pygments-github-lexers==0.0.5; extra == "doc"
|
| 49 |
+
Requires-Dist: sphinx-favicon; extra == "doc"
|
| 50 |
+
Requires-Dist: sphinx-inline-tabs; extra == "doc"
|
| 51 |
+
Requires-Dist: sphinx-reredirects; extra == "doc"
|
| 52 |
+
Requires-Dist: sphinxcontrib-towncrier; extra == "doc"
|
| 53 |
+
Requires-Dist: sphinx-notfound-page<2,>=1; extra == "doc"
|
| 54 |
+
Requires-Dist: pyproject-hooks!=1.1; extra == "doc"
|
| 55 |
+
Requires-Dist: towncrier<24.7; extra == "doc"
|
| 56 |
+
Provides-Extra: ssl
|
| 57 |
+
Provides-Extra: certs
|
| 58 |
+
Provides-Extra: core
|
| 59 |
+
Requires-Dist: packaging>=24.2; extra == "core"
|
| 60 |
+
Requires-Dist: more_itertools>=8.8; extra == "core"
|
| 61 |
+
Requires-Dist: jaraco.text>=3.7; extra == "core"
|
| 62 |
+
Requires-Dist: importlib_metadata>=6; python_version < "3.10" and extra == "core"
|
| 63 |
+
Requires-Dist: tomli>=2.0.1; python_version < "3.11" and extra == "core"
|
| 64 |
+
Requires-Dist: wheel>=0.43.0; extra == "core"
|
| 65 |
+
Requires-Dist: platformdirs>=4.2.2; 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.8.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.14.*; 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>`_.
|
code/LaDi-RL-old-qwen-cod/LaDi-RL-old-qwen-cod/venv/lib64/python3.10/site-packages/setuptools-79.0.1.dist-info/RECORD
ADDED
|
@@ -0,0 +1,873 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|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
|
| 5 |
+
distutils-precedence.pth,sha256=JjjOniUA5XKl4N5_rtZmHrVp0baW_LoHsN0iPaX10iQ,151
|
| 6 |
+
pkg_resources/__init__.py,sha256=-rh7XOnTxdGuC-_9FAyu5D6s8BL1UsBehxUtj7a-IVo,126203
|
| 7 |
+
pkg_resources/__pycache__/__init__.cpython-310.pyc,,
|
| 8 |
+
pkg_resources/api_tests.txt,sha256=XEdvy4igHHrq2qNHNMHnlfO6XSQKNqOyLHbl6QcpfAI,12595
|
| 9 |
+
pkg_resources/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
| 10 |
+
pkg_resources/tests/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
| 11 |
+
pkg_resources/tests/__pycache__/__init__.cpython-310.pyc,,
|
| 12 |
+
pkg_resources/tests/__pycache__/test_find_distributions.cpython-310.pyc,,
|
| 13 |
+
pkg_resources/tests/__pycache__/test_integration_zope_interface.cpython-310.pyc,,
|
| 14 |
+
pkg_resources/tests/__pycache__/test_markers.cpython-310.pyc,,
|
| 15 |
+
pkg_resources/tests/__pycache__/test_pkg_resources.cpython-310.pyc,,
|
| 16 |
+
pkg_resources/tests/__pycache__/test_resources.cpython-310.pyc,,
|
| 17 |
+
pkg_resources/tests/__pycache__/test_working_set.cpython-310.pyc,,
|
| 18 |
+
pkg_resources/tests/data/my-test-package-source/__pycache__/setup.cpython-310.pyc,,
|
| 19 |
+
pkg_resources/tests/data/my-test-package-source/setup.cfg,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
| 20 |
+
pkg_resources/tests/data/my-test-package-source/setup.py,sha256=1VobhAZbMb7M9mfhb_NE8PwDsvukoWLs9aUAS0pYhe8,105
|
| 21 |
+
pkg_resources/tests/data/my-test-package-zip/my-test-package.zip,sha256=AYRcQ39GVePPnMT8TknP1gdDHyJnXhthESmpAjnzSCI,1809
|
| 22 |
+
pkg_resources/tests/data/my-test-package_unpacked-egg/my_test_package-1.0-py3.7.egg/EGG-INFO/PKG-INFO,sha256=JvWv9Io2PAuYwEEw2fBW4Qc5YvdbkscpKX1kmLzsoHk,187
|
| 23 |
+
pkg_resources/tests/data/my-test-package_unpacked-egg/my_test_package-1.0-py3.7.egg/EGG-INFO/SOURCES.txt,sha256=4ClkH8eTovZrdVrJFsVuxdbMEF--lBVSuKonDAPE5Jc,208
|
| 24 |
+
pkg_resources/tests/data/my-test-package_unpacked-egg/my_test_package-1.0-py3.7.egg/EGG-INFO/dependency_links.txt,sha256=AbpHGcgLb-kRsJGnwFEktk7uzpZOCcBY74-YBdrKVGs,1
|
| 25 |
+
pkg_resources/tests/data/my-test-package_unpacked-egg/my_test_package-1.0-py3.7.egg/EGG-INFO/top_level.txt,sha256=AbpHGcgLb-kRsJGnwFEktk7uzpZOCcBY74-YBdrKVGs,1
|
| 26 |
+
pkg_resources/tests/data/my-test-package_unpacked-egg/my_test_package-1.0-py3.7.egg/EGG-INFO/zip-safe,sha256=AbpHGcgLb-kRsJGnwFEktk7uzpZOCcBY74-YBdrKVGs,1
|
| 27 |
+
pkg_resources/tests/data/my-test-package_zipped-egg/my_test_package-1.0-py3.7.egg,sha256=ZTlMGxjRGiKDNkiA2c75jbQH2TWIteP00irF9gvczbo,843
|
| 28 |
+
pkg_resources/tests/test_find_distributions.py,sha256=U91cov5L1COAIWLNq3Xy4plU7_MnOE1WtXMu6iV2waM,1972
|
| 29 |
+
pkg_resources/tests/test_integration_zope_interface.py,sha256=nzVoK557KZQN0V3DIQ1sVeaCOgt4Kpl-CODAWsO7pmc,1652
|
| 30 |
+
pkg_resources/tests/test_markers.py,sha256=0orKg7UMDf7fnuNQvRMOc-EF9EAP_JTQnk4mtGgbW50,241
|
| 31 |
+
pkg_resources/tests/test_pkg_resources.py,sha256=5Mt4bJQhLCL8j8cC46Uv32Np2Xc1TTxLGawIfET55Fk,17111
|
| 32 |
+
pkg_resources/tests/test_resources.py,sha256=K0LqMAUGpRQ9pUb9K0vyI7GesvtlQvTH074m-E2VQlo,31252
|
| 33 |
+
pkg_resources/tests/test_working_set.py,sha256=lRtGJWIixSwSMSbjHgRxeJEQiLMRXcz3xzJL2qL7eXY,8602
|
| 34 |
+
setuptools-79.0.1.dist-info/INSTALLER,sha256=zuuue4knoyJ-UwPPXg8fezS7VCrXJQrAP7zeNuwvFQg,4
|
| 35 |
+
setuptools-79.0.1.dist-info/METADATA,sha256=0xUsrrFIbRQ7MLHUH_-q3bfqlf3JVHrhE1zml7GkILU,6548
|
| 36 |
+
setuptools-79.0.1.dist-info/RECORD,,
|
| 37 |
+
setuptools-79.0.1.dist-info/REQUESTED,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
| 38 |
+
setuptools-79.0.1.dist-info/WHEEL,sha256=SmOxYU7pzNKBqASvQJ7DjX3XGUF92lrGhMb3R6_iiqI,91
|
| 39 |
+
setuptools-79.0.1.dist-info/entry_points.txt,sha256=zkgthpf_Fa9NVE9p6FKT3Xk9DR1faAcRU4coggsV7jA,2449
|
| 40 |
+
setuptools-79.0.1.dist-info/licenses/LICENSE,sha256=htoPAa6uRjSKPD1GUZXcHOzN55956HdppkuNoEsqR0E,1023
|
| 41 |
+
setuptools-79.0.1.dist-info/top_level.txt,sha256=d9yL39v_W7qmKDDSH6sT4bE0j_Ls1M3P161OGgdsm4g,41
|
| 42 |
+
setuptools/__init__.py,sha256=AQsMeRFWz9CQ9aBtcSkbB4Dn8t2w86-GPriklpoAjew,10406
|
| 43 |
+
setuptools/__pycache__/__init__.cpython-310.pyc,,
|
| 44 |
+
setuptools/__pycache__/_core_metadata.cpython-310.pyc,,
|
| 45 |
+
setuptools/__pycache__/_entry_points.cpython-310.pyc,,
|
| 46 |
+
setuptools/__pycache__/_imp.cpython-310.pyc,,
|
| 47 |
+
setuptools/__pycache__/_importlib.cpython-310.pyc,,
|
| 48 |
+
setuptools/__pycache__/_itertools.cpython-310.pyc,,
|
| 49 |
+
setuptools/__pycache__/_normalization.cpython-310.pyc,,
|
| 50 |
+
setuptools/__pycache__/_path.cpython-310.pyc,,
|
| 51 |
+
setuptools/__pycache__/_reqs.cpython-310.pyc,,
|
| 52 |
+
setuptools/__pycache__/_shutil.cpython-310.pyc,,
|
| 53 |
+
setuptools/__pycache__/_static.cpython-310.pyc,,
|
| 54 |
+
setuptools/__pycache__/archive_util.cpython-310.pyc,,
|
| 55 |
+
setuptools/__pycache__/build_meta.cpython-310.pyc,,
|
| 56 |
+
setuptools/__pycache__/depends.cpython-310.pyc,,
|
| 57 |
+
setuptools/__pycache__/discovery.cpython-310.pyc,,
|
| 58 |
+
setuptools/__pycache__/dist.cpython-310.pyc,,
|
| 59 |
+
setuptools/__pycache__/errors.cpython-310.pyc,,
|
| 60 |
+
setuptools/__pycache__/extension.cpython-310.pyc,,
|
| 61 |
+
setuptools/__pycache__/glob.cpython-310.pyc,,
|
| 62 |
+
setuptools/__pycache__/installer.cpython-310.pyc,,
|
| 63 |
+
setuptools/__pycache__/launch.cpython-310.pyc,,
|
| 64 |
+
setuptools/__pycache__/logging.cpython-310.pyc,,
|
| 65 |
+
setuptools/__pycache__/modified.cpython-310.pyc,,
|
| 66 |
+
setuptools/__pycache__/monkey.cpython-310.pyc,,
|
| 67 |
+
setuptools/__pycache__/msvc.cpython-310.pyc,,
|
| 68 |
+
setuptools/__pycache__/namespaces.cpython-310.pyc,,
|
| 69 |
+
setuptools/__pycache__/package_index.cpython-310.pyc,,
|
| 70 |
+
setuptools/__pycache__/sandbox.cpython-310.pyc,,
|
| 71 |
+
setuptools/__pycache__/unicode_utils.cpython-310.pyc,,
|
| 72 |
+
setuptools/__pycache__/version.cpython-310.pyc,,
|
| 73 |
+
setuptools/__pycache__/warnings.cpython-310.pyc,,
|
| 74 |
+
setuptools/__pycache__/wheel.cpython-310.pyc,,
|
| 75 |
+
setuptools/__pycache__/windows_support.cpython-310.pyc,,
|
| 76 |
+
setuptools/_core_metadata.py,sha256=T7Tjp-WSoN881adev3R1wzXCPnkDHqbC2MgylN1yjS8,11978
|
| 77 |
+
setuptools/_distutils/__init__.py,sha256=xGYuhWwLG07J0Q49BVnEjPy6wyDcd6veJMDJX7ljlyM,359
|
| 78 |
+
setuptools/_distutils/__pycache__/__init__.cpython-310.pyc,,
|
| 79 |
+
setuptools/_distutils/__pycache__/_log.cpython-310.pyc,,
|
| 80 |
+
setuptools/_distutils/__pycache__/_macos_compat.cpython-310.pyc,,
|
| 81 |
+
setuptools/_distutils/__pycache__/_modified.cpython-310.pyc,,
|
| 82 |
+
setuptools/_distutils/__pycache__/_msvccompiler.cpython-310.pyc,,
|
| 83 |
+
setuptools/_distutils/__pycache__/archive_util.cpython-310.pyc,,
|
| 84 |
+
setuptools/_distutils/__pycache__/ccompiler.cpython-310.pyc,,
|
| 85 |
+
setuptools/_distutils/__pycache__/cmd.cpython-310.pyc,,
|
| 86 |
+
setuptools/_distutils/__pycache__/core.cpython-310.pyc,,
|
| 87 |
+
setuptools/_distutils/__pycache__/cygwinccompiler.cpython-310.pyc,,
|
| 88 |
+
setuptools/_distutils/__pycache__/debug.cpython-310.pyc,,
|
| 89 |
+
setuptools/_distutils/__pycache__/dep_util.cpython-310.pyc,,
|
| 90 |
+
setuptools/_distutils/__pycache__/dir_util.cpython-310.pyc,,
|
| 91 |
+
setuptools/_distutils/__pycache__/dist.cpython-310.pyc,,
|
| 92 |
+
setuptools/_distutils/__pycache__/errors.cpython-310.pyc,,
|
| 93 |
+
setuptools/_distutils/__pycache__/extension.cpython-310.pyc,,
|
| 94 |
+
setuptools/_distutils/__pycache__/fancy_getopt.cpython-310.pyc,,
|
| 95 |
+
setuptools/_distutils/__pycache__/file_util.cpython-310.pyc,,
|
| 96 |
+
setuptools/_distutils/__pycache__/filelist.cpython-310.pyc,,
|
| 97 |
+
setuptools/_distutils/__pycache__/log.cpython-310.pyc,,
|
| 98 |
+
setuptools/_distutils/__pycache__/spawn.cpython-310.pyc,,
|
| 99 |
+
setuptools/_distutils/__pycache__/sysconfig.cpython-310.pyc,,
|
| 100 |
+
setuptools/_distutils/__pycache__/text_file.cpython-310.pyc,,
|
| 101 |
+
setuptools/_distutils/__pycache__/unixccompiler.cpython-310.pyc,,
|
| 102 |
+
setuptools/_distutils/__pycache__/util.cpython-310.pyc,,
|
| 103 |
+
setuptools/_distutils/__pycache__/version.cpython-310.pyc,,
|
| 104 |
+
setuptools/_distutils/__pycache__/versionpredicate.cpython-310.pyc,,
|
| 105 |
+
setuptools/_distutils/__pycache__/zosccompiler.cpython-310.pyc,,
|
| 106 |
+
setuptools/_distutils/_log.py,sha256=i-lNTTcXS8TmWITJ6DODGvtW5z5tMattJQ76h8rZxQU,42
|
| 107 |
+
setuptools/_distutils/_macos_compat.py,sha256=JzUGhF4E5yIITHbUaPobZEWjGHdrrcNV63z86S4RjBc,239
|
| 108 |
+
setuptools/_distutils/_modified.py,sha256=RF1n1CexyDYV3lvGbeXS0s-XCJVboDOIUbA8wEQqYTY,3211
|
| 109 |
+
setuptools/_distutils/_msvccompiler.py,sha256=9PSfSHxvJnHnQL6Sqz4Xcz7iaBIT62p6BheQzGsSlwo,335
|
| 110 |
+
setuptools/_distutils/archive_util.py,sha256=Qw2z-Pt-NV8lNUQrzjs3XDGWCWHMPnqHLyt8TiD2XEA,8884
|
| 111 |
+
setuptools/_distutils/ccompiler.py,sha256=FKVjqzGJ7c-FtouNjhLiaMPm5LKMZHHAruXf8LU216c,524
|
| 112 |
+
setuptools/_distutils/cmd.py,sha256=hXtaRaH7QBnfNOIqEvCt47iwZzD9MVvBdhhdQctHsxM,22186
|
| 113 |
+
setuptools/_distutils/command/__init__.py,sha256=GfFAzbBqk1qxSH4BdaKioKS4hRRnD44BAmwEN85C4u8,386
|
| 114 |
+
setuptools/_distutils/command/__pycache__/__init__.cpython-310.pyc,,
|
| 115 |
+
setuptools/_distutils/command/__pycache__/_framework_compat.cpython-310.pyc,,
|
| 116 |
+
setuptools/_distutils/command/__pycache__/bdist.cpython-310.pyc,,
|
| 117 |
+
setuptools/_distutils/command/__pycache__/bdist_dumb.cpython-310.pyc,,
|
| 118 |
+
setuptools/_distutils/command/__pycache__/bdist_rpm.cpython-310.pyc,,
|
| 119 |
+
setuptools/_distutils/command/__pycache__/build.cpython-310.pyc,,
|
| 120 |
+
setuptools/_distutils/command/__pycache__/build_clib.cpython-310.pyc,,
|
| 121 |
+
setuptools/_distutils/command/__pycache__/build_ext.cpython-310.pyc,,
|
| 122 |
+
setuptools/_distutils/command/__pycache__/build_py.cpython-310.pyc,,
|
| 123 |
+
setuptools/_distutils/command/__pycache__/build_scripts.cpython-310.pyc,,
|
| 124 |
+
setuptools/_distutils/command/__pycache__/check.cpython-310.pyc,,
|
| 125 |
+
setuptools/_distutils/command/__pycache__/clean.cpython-310.pyc,,
|
| 126 |
+
setuptools/_distutils/command/__pycache__/config.cpython-310.pyc,,
|
| 127 |
+
setuptools/_distutils/command/__pycache__/install.cpython-310.pyc,,
|
| 128 |
+
setuptools/_distutils/command/__pycache__/install_data.cpython-310.pyc,,
|
| 129 |
+
setuptools/_distutils/command/__pycache__/install_egg_info.cpython-310.pyc,,
|
| 130 |
+
setuptools/_distutils/command/__pycache__/install_headers.cpython-310.pyc,,
|
| 131 |
+
setuptools/_distutils/command/__pycache__/install_lib.cpython-310.pyc,,
|
| 132 |
+
setuptools/_distutils/command/__pycache__/install_scripts.cpython-310.pyc,,
|
| 133 |
+
setuptools/_distutils/command/__pycache__/sdist.cpython-310.pyc,,
|
| 134 |
+
setuptools/_distutils/command/_framework_compat.py,sha256=0iZdSJYzGRWCCvzRDKE-R0-_yaAYvFMd1ylXb2eYXug,1609
|
| 135 |
+
setuptools/_distutils/command/bdist.py,sha256=jWtk61R7fWNUUNxJV0thTZzU5n80L3Ay1waSiP9kiLA,5854
|
| 136 |
+
setuptools/_distutils/command/bdist_dumb.py,sha256=Hx1jAqoZNxYIy4N5TLzUp6J5fi8Ls18py7UlLNFhO2E,4631
|
| 137 |
+
setuptools/_distutils/command/bdist_rpm.py,sha256=nxcXXv5a7B-1ntWu4DbGmCtES4EBINrJaBQcRNAYCJI,21785
|
| 138 |
+
setuptools/_distutils/command/build.py,sha256=SpHlagf0iNaKVyIhxDfhPFZ8X1-LAWOCQACy-yt2K0w,5923
|
| 139 |
+
setuptools/_distutils/command/build_clib.py,sha256=aMqZcUfCbOAu_xr-A9iW-Q9YZHzpDGLRTezOgMQJmSQ,7777
|
| 140 |
+
setuptools/_distutils/command/build_ext.py,sha256=zrrsu9HXnzV6bXYbJuZCK4SwVZMjKnl4pG1o3bNcxtc,32710
|
| 141 |
+
setuptools/_distutils/command/build_py.py,sha256=Vfq-INemoMbg6f003BTy_Ufp8bjOZhmFIhpKMcfXLgs,16696
|
| 142 |
+
setuptools/_distutils/command/build_scripts.py,sha256=tUpEzwTsnrP8qrNory3ldPB240QDCFkMp-pdYPs2wTk,5118
|
| 143 |
+
setuptools/_distutils/command/check.py,sha256=yoNe2MPY4JcTM7rwoIQdfZ75q5Ri058I2coi-Gq9CjM,4946
|
| 144 |
+
setuptools/_distutils/command/clean.py,sha256=dQAacOabwBXU9JoZ-1GFusq3eFltDaeXJFSYncqGbvE,2644
|
| 145 |
+
setuptools/_distutils/command/config.py,sha256=qrrfz6NEQORmbqiY2XlvCDWYhsbLyxZXJsURKfYN_kw,12724
|
| 146 |
+
setuptools/_distutils/command/install.py,sha256=-JenB-mua4hc2RI_-W8F9PnP_J-OaFO7E0PJGKxLo1o,30072
|
| 147 |
+
setuptools/_distutils/command/install_data.py,sha256=GzBlUWWKubTYJlP-L0auUriq9cL-5RKOcoyHTttKj0Q,2875
|
| 148 |
+
setuptools/_distutils/command/install_egg_info.py,sha256=ffiLoU1ivQJ8q2_WL7ZygZbUcOsgdFLKL7otEIJWWkI,2868
|
| 149 |
+
setuptools/_distutils/command/install_headers.py,sha256=5ciKCj8c3XKsYNKdkdMvnypaUCKcoWCDeeZij3fD-Z4,1272
|
| 150 |
+
setuptools/_distutils/command/install_lib.py,sha256=2s9-m5-b1qKm51F28lB5L39Z6vv_GHMlv9dNBSupok0,8588
|
| 151 |
+
setuptools/_distutils/command/install_scripts.py,sha256=M0pPdiaqB7TGmqTMujpGGeiL0Iq_CTeGjMFtrmDmwzM,2002
|
| 152 |
+
setuptools/_distutils/command/sdist.py,sha256=cRIF6Ht1hJ6ayOOFVycMFBUNxjo94e_rFYPx4Hi8Ahc,19151
|
| 153 |
+
setuptools/_distutils/compat/__init__.py,sha256=J20aXGjJ86Rg41xFLIWlcWCgZ9edMdJ9vvdNEQ87vPQ,522
|
| 154 |
+
setuptools/_distutils/compat/__pycache__/__init__.cpython-310.pyc,,
|
| 155 |
+
setuptools/_distutils/compat/__pycache__/numpy.cpython-310.pyc,,
|
| 156 |
+
setuptools/_distutils/compat/__pycache__/py39.cpython-310.pyc,,
|
| 157 |
+
setuptools/_distutils/compat/numpy.py,sha256=UFgneZw9w97g4c-yGoAIOyLxUOWQ-fPRIhhfMs7_Ouc,167
|
| 158 |
+
setuptools/_distutils/compat/py39.py,sha256=hOsD6lwZLqZoMnacNJ3P6nUA-LJQhEpVtYTzVH0o96M,1964
|
| 159 |
+
setuptools/_distutils/compilers/C/__pycache__/base.cpython-310.pyc,,
|
| 160 |
+
setuptools/_distutils/compilers/C/__pycache__/cygwin.cpython-310.pyc,,
|
| 161 |
+
setuptools/_distutils/compilers/C/__pycache__/errors.cpython-310.pyc,,
|
| 162 |
+
setuptools/_distutils/compilers/C/__pycache__/msvc.cpython-310.pyc,,
|
| 163 |
+
setuptools/_distutils/compilers/C/__pycache__/unix.cpython-310.pyc,,
|
| 164 |
+
setuptools/_distutils/compilers/C/__pycache__/zos.cpython-310.pyc,,
|
| 165 |
+
setuptools/_distutils/compilers/C/base.py,sha256=XR1rBCStCquqm7QOYXD41-LfvsFcPpGxrwxeXzJyn_w,54876
|
| 166 |
+
setuptools/_distutils/compilers/C/cygwin.py,sha256=DUlwQSb55aj7OdcmcddrmCmVEjEaxIiJ5hHUO3GBPNs,11844
|
| 167 |
+
setuptools/_distutils/compilers/C/errors.py,sha256=sKOVzJajMUmNdfywo9UM_QQGsKFcclDhtI5TlCiXMLc,573
|
| 168 |
+
setuptools/_distutils/compilers/C/msvc.py,sha256=elzG8v9jN5QytLMwLCdUdSuZ3eZ3R98VUvnm9Y2PBCA,21404
|
| 169 |
+
setuptools/_distutils/compilers/C/tests/__pycache__/test_base.cpython-310.pyc,,
|
| 170 |
+
setuptools/_distutils/compilers/C/tests/__pycache__/test_cygwin.cpython-310.pyc,,
|
| 171 |
+
setuptools/_distutils/compilers/C/tests/__pycache__/test_mingw.cpython-310.pyc,,
|
| 172 |
+
setuptools/_distutils/compilers/C/tests/__pycache__/test_msvc.cpython-310.pyc,,
|
| 173 |
+
setuptools/_distutils/compilers/C/tests/__pycache__/test_unix.cpython-310.pyc,,
|
| 174 |
+
setuptools/_distutils/compilers/C/tests/test_base.py,sha256=rdhHc56bhXtm5NnN9BSHwr6c69UqzMItZQzlw2AsdMc,2706
|
| 175 |
+
setuptools/_distutils/compilers/C/tests/test_cygwin.py,sha256=UgV2VgUXj3VulcbDc0UBWfEyJDx42tgSwS4LzHix3mY,2701
|
| 176 |
+
setuptools/_distutils/compilers/C/tests/test_mingw.py,sha256=hCmwyywISpRoyOySbFHBL4TprWRV0mUWDKmOLO8XBXE,1900
|
| 177 |
+
setuptools/_distutils/compilers/C/tests/test_msvc.py,sha256=DlGjmZ1mBSMXIgmlu80BKc7V-EJOZuYucwJwFh5dn28,4151
|
| 178 |
+
setuptools/_distutils/compilers/C/tests/test_unix.py,sha256=AyadWw1fR-UeDl2TvIbYBzOJVHkpE_oRRQ3JTJWqaEA,14642
|
| 179 |
+
setuptools/_distutils/compilers/C/unix.py,sha256=YH-y9g_pjBFjaJyHJQkDEBQ7q4D20I2-cWJNdgw-Yho,16531
|
| 180 |
+
setuptools/_distutils/compilers/C/zos.py,sha256=vnNeWLRZkdIkdZ-YyBnL8idTUfcCOn0tLMW5OBJ0ScU,6586
|
| 181 |
+
setuptools/_distutils/core.py,sha256=GEHKaFC48T3o-_SmH4864GvKyx1IgbVC6ISIPVlx7a4,9364
|
| 182 |
+
setuptools/_distutils/cygwinccompiler.py,sha256=mG_cU8SVZ4amD_VtF5vH6BXP0-kghGsDPbDSXrQ963c,594
|
| 183 |
+
setuptools/_distutils/debug.py,sha256=N6MrTAqK6l9SVk6tWweR108PM8Ol7qNlfyV-nHcLhsY,139
|
| 184 |
+
setuptools/_distutils/dep_util.py,sha256=xN75p6ZpHhMiHEc-rpL2XilJQynHnDNiafHteaZ4tjU,349
|
| 185 |
+
setuptools/_distutils/dir_util.py,sha256=DXPUlfVVGsg9B-Jgg4At_j9T7vM60OgwNXkQHqTo7-I,7236
|
| 186 |
+
setuptools/_distutils/dist.py,sha256=gW598UE0WMkzXQQ31Nr-8L7MPw0oIOz5OSSRzYZlwrM,55794
|
| 187 |
+
setuptools/_distutils/errors.py,sha256=PPE2oDRh5y9Q1beKK9rhdvDaCzQhi4HCXs4KcqfqgZY,3092
|
| 188 |
+
setuptools/_distutils/extension.py,sha256=Foyu4gULcPqm1_U9zrYYHxNk4NqglXv1rbsOk_QrSds,11155
|
| 189 |
+
setuptools/_distutils/fancy_getopt.py,sha256=PjdO-bWCW0imV_UN-MGEw9R2GP2OiE8pHjITgmTAY3Q,17895
|
| 190 |
+
setuptools/_distutils/file_util.py,sha256=YFQL_pD3hLuER9II_H6-hDC_YIGEookdd4wedLuiTW0,7978
|
| 191 |
+
setuptools/_distutils/filelist.py,sha256=MBeSRJmPcKmDv8ooZgSU4BiQPZ0Khwv8l_jhD50XycI,15337
|
| 192 |
+
setuptools/_distutils/log.py,sha256=VyBs5j7z4-K6XTEEBThUc9HyMpoPLGtQpERqbz5ylww,1200
|
| 193 |
+
setuptools/_distutils/spawn.py,sha256=zseCh9sEifyp0I5Vg719JNIASlROJ2ehXqQnHlpt89Q,4086
|
| 194 |
+
setuptools/_distutils/sysconfig.py,sha256=KeI8OHbMuEzHJ8Q0cBez9KZny8iRy6Z6Y0AkMz1jlsU,19728
|
| 195 |
+
setuptools/_distutils/tests/__init__.py,sha256=j-IoPZEtQv3EOPuqNTwalr6GLyRjzCC-OOaNvZzmHsI,1485
|
| 196 |
+
setuptools/_distutils/tests/__pycache__/__init__.cpython-310.pyc,,
|
| 197 |
+
setuptools/_distutils/tests/__pycache__/support.cpython-310.pyc,,
|
| 198 |
+
setuptools/_distutils/tests/__pycache__/test_archive_util.cpython-310.pyc,,
|
| 199 |
+
setuptools/_distutils/tests/__pycache__/test_bdist.cpython-310.pyc,,
|
| 200 |
+
setuptools/_distutils/tests/__pycache__/test_bdist_dumb.cpython-310.pyc,,
|
| 201 |
+
setuptools/_distutils/tests/__pycache__/test_bdist_rpm.cpython-310.pyc,,
|
| 202 |
+
setuptools/_distutils/tests/__pycache__/test_build.cpython-310.pyc,,
|
| 203 |
+
setuptools/_distutils/tests/__pycache__/test_build_clib.cpython-310.pyc,,
|
| 204 |
+
setuptools/_distutils/tests/__pycache__/test_build_ext.cpython-310.pyc,,
|
| 205 |
+
setuptools/_distutils/tests/__pycache__/test_build_py.cpython-310.pyc,,
|
| 206 |
+
setuptools/_distutils/tests/__pycache__/test_build_scripts.cpython-310.pyc,,
|
| 207 |
+
setuptools/_distutils/tests/__pycache__/test_check.cpython-310.pyc,,
|
| 208 |
+
setuptools/_distutils/tests/__pycache__/test_clean.cpython-310.pyc,,
|
| 209 |
+
setuptools/_distutils/tests/__pycache__/test_cmd.cpython-310.pyc,,
|
| 210 |
+
setuptools/_distutils/tests/__pycache__/test_config_cmd.cpython-310.pyc,,
|
| 211 |
+
setuptools/_distutils/tests/__pycache__/test_core.cpython-310.pyc,,
|
| 212 |
+
setuptools/_distutils/tests/__pycache__/test_dir_util.cpython-310.pyc,,
|
| 213 |
+
setuptools/_distutils/tests/__pycache__/test_dist.cpython-310.pyc,,
|
| 214 |
+
setuptools/_distutils/tests/__pycache__/test_extension.cpython-310.pyc,,
|
| 215 |
+
setuptools/_distutils/tests/__pycache__/test_file_util.cpython-310.pyc,,
|
| 216 |
+
setuptools/_distutils/tests/__pycache__/test_filelist.cpython-310.pyc,,
|
| 217 |
+
setuptools/_distutils/tests/__pycache__/test_install.cpython-310.pyc,,
|
| 218 |
+
setuptools/_distutils/tests/__pycache__/test_install_data.cpython-310.pyc,,
|
| 219 |
+
setuptools/_distutils/tests/__pycache__/test_install_headers.cpython-310.pyc,,
|
| 220 |
+
setuptools/_distutils/tests/__pycache__/test_install_lib.cpython-310.pyc,,
|
| 221 |
+
setuptools/_distutils/tests/__pycache__/test_install_scripts.cpython-310.pyc,,
|
| 222 |
+
setuptools/_distutils/tests/__pycache__/test_log.cpython-310.pyc,,
|
| 223 |
+
setuptools/_distutils/tests/__pycache__/test_modified.cpython-310.pyc,,
|
| 224 |
+
setuptools/_distutils/tests/__pycache__/test_sdist.cpython-310.pyc,,
|
| 225 |
+
setuptools/_distutils/tests/__pycache__/test_spawn.cpython-310.pyc,,
|
| 226 |
+
setuptools/_distutils/tests/__pycache__/test_sysconfig.cpython-310.pyc,,
|
| 227 |
+
setuptools/_distutils/tests/__pycache__/test_text_file.cpython-310.pyc,,
|
| 228 |
+
setuptools/_distutils/tests/__pycache__/test_util.cpython-310.pyc,,
|
| 229 |
+
setuptools/_distutils/tests/__pycache__/test_version.cpython-310.pyc,,
|
| 230 |
+
setuptools/_distutils/tests/__pycache__/test_versionpredicate.cpython-310.pyc,,
|
| 231 |
+
setuptools/_distutils/tests/__pycache__/unix_compat.cpython-310.pyc,,
|
| 232 |
+
setuptools/_distutils/tests/compat/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
| 233 |
+
setuptools/_distutils/tests/compat/__pycache__/__init__.cpython-310.pyc,,
|
| 234 |
+
setuptools/_distutils/tests/compat/__pycache__/py39.cpython-310.pyc,,
|
| 235 |
+
setuptools/_distutils/tests/compat/py39.py,sha256=t0GBTM-30jX-9zCfkwlNBFtzzabemx6065mJ0d9_VRw,1026
|
| 236 |
+
setuptools/_distutils/tests/support.py,sha256=tjsYsyxvpTK4NrkCseh2ujvDIGV0Mf_b5SI5fP2T0yM,4099
|
| 237 |
+
setuptools/_distutils/tests/test_archive_util.py,sha256=jozimSwPBF-JoJfN_vDaiVGZp66BNcWZGh34FlW57DQ,11787
|
| 238 |
+
setuptools/_distutils/tests/test_bdist.py,sha256=xNHxUsLlHsZQRwkzLb_iSD24s-9Mk-NX2ffBWwOyPyc,1396
|
| 239 |
+
setuptools/_distutils/tests/test_bdist_dumb.py,sha256=QF05MHNhPOdZyh88Xpw8KsO64s7pRFkl8KL-RoV4XK0,2247
|
| 240 |
+
setuptools/_distutils/tests/test_bdist_rpm.py,sha256=Hdm-pwWgyaoGdGbEcGZa8cRhGU45y8gHK8umOanTjik,3932
|
| 241 |
+
setuptools/_distutils/tests/test_build.py,sha256=JJY5XpOZco25ZY0pstxl-iI8mHsWP0ujf5o8aOtuZYY,1742
|
| 242 |
+
setuptools/_distutils/tests/test_build_clib.py,sha256=Mo1ZFb4C1VXBYOGvnallwN7YCnTtr24akLDO8Zi4CsY,4331
|
| 243 |
+
setuptools/_distutils/tests/test_build_ext.py,sha256=QFO9qYVhWWdJu17HXc4x9RMnLZlhk0lAHi9HVppbuX4,22545
|
| 244 |
+
setuptools/_distutils/tests/test_build_py.py,sha256=NsfmRrojOHBXNMqWR_mp5g4PLTgjhD7iZFUffGZFIdw,6882
|
| 245 |
+
setuptools/_distutils/tests/test_build_scripts.py,sha256=cD-FRy-oX55sXRX5Ez5xQCaeHrWajyKc4Xuwv2fe48w,2880
|
| 246 |
+
setuptools/_distutils/tests/test_check.py,sha256=hHSV07qf7YoSxGsTbbsUQ9tssZz5RRNdbrY1s2SwaFI,6226
|
| 247 |
+
setuptools/_distutils/tests/test_clean.py,sha256=hPH6jfIpGFUrvWbF1txkiNVSNaAxt2wq5XjV499zO4E,1240
|
| 248 |
+
setuptools/_distutils/tests/test_cmd.py,sha256=bgRB79mitoOKR1OiyZHnCogvGxt3pWkxeTqIC04lQWQ,3254
|
| 249 |
+
setuptools/_distutils/tests/test_config_cmd.py,sha256=Zs6WX0IfxDvmuC19XzuVNnYCnTr9Y-hl73TAmDSBN4Y,2664
|
| 250 |
+
setuptools/_distutils/tests/test_core.py,sha256=L7XKVAxa-MGoAZeANopnuK9fRKneYhkSQpgw8XQvcF8,3829
|
| 251 |
+
setuptools/_distutils/tests/test_dir_util.py,sha256=E84lC-k4riVUwURyWaQ0Jqx2ui2-io-0RuJa3M7qkJs,4500
|
| 252 |
+
setuptools/_distutils/tests/test_dist.py,sha256=a6wlc5fQJd5qQ6HOndzcupNhjTxvj6-_JLtpuYvaP1M,18793
|
| 253 |
+
setuptools/_distutils/tests/test_extension.py,sha256=-YejLgZCuycFrOBd64pVH0JvwMc9NwhzHvQxvvjXHqk,3670
|
| 254 |
+
setuptools/_distutils/tests/test_file_util.py,sha256=livjnl3FkilQlrB2rFdFQq9nvjEVZHynNya0bfzv_b4,3522
|
| 255 |
+
setuptools/_distutils/tests/test_filelist.py,sha256=rJwkqCUfkGDgWlD22TozsT8ycbupMHB8DXqThzwT1T4,10766
|
| 256 |
+
setuptools/_distutils/tests/test_install.py,sha256=TfCB0ykhIxydIC2Q4SuTAZzSHvteMHgrBL9whoSgK9Q,8618
|
| 257 |
+
setuptools/_distutils/tests/test_install_data.py,sha256=vKq3K97k0hBAnOg38nmwEdf7cEDVr9rTVyCeJolgb4A,2464
|
| 258 |
+
setuptools/_distutils/tests/test_install_headers.py,sha256=PVAYpo_tYl980Qf64DPOmmSvyefIHdU06f7VsJeZykE,936
|
| 259 |
+
setuptools/_distutils/tests/test_install_lib.py,sha256=qri6Rl-maNTQrNDV8DbeXNl0hjsfRIKiI4rfZLrmWBI,3612
|
| 260 |
+
setuptools/_distutils/tests/test_install_scripts.py,sha256=KE3v0cDkFW-90IOID-OmZZGM2mhy-ZkEuuW7UXS2SHw,1600
|
| 261 |
+
setuptools/_distutils/tests/test_log.py,sha256=isFtOufloCyEdZaQOV7cVUr46GwtdVMj43mGBB5XH7k,323
|
| 262 |
+
setuptools/_distutils/tests/test_modified.py,sha256=h1--bOWmtJo1bpVV6uRhdnS9br71CBiNDM1MDwSGpug,4221
|
| 263 |
+
setuptools/_distutils/tests/test_sdist.py,sha256=cfzUhlCA418-1vH9ta3IBs26c_jUBbkJoFOK5GnAyNk,15062
|
| 264 |
+
setuptools/_distutils/tests/test_spawn.py,sha256=eS8w9D7bTxyFLSyRahJWeuh8Kc1F8RWWiY_dSG5B5Bc,4803
|
| 265 |
+
setuptools/_distutils/tests/test_sysconfig.py,sha256=lxM8LsUi1TomjDV4HoYK8u5nUoBkeNL60Uq8PY1DcwU,11986
|
| 266 |
+
setuptools/_distutils/tests/test_text_file.py,sha256=WQWSB5AfdBDZaMA8BFgipJPnsJb_2SKMfL90fSkRVtw,3460
|
| 267 |
+
setuptools/_distutils/tests/test_util.py,sha256=H9zlZ4z4Vh4TfjNYDBsxP7wguQLpxCfJYyOcm1yZU3c,7988
|
| 268 |
+
setuptools/_distutils/tests/test_version.py,sha256=ahfg_mP8wRy1sgwY-_Px5hrjgf6_upTIpnCgpR4yWRk,2750
|
| 269 |
+
setuptools/_distutils/tests/test_versionpredicate.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
| 270 |
+
setuptools/_distutils/tests/unix_compat.py,sha256=z-op6C2iVdX1aq5BIBR7cqOxijKE97alNwJqHNdLpoI,386
|
| 271 |
+
setuptools/_distutils/text_file.py,sha256=z4dkOJBr9Bo2LG0TNqm8sD63LEEaKSSP0J0bWBrFG3c,12101
|
| 272 |
+
setuptools/_distutils/unixccompiler.py,sha256=1bXJWH4fiu_A2WfriHzf88xjllQTXnnjUkZdRKs9cWU,212
|
| 273 |
+
setuptools/_distutils/util.py,sha256=Njfnqk60zMdkiAjRnGcTWX3t49-obHapOlbNvyIl02I,18094
|
| 274 |
+
setuptools/_distutils/version.py,sha256=vImT5-ECXkQ21oKL0XYFiTqK6NyM09cpzBNoA_34CQU,12619
|
| 275 |
+
setuptools/_distutils/versionpredicate.py,sha256=qBWQ6wTj12ODytoTmIydefIY2jb4uY1sdbgbuLn-IJM,5205
|
| 276 |
+
setuptools/_distutils/zosccompiler.py,sha256=svdiXZ2kdcwKrJKfhUhib03y8gz7aGZKukXH3I7YkBc,58
|
| 277 |
+
setuptools/_entry_points.py,sha256=Y3QUE9JKFW_YyquDnpffNWSs6f3jKEt1e-dnx--9-Kw,2310
|
| 278 |
+
setuptools/_imp.py,sha256=YY1EjZEN-0zYci1cxO10B_adAEOr7i8eK8JoCc9Ierc,2435
|
| 279 |
+
setuptools/_importlib.py,sha256=aKIjcK0HKXNz2D-XTrxaixGn_juTkONwmu3dcheMOF0,223
|
| 280 |
+
setuptools/_itertools.py,sha256=jWRfsIrpC7myooz3hDURj9GtvpswZeKXg2HakmEhNjo,657
|
| 281 |
+
setuptools/_normalization.py,sha256=kAmGfrwjF5djydEfLLyKgjkXCbL_0_ZxUPO-DlLlmIY,5824
|
| 282 |
+
setuptools/_path.py,sha256=cPv41v03HD7uEYqCIo-E_cGRfpPVr4lywBCiK-HSrCg,2685
|
| 283 |
+
setuptools/_reqs.py,sha256=QI3C9uOBSNRccu208qPnixHx51nxCry7_nPTIJaSYxM,1438
|
| 284 |
+
setuptools/_shutil.py,sha256=cAOllcoyMTXs5JLoybQi29yI5gABk82hepJyOBv2bMw,1496
|
| 285 |
+
setuptools/_static.py,sha256=GTR79gESF1_JaK4trLkpDrEuCeEtPlwQW0MRv7VNQX4,4855
|
| 286 |
+
setuptools/_vendor/__pycache__/typing_extensions.cpython-310.pyc,,
|
| 287 |
+
setuptools/_vendor/autocommand-2.2.2.dist-info/INSTALLER,sha256=zuuue4knoyJ-UwPPXg8fezS7VCrXJQrAP7zeNuwvFQg,4
|
| 288 |
+
setuptools/_vendor/autocommand-2.2.2.dist-info/LICENSE,sha256=reeNBJgtaZctREqOFKlPh6IzTdOFXMgDSOqOJAqg3y0,7634
|
| 289 |
+
setuptools/_vendor/autocommand-2.2.2.dist-info/METADATA,sha256=OADZuR3O6iBlpu1ieTgzYul6w4uOVrk0P0BO5TGGAJk,15006
|
| 290 |
+
setuptools/_vendor/autocommand-2.2.2.dist-info/RECORD,sha256=giu6ZrQVJvpUcYa4AiH4XaUNZSvuVJPb_l0UCFES8MM,1308
|
| 291 |
+
setuptools/_vendor/autocommand-2.2.2.dist-info/WHEEL,sha256=2wepM1nk4DS4eFpYrW1TTqPcoGNfHhhO_i5m4cOimbo,92
|
| 292 |
+
setuptools/_vendor/autocommand-2.2.2.dist-info/top_level.txt,sha256=AzfhgKKS8EdAwWUTSF8mgeVQbXOY9kokHB6kSqwwqu0,12
|
| 293 |
+
setuptools/_vendor/autocommand/__init__.py,sha256=zko5Rnvolvb-UXjCx_2ArPTGBWwUK5QY4LIQIKYR7As,1037
|
| 294 |
+
setuptools/_vendor/autocommand/__pycache__/__init__.cpython-310.pyc,,
|
| 295 |
+
setuptools/_vendor/autocommand/__pycache__/autoasync.cpython-310.pyc,,
|
| 296 |
+
setuptools/_vendor/autocommand/__pycache__/autocommand.cpython-310.pyc,,
|
| 297 |
+
setuptools/_vendor/autocommand/__pycache__/automain.cpython-310.pyc,,
|
| 298 |
+
setuptools/_vendor/autocommand/__pycache__/autoparse.cpython-310.pyc,,
|
| 299 |
+
setuptools/_vendor/autocommand/__pycache__/errors.cpython-310.pyc,,
|
| 300 |
+
setuptools/_vendor/autocommand/autoasync.py,sha256=AMdyrxNS4pqWJfP_xuoOcImOHWD-qT7x06wmKN1Vp-U,5680
|
| 301 |
+
setuptools/_vendor/autocommand/autocommand.py,sha256=hmkEmQ72HtL55gnURVjDOnsfYlGd5lLXbvT4KG496Qw,2505
|
| 302 |
+
setuptools/_vendor/autocommand/automain.py,sha256=A2b8i754Mxc_DjU9WFr6vqYDWlhz0cn8miu8d8EsxV8,2076
|
| 303 |
+
setuptools/_vendor/autocommand/autoparse.py,sha256=WVWmZJPcbzUKXP40raQw_0HD8qPJ2V9VG1eFFmmnFxw,11642
|
| 304 |
+
setuptools/_vendor/autocommand/errors.py,sha256=7aa3roh9Herd6nIKpQHNWEslWE8oq7GiHYVUuRqORnA,886
|
| 305 |
+
setuptools/_vendor/backports.tarfile-1.2.0.dist-info/INSTALLER,sha256=zuuue4knoyJ-UwPPXg8fezS7VCrXJQrAP7zeNuwvFQg,4
|
| 306 |
+
setuptools/_vendor/backports.tarfile-1.2.0.dist-info/LICENSE,sha256=htoPAa6uRjSKPD1GUZXcHOzN55956HdppkuNoEsqR0E,1023
|
| 307 |
+
setuptools/_vendor/backports.tarfile-1.2.0.dist-info/METADATA,sha256=ghXFTq132dxaEIolxr3HK1mZqm9iyUmaRANZQSr6WlE,2020
|
| 308 |
+
setuptools/_vendor/backports.tarfile-1.2.0.dist-info/RECORD,sha256=JYofHISeEXUGmlWl1s41ev3QTjTNXeJwk-Ss7HqdLOE,1360
|
| 309 |
+
setuptools/_vendor/backports.tarfile-1.2.0.dist-info/REQUESTED,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
| 310 |
+
setuptools/_vendor/backports.tarfile-1.2.0.dist-info/WHEEL,sha256=GJ7t_kWBFywbagK5eo9IoUwLW6oyOeTKmQ-9iHFVNxQ,92
|
| 311 |
+
setuptools/_vendor/backports.tarfile-1.2.0.dist-info/top_level.txt,sha256=cGjaLMOoBR1FK0ApojtzWVmViTtJ7JGIK_HwXiEsvtU,10
|
| 312 |
+
setuptools/_vendor/backports/__init__.py,sha256=iOEMwnlORWezdO8-2vxBIPSR37D7JGjluZ8f55vzxls,81
|
| 313 |
+
setuptools/_vendor/backports/__pycache__/__init__.cpython-310.pyc,,
|
| 314 |
+
setuptools/_vendor/backports/tarfile/__init__.py,sha256=Pwf2qUIfB0SolJPCKcx3vz3UEu_aids4g4sAfxy94qg,108491
|
| 315 |
+
setuptools/_vendor/backports/tarfile/__main__.py,sha256=Yw2oGT1afrz2eBskzdPYL8ReB_3liApmhFkN2EbDmc4,59
|
| 316 |
+
setuptools/_vendor/backports/tarfile/__pycache__/__init__.cpython-310.pyc,,
|
| 317 |
+
setuptools/_vendor/backports/tarfile/__pycache__/__main__.cpython-310.pyc,,
|
| 318 |
+
setuptools/_vendor/backports/tarfile/compat/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
| 319 |
+
setuptools/_vendor/backports/tarfile/compat/__pycache__/__init__.cpython-310.pyc,,
|
| 320 |
+
setuptools/_vendor/backports/tarfile/compat/__pycache__/py38.cpython-310.pyc,,
|
| 321 |
+
setuptools/_vendor/backports/tarfile/compat/py38.py,sha256=iYkyt_gvWjLzGUTJD9TuTfMMjOk-ersXZmRlvQYN2qE,568
|
| 322 |
+
setuptools/_vendor/importlib_metadata-8.0.0.dist-info/INSTALLER,sha256=zuuue4knoyJ-UwPPXg8fezS7VCrXJQrAP7zeNuwvFQg,4
|
| 323 |
+
setuptools/_vendor/importlib_metadata-8.0.0.dist-info/LICENSE,sha256=z8d0m5b2O9McPEK1xHG_dWgUBT6EfBDz6wA0F7xSPTA,11358
|
| 324 |
+
setuptools/_vendor/importlib_metadata-8.0.0.dist-info/METADATA,sha256=anuQ7_7h4J1bSEzfcjIBakPi2cyVQ7y7jklLHsBeH1k,4648
|
| 325 |
+
setuptools/_vendor/importlib_metadata-8.0.0.dist-info/RECORD,sha256=DY08buueu-hsrH1ghhVSQzwynanqUSSLYdAr4uXmQDA,2518
|
| 326 |
+
setuptools/_vendor/importlib_metadata-8.0.0.dist-info/REQUESTED,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
| 327 |
+
setuptools/_vendor/importlib_metadata-8.0.0.dist-info/WHEEL,sha256=mguMlWGMX-VHnMpKOjjQidIo1ssRlCFu4a4mBpz1s2M,91
|
| 328 |
+
setuptools/_vendor/importlib_metadata-8.0.0.dist-info/top_level.txt,sha256=CO3fD9yylANiXkrMo4qHLV_mqXL2sC5JFKgt1yWAT-A,19
|
| 329 |
+
setuptools/_vendor/importlib_metadata/__init__.py,sha256=tZNB-23h8Bixi9uCrQqj9Yf0aeC--Josdy3IZRIQeB0,33798
|
| 330 |
+
setuptools/_vendor/importlib_metadata/__pycache__/__init__.cpython-310.pyc,,
|
| 331 |
+
setuptools/_vendor/importlib_metadata/__pycache__/_adapters.cpython-310.pyc,,
|
| 332 |
+
setuptools/_vendor/importlib_metadata/__pycache__/_collections.cpython-310.pyc,,
|
| 333 |
+
setuptools/_vendor/importlib_metadata/__pycache__/_compat.cpython-310.pyc,,
|
| 334 |
+
setuptools/_vendor/importlib_metadata/__pycache__/_functools.cpython-310.pyc,,
|
| 335 |
+
setuptools/_vendor/importlib_metadata/__pycache__/_itertools.cpython-310.pyc,,
|
| 336 |
+
setuptools/_vendor/importlib_metadata/__pycache__/_meta.cpython-310.pyc,,
|
| 337 |
+
setuptools/_vendor/importlib_metadata/__pycache__/_text.cpython-310.pyc,,
|
| 338 |
+
setuptools/_vendor/importlib_metadata/__pycache__/diagnose.cpython-310.pyc,,
|
| 339 |
+
setuptools/_vendor/importlib_metadata/_adapters.py,sha256=rIhWTwBvYA1bV7i-5FfVX38qEXDTXFeS5cb5xJtP3ks,2317
|
| 340 |
+
setuptools/_vendor/importlib_metadata/_collections.py,sha256=CJ0OTCHIjWA0ZIVS4voORAsn2R4R2cQBEtPsZEJpASY,743
|
| 341 |
+
setuptools/_vendor/importlib_metadata/_compat.py,sha256=73QKrN9KNoaZzhbX5yPCCZa-FaALwXe8TPlDR72JgBU,1314
|
| 342 |
+
setuptools/_vendor/importlib_metadata/_functools.py,sha256=PsY2-4rrKX4RVeRC1oGp1lB1pmC9eKN88_f-bD9uOoA,2895
|
| 343 |
+
setuptools/_vendor/importlib_metadata/_itertools.py,sha256=cvr_2v8BRbxcIl5x5ldfqdHjhI8Yi8s8yk50G_nm6jQ,2068
|
| 344 |
+
setuptools/_vendor/importlib_metadata/_meta.py,sha256=nxZ7C8GVlcBFAKWyVOn_dn7ot_twBcbm1NmvjIetBHI,1801
|
| 345 |
+
setuptools/_vendor/importlib_metadata/_text.py,sha256=HCsFksZpJLeTP3NEk_ngrAeXVRRtTrtyh9eOABoRP4A,2166
|
| 346 |
+
setuptools/_vendor/importlib_metadata/compat/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
| 347 |
+
setuptools/_vendor/importlib_metadata/compat/__pycache__/__init__.cpython-310.pyc,,
|
| 348 |
+
setuptools/_vendor/importlib_metadata/compat/__pycache__/py311.cpython-310.pyc,,
|
| 349 |
+
setuptools/_vendor/importlib_metadata/compat/__pycache__/py39.cpython-310.pyc,,
|
| 350 |
+
setuptools/_vendor/importlib_metadata/compat/py311.py,sha256=uqm-K-uohyj1042TH4a9Er_I5o7667DvulcD-gC_fSA,608
|
| 351 |
+
setuptools/_vendor/importlib_metadata/compat/py39.py,sha256=cPkMv6-0ilK-0Jw_Tkn0xYbOKJZc4WJKQHow0c2T44w,1102
|
| 352 |
+
setuptools/_vendor/importlib_metadata/diagnose.py,sha256=nkSRMiowlmkhLYhKhvCg9glmt_11Cox-EmLzEbqYTa8,379
|
| 353 |
+
setuptools/_vendor/importlib_metadata/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
| 354 |
+
setuptools/_vendor/inflect-7.3.1.dist-info/INSTALLER,sha256=zuuue4knoyJ-UwPPXg8fezS7VCrXJQrAP7zeNuwvFQg,4
|
| 355 |
+
setuptools/_vendor/inflect-7.3.1.dist-info/LICENSE,sha256=htoPAa6uRjSKPD1GUZXcHOzN55956HdppkuNoEsqR0E,1023
|
| 356 |
+
setuptools/_vendor/inflect-7.3.1.dist-info/METADATA,sha256=ZgMNY0WAZRs-U8wZiV2SMfjSKqBrMngXyDMs_CAwMwg,21079
|
| 357 |
+
setuptools/_vendor/inflect-7.3.1.dist-info/RECORD,sha256=XXg0rBuiYSxoAQUP3lenuYsPNqz4jDwtTzdv2JEbMJE,943
|
| 358 |
+
setuptools/_vendor/inflect-7.3.1.dist-info/WHEEL,sha256=y4mX-SOX4fYIkonsAGA5N0Oy-8_gI4FXw5HNI1xqvWg,91
|
| 359 |
+
setuptools/_vendor/inflect-7.3.1.dist-info/top_level.txt,sha256=m52ujdp10CqT6jh1XQxZT6kEntcnv-7Tl7UiGNTzWZA,8
|
| 360 |
+
setuptools/_vendor/inflect/__init__.py,sha256=Jxy1HJXZiZ85kHeLAhkmvz6EMTdFqBe-duvt34R6IOc,103796
|
| 361 |
+
setuptools/_vendor/inflect/__pycache__/__init__.cpython-310.pyc,,
|
| 362 |
+
setuptools/_vendor/inflect/compat/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
| 363 |
+
setuptools/_vendor/inflect/compat/__pycache__/__init__.cpython-310.pyc,,
|
| 364 |
+
setuptools/_vendor/inflect/compat/__pycache__/py38.cpython-310.pyc,,
|
| 365 |
+
setuptools/_vendor/inflect/compat/py38.py,sha256=oObVfVnWX9_OpnOuEJn1mFbJxVhwyR5epbiTNXDDaso,160
|
| 366 |
+
setuptools/_vendor/inflect/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
| 367 |
+
setuptools/_vendor/jaraco.collections-5.1.0.dist-info/INSTALLER,sha256=zuuue4knoyJ-UwPPXg8fezS7VCrXJQrAP7zeNuwvFQg,4
|
| 368 |
+
setuptools/_vendor/jaraco.collections-5.1.0.dist-info/LICENSE,sha256=htoPAa6uRjSKPD1GUZXcHOzN55956HdppkuNoEsqR0E,1023
|
| 369 |
+
setuptools/_vendor/jaraco.collections-5.1.0.dist-info/METADATA,sha256=IMUaliNsA5X1Ox9MXUWOagch5R4Wwb_3M7erp29dBtg,3933
|
| 370 |
+
setuptools/_vendor/jaraco.collections-5.1.0.dist-info/RECORD,sha256=HptivXDkpfom6VlMu4CGD_7KPev-6Hc9rvp3TNJZygY,873
|
| 371 |
+
setuptools/_vendor/jaraco.collections-5.1.0.dist-info/REQUESTED,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
| 372 |
+
setuptools/_vendor/jaraco.collections-5.1.0.dist-info/WHEEL,sha256=Mdi9PDNwEZptOjTlUcAth7XJDFtKrHYaQMPulZeBCiQ,91
|
| 373 |
+
setuptools/_vendor/jaraco.collections-5.1.0.dist-info/top_level.txt,sha256=0JnN3LfXH4LIRfXL-QFOGCJzQWZO3ELx4R1d_louoQM,7
|
| 374 |
+
setuptools/_vendor/jaraco.context-5.3.0.dist-info/INSTALLER,sha256=zuuue4knoyJ-UwPPXg8fezS7VCrXJQrAP7zeNuwvFQg,4
|
| 375 |
+
setuptools/_vendor/jaraco.context-5.3.0.dist-info/LICENSE,sha256=htoPAa6uRjSKPD1GUZXcHOzN55956HdppkuNoEsqR0E,1023
|
| 376 |
+
setuptools/_vendor/jaraco.context-5.3.0.dist-info/METADATA,sha256=xDtguJej0tN9iEXCUvxEJh2a7xceIRVBEakBLSr__tY,4020
|
| 377 |
+
setuptools/_vendor/jaraco.context-5.3.0.dist-info/RECORD,sha256=VRl7iKeEQyl7stgnp1uq50CzOJYlHYcoNdS0x17C9X4,641
|
| 378 |
+
setuptools/_vendor/jaraco.context-5.3.0.dist-info/WHEEL,sha256=GJ7t_kWBFywbagK5eo9IoUwLW6oyOeTKmQ-9iHFVNxQ,92
|
| 379 |
+
setuptools/_vendor/jaraco.context-5.3.0.dist-info/top_level.txt,sha256=0JnN3LfXH4LIRfXL-QFOGCJzQWZO3ELx4R1d_louoQM,7
|
| 380 |
+
setuptools/_vendor/jaraco.functools-4.0.1.dist-info/INSTALLER,sha256=zuuue4knoyJ-UwPPXg8fezS7VCrXJQrAP7zeNuwvFQg,4
|
| 381 |
+
setuptools/_vendor/jaraco.functools-4.0.1.dist-info/LICENSE,sha256=htoPAa6uRjSKPD1GUZXcHOzN55956HdppkuNoEsqR0E,1023
|
| 382 |
+
setuptools/_vendor/jaraco.functools-4.0.1.dist-info/METADATA,sha256=i4aUaQDX-jjdEQK5wevhegyx8JyLfin2HyvaSk3FHso,2891
|
| 383 |
+
setuptools/_vendor/jaraco.functools-4.0.1.dist-info/RECORD,sha256=YyqnwE98S8wBwCevW5vHb-iVj0oYEDW5V6O9MBS6JIs,843
|
| 384 |
+
setuptools/_vendor/jaraco.functools-4.0.1.dist-info/WHEEL,sha256=GJ7t_kWBFywbagK5eo9IoUwLW6oyOeTKmQ-9iHFVNxQ,92
|
| 385 |
+
setuptools/_vendor/jaraco.functools-4.0.1.dist-info/top_level.txt,sha256=0JnN3LfXH4LIRfXL-QFOGCJzQWZO3ELx4R1d_louoQM,7
|
| 386 |
+
setuptools/_vendor/jaraco.text-3.12.1.dist-info/INSTALLER,sha256=zuuue4knoyJ-UwPPXg8fezS7VCrXJQrAP7zeNuwvFQg,4
|
| 387 |
+
setuptools/_vendor/jaraco.text-3.12.1.dist-info/LICENSE,sha256=htoPAa6uRjSKPD1GUZXcHOzN55956HdppkuNoEsqR0E,1023
|
| 388 |
+
setuptools/_vendor/jaraco.text-3.12.1.dist-info/METADATA,sha256=AzWdm6ViMfDOPoQMfLWn2zgBQSGJScyqeN29TcuWXVI,3658
|
| 389 |
+
setuptools/_vendor/jaraco.text-3.12.1.dist-info/RECORD,sha256=gW2UV0HcokYJk4jKPu10_AZnrLqjb3C1WbJJTDl5sfY,1500
|
| 390 |
+
setuptools/_vendor/jaraco.text-3.12.1.dist-info/REQUESTED,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
| 391 |
+
setuptools/_vendor/jaraco.text-3.12.1.dist-info/WHEEL,sha256=GJ7t_kWBFywbagK5eo9IoUwLW6oyOeTKmQ-9iHFVNxQ,92
|
| 392 |
+
setuptools/_vendor/jaraco.text-3.12.1.dist-info/top_level.txt,sha256=0JnN3LfXH4LIRfXL-QFOGCJzQWZO3ELx4R1d_louoQM,7
|
| 393 |
+
setuptools/_vendor/jaraco/__pycache__/context.cpython-310.pyc,,
|
| 394 |
+
setuptools/_vendor/jaraco/collections/__init__.py,sha256=Pc1-SqjWm81ad1P0-GttpkwO_LWlnaY6gUq8gcKh2v0,26640
|
| 395 |
+
setuptools/_vendor/jaraco/collections/__pycache__/__init__.cpython-310.pyc,,
|
| 396 |
+
setuptools/_vendor/jaraco/collections/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
| 397 |
+
setuptools/_vendor/jaraco/context.py,sha256=REoLIxDkO5MfEYowt_WoupNCRoxBS5v7YX2PbW8lIcs,9552
|
| 398 |
+
setuptools/_vendor/jaraco/functools/__init__.py,sha256=hEAJaS2uSZRuF_JY4CxCHIYh79ZpxaPp9OiHyr9EJ1w,16642
|
| 399 |
+
setuptools/_vendor/jaraco/functools/__init__.pyi,sha256=gk3dsgHzo5F_U74HzAvpNivFAPCkPJ1b2-yCd62dfnw,3878
|
| 400 |
+
setuptools/_vendor/jaraco/functools/__pycache__/__init__.cpython-310.pyc,,
|
| 401 |
+
setuptools/_vendor/jaraco/functools/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
| 402 |
+
setuptools/_vendor/jaraco/text/Lorem ipsum.txt,sha256=N_7c_79zxOufBY9HZ3yzMgOkNv-TkOTTio4BydrSjgs,1335
|
| 403 |
+
setuptools/_vendor/jaraco/text/__init__.py,sha256=Y2YUqXR_orUoDaY4SkPRe6ZZhb5HUHB_Ah9RCNsVyho,16250
|
| 404 |
+
setuptools/_vendor/jaraco/text/__pycache__/__init__.cpython-310.pyc,,
|
| 405 |
+
setuptools/_vendor/jaraco/text/__pycache__/layouts.cpython-310.pyc,,
|
| 406 |
+
setuptools/_vendor/jaraco/text/__pycache__/show-newlines.cpython-310.pyc,,
|
| 407 |
+
setuptools/_vendor/jaraco/text/__pycache__/strip-prefix.cpython-310.pyc,,
|
| 408 |
+
setuptools/_vendor/jaraco/text/__pycache__/to-dvorak.cpython-310.pyc,,
|
| 409 |
+
setuptools/_vendor/jaraco/text/__pycache__/to-qwerty.cpython-310.pyc,,
|
| 410 |
+
setuptools/_vendor/jaraco/text/layouts.py,sha256=HTC8aSTLZ7uXipyOXapRMC158juecjK6RVwitfmZ9_w,643
|
| 411 |
+
setuptools/_vendor/jaraco/text/show-newlines.py,sha256=WGQa65e8lyhb92LUOLqVn6KaCtoeVgVws6WtSRmLk6w,904
|
| 412 |
+
setuptools/_vendor/jaraco/text/strip-prefix.py,sha256=NfVXV8JVNo6nqcuYASfMV7_y4Eo8zMQqlCOGvAnRIVw,412
|
| 413 |
+
setuptools/_vendor/jaraco/text/to-dvorak.py,sha256=1SNcbSsvISpXXg-LnybIHHY-RUFOQr36zcHkY1pWFqw,119
|
| 414 |
+
setuptools/_vendor/jaraco/text/to-qwerty.py,sha256=s4UMQUnPwFn_dB5uZC27BurHOQcYondBfzIpVL5pEzw,119
|
| 415 |
+
setuptools/_vendor/more_itertools-10.3.0.dist-info/INSTALLER,sha256=zuuue4knoyJ-UwPPXg8fezS7VCrXJQrAP7zeNuwvFQg,4
|
| 416 |
+
setuptools/_vendor/more_itertools-10.3.0.dist-info/LICENSE,sha256=CfHIyelBrz5YTVlkHqm4fYPAyw_QB-te85Gn4mQ8GkY,1053
|
| 417 |
+
setuptools/_vendor/more_itertools-10.3.0.dist-info/METADATA,sha256=BFO90O-fLNiVQMpj7oIS5ztzgJUUQZ3TA32P5HH3N-A,36293
|
| 418 |
+
setuptools/_vendor/more_itertools-10.3.0.dist-info/RECORD,sha256=d8jnPgGNwP1-ntbICwWkQEVF9kH7CFIgzkKzaLWao9M,1259
|
| 419 |
+
setuptools/_vendor/more_itertools-10.3.0.dist-info/REQUESTED,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
| 420 |
+
setuptools/_vendor/more_itertools-10.3.0.dist-info/WHEEL,sha256=rSgq_JpHF9fHR1lx53qwg_1-2LypZE_qmcuXbVUq948,81
|
| 421 |
+
setuptools/_vendor/more_itertools/__init__.py,sha256=dtAbGjTDmn_ghiU5YXfhyDy0phAlXVdt5klZA5fUa-Q,149
|
| 422 |
+
setuptools/_vendor/more_itertools/__init__.pyi,sha256=5B3eTzON1BBuOLob1vCflyEb2lSd6usXQQ-Cv-hXkeA,43
|
| 423 |
+
setuptools/_vendor/more_itertools/__pycache__/__init__.cpython-310.pyc,,
|
| 424 |
+
setuptools/_vendor/more_itertools/__pycache__/more.cpython-310.pyc,,
|
| 425 |
+
setuptools/_vendor/more_itertools/__pycache__/recipes.cpython-310.pyc,,
|
| 426 |
+
setuptools/_vendor/more_itertools/more.py,sha256=1E5kzFncRKTDw0cYv1yRXMgDdunstLQd1QStcnL6U90,148370
|
| 427 |
+
setuptools/_vendor/more_itertools/more.pyi,sha256=iXXeqt48Nxe8VGmIWpkVXuKpR2FYNuu2DU8nQLWCCu0,21484
|
| 428 |
+
setuptools/_vendor/more_itertools/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
| 429 |
+
setuptools/_vendor/more_itertools/recipes.py,sha256=WedhhfhGVgr6zii8fIbGJVmRTw0ZKRiLKnYBDGJv4nY,28591
|
| 430 |
+
setuptools/_vendor/more_itertools/recipes.pyi,sha256=T_mdGpcFdfrP3JSWbwzYP9JyNV-Go-7RPfpxfftAWlA,4617
|
| 431 |
+
setuptools/_vendor/packaging-24.2.dist-info/INSTALLER,sha256=5hhM4Q4mYTT9z6QB6PGpUAW81PGNFrYrdXMj4oM_6ak,2
|
| 432 |
+
setuptools/_vendor/packaging-24.2.dist-info/LICENSE,sha256=ytHvW9NA1z4HS6YU0m996spceUDD2MNIUuZcSQlobEg,197
|
| 433 |
+
setuptools/_vendor/packaging-24.2.dist-info/LICENSE.APACHE,sha256=DVQuDIgE45qn836wDaWnYhSdxoLXgpRRKH4RuTjpRZQ,10174
|
| 434 |
+
setuptools/_vendor/packaging-24.2.dist-info/LICENSE.BSD,sha256=tw5-m3QvHMb5SLNMFqo5_-zpQZY2S8iP8NIYDwAo-sU,1344
|
| 435 |
+
setuptools/_vendor/packaging-24.2.dist-info/METADATA,sha256=ohH86s6k5mIfQxY2TS0LcSfADeOFa4BiCC-bxZV-pNs,3204
|
| 436 |
+
setuptools/_vendor/packaging-24.2.dist-info/RECORD,sha256=Y4DrXM0KY0ArfzhbAEa1LYFPwW3WEgEeL4iCqXe-A-M,2009
|
| 437 |
+
setuptools/_vendor/packaging-24.2.dist-info/REQUESTED,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
| 438 |
+
setuptools/_vendor/packaging-24.2.dist-info/WHEEL,sha256=CpUCUxeHQbRN5UGRQHYRJorO5Af-Qy_fHMctcQ8DSGI,82
|
| 439 |
+
setuptools/_vendor/packaging/__init__.py,sha256=dk4Ta_vmdVJxYHDcfyhvQNw8V3PgSBomKNXqg-D2JDY,494
|
| 440 |
+
setuptools/_vendor/packaging/__pycache__/__init__.cpython-310.pyc,,
|
| 441 |
+
setuptools/_vendor/packaging/__pycache__/_elffile.cpython-310.pyc,,
|
| 442 |
+
setuptools/_vendor/packaging/__pycache__/_manylinux.cpython-310.pyc,,
|
| 443 |
+
setuptools/_vendor/packaging/__pycache__/_musllinux.cpython-310.pyc,,
|
| 444 |
+
setuptools/_vendor/packaging/__pycache__/_parser.cpython-310.pyc,,
|
| 445 |
+
setuptools/_vendor/packaging/__pycache__/_structures.cpython-310.pyc,,
|
| 446 |
+
setuptools/_vendor/packaging/__pycache__/_tokenizer.cpython-310.pyc,,
|
| 447 |
+
setuptools/_vendor/packaging/__pycache__/markers.cpython-310.pyc,,
|
| 448 |
+
setuptools/_vendor/packaging/__pycache__/metadata.cpython-310.pyc,,
|
| 449 |
+
setuptools/_vendor/packaging/__pycache__/requirements.cpython-310.pyc,,
|
| 450 |
+
setuptools/_vendor/packaging/__pycache__/specifiers.cpython-310.pyc,,
|
| 451 |
+
setuptools/_vendor/packaging/__pycache__/tags.cpython-310.pyc,,
|
| 452 |
+
setuptools/_vendor/packaging/__pycache__/utils.cpython-310.pyc,,
|
| 453 |
+
setuptools/_vendor/packaging/__pycache__/version.cpython-310.pyc,,
|
| 454 |
+
setuptools/_vendor/packaging/_elffile.py,sha256=cflAQAkE25tzhYmq_aCi72QfbT_tn891tPzfpbeHOwE,3306
|
| 455 |
+
setuptools/_vendor/packaging/_manylinux.py,sha256=vl5OCoz4kx80H5rwXKeXWjl9WNISGmr4ZgTpTP9lU9c,9612
|
| 456 |
+
setuptools/_vendor/packaging/_musllinux.py,sha256=p9ZqNYiOItGee8KcZFeHF_YcdhVwGHdK6r-8lgixvGQ,2694
|
| 457 |
+
setuptools/_vendor/packaging/_parser.py,sha256=s_TvTvDNK0NrM2QB3VKThdWFM4Nc0P6JnkObkl3MjpM,10236
|
| 458 |
+
setuptools/_vendor/packaging/_structures.py,sha256=q3eVNmbWJGG_S0Dit_S3Ao8qQqz_5PYTXFAKBZe5yr4,1431
|
| 459 |
+
setuptools/_vendor/packaging/_tokenizer.py,sha256=J6v5H7Jzvb-g81xp_2QACKwO7LxHQA6ikryMU7zXwN8,5273
|
| 460 |
+
setuptools/_vendor/packaging/licenses/__init__.py,sha256=1x5M1nEYjcgwEbLt0dXwz2ukjr18DiCzC0sraQqJ-Ww,5715
|
| 461 |
+
setuptools/_vendor/packaging/licenses/__pycache__/__init__.cpython-310.pyc,,
|
| 462 |
+
setuptools/_vendor/packaging/licenses/__pycache__/_spdx.cpython-310.pyc,,
|
| 463 |
+
setuptools/_vendor/packaging/licenses/_spdx.py,sha256=oAm1ztPFwlsmCKe7lAAsv_OIOfS1cWDu9bNBkeu-2ns,48398
|
| 464 |
+
setuptools/_vendor/packaging/markers.py,sha256=c89TNzB7ZdGYhkovm6PYmqGyHxXlYVaLW591PHUNKD8,10561
|
| 465 |
+
setuptools/_vendor/packaging/metadata.py,sha256=YJibM7GYe4re8-0a3OlXmGS-XDgTEoO4tlBt2q25Bng,34762
|
| 466 |
+
setuptools/_vendor/packaging/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
| 467 |
+
setuptools/_vendor/packaging/requirements.py,sha256=gYyRSAdbrIyKDY66ugIDUQjRMvxkH2ALioTmX3tnL6o,2947
|
| 468 |
+
setuptools/_vendor/packaging/specifiers.py,sha256=GG1wPNMcL0fMJO68vF53wKMdwnfehDcaI-r9NpTfilA,40074
|
| 469 |
+
setuptools/_vendor/packaging/tags.py,sha256=CFqrJzAzc2XNGexerH__T-Y5Iwq7WbsYXsiLERLWxY0,21014
|
| 470 |
+
setuptools/_vendor/packaging/utils.py,sha256=0F3Hh9OFuRgrhTgGZUl5K22Fv1YP2tZl1z_2gO6kJiA,5050
|
| 471 |
+
setuptools/_vendor/packaging/version.py,sha256=olfyuk_DPbflNkJ4wBWetXQ17c74x3DB501degUv7DY,16676
|
| 472 |
+
setuptools/_vendor/platformdirs-4.2.2.dist-info/INSTALLER,sha256=zuuue4knoyJ-UwPPXg8fezS7VCrXJQrAP7zeNuwvFQg,4
|
| 473 |
+
setuptools/_vendor/platformdirs-4.2.2.dist-info/METADATA,sha256=zmsie01G1MtXR0wgIv5XpVeTO7idr0WWvfmxKsKWuGk,11429
|
| 474 |
+
setuptools/_vendor/platformdirs-4.2.2.dist-info/RECORD,sha256=TCEddtQu1A78Os_Mhm2JEqcYr7yit-UYSUQjZtbpn-g,1642
|
| 475 |
+
setuptools/_vendor/platformdirs-4.2.2.dist-info/REQUESTED,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
| 476 |
+
setuptools/_vendor/platformdirs-4.2.2.dist-info/WHEEL,sha256=zEMcRr9Kr03x1ozGwg5v9NQBKn3kndp6LSoSlVg-jhU,87
|
| 477 |
+
setuptools/_vendor/platformdirs-4.2.2.dist-info/licenses/LICENSE,sha256=KeD9YukphQ6G6yjD_czwzv30-pSHkBHP-z0NS-1tTbY,1089
|
| 478 |
+
setuptools/_vendor/platformdirs/__init__.py,sha256=EMGE8qeHRR9CzDFr8kL3tA8hdZZniYjXBVZd0UGTWK0,22225
|
| 479 |
+
setuptools/_vendor/platformdirs/__main__.py,sha256=HnsUQHpiBaiTxwcmwVw-nFaPdVNZtQIdi1eWDtI-MzI,1493
|
| 480 |
+
setuptools/_vendor/platformdirs/__pycache__/__init__.cpython-310.pyc,,
|
| 481 |
+
setuptools/_vendor/platformdirs/__pycache__/__main__.cpython-310.pyc,,
|
| 482 |
+
setuptools/_vendor/platformdirs/__pycache__/android.cpython-310.pyc,,
|
| 483 |
+
setuptools/_vendor/platformdirs/__pycache__/api.cpython-310.pyc,,
|
| 484 |
+
setuptools/_vendor/platformdirs/__pycache__/macos.cpython-310.pyc,,
|
| 485 |
+
setuptools/_vendor/platformdirs/__pycache__/unix.cpython-310.pyc,,
|
| 486 |
+
setuptools/_vendor/platformdirs/__pycache__/version.cpython-310.pyc,,
|
| 487 |
+
setuptools/_vendor/platformdirs/__pycache__/windows.cpython-310.pyc,,
|
| 488 |
+
setuptools/_vendor/platformdirs/android.py,sha256=xZXY9Jd46WOsxT2U6-5HsNtDZ-IQqxcEUrBLl3hYk4o,9016
|
| 489 |
+
setuptools/_vendor/platformdirs/api.py,sha256=QBYdUac2eC521ek_y53uD1Dcq-lJX8IgSRVd4InC6uc,8996
|
| 490 |
+
setuptools/_vendor/platformdirs/macos.py,sha256=wftsbsvq6nZ0WORXSiCrZNkRHz_WKuktl0a6mC7MFkI,5580
|
| 491 |
+
setuptools/_vendor/platformdirs/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
| 492 |
+
setuptools/_vendor/platformdirs/unix.py,sha256=Cci9Wqt35dAMsg6HT9nRGHSBW5obb0pR3AE1JJnsCXg,10643
|
| 493 |
+
setuptools/_vendor/platformdirs/version.py,sha256=r7F76tZRjgQKzrpx_I0_ZMQOMU-PS7eGnHD7zEK3KB0,411
|
| 494 |
+
setuptools/_vendor/platformdirs/windows.py,sha256=IFpiohUBwxPtCzlyKwNtxyW4Jk8haa6W8o59mfrDXVo,10125
|
| 495 |
+
setuptools/_vendor/tomli-2.0.1.dist-info/INSTALLER,sha256=zuuue4knoyJ-UwPPXg8fezS7VCrXJQrAP7zeNuwvFQg,4
|
| 496 |
+
setuptools/_vendor/tomli-2.0.1.dist-info/LICENSE,sha256=uAgWsNUwuKzLTCIReDeQmEpuO2GSLCte6S8zcqsnQv4,1072
|
| 497 |
+
setuptools/_vendor/tomli-2.0.1.dist-info/METADATA,sha256=zPDceKmPwJGLWtZykrHixL7WVXWmJGzZ1jyRT5lCoPI,8875
|
| 498 |
+
setuptools/_vendor/tomli-2.0.1.dist-info/RECORD,sha256=DLn5pFGh42WsVLTIhmLh2gy1SnLRalJY-wq_-dPhwCI,999
|
| 499 |
+
setuptools/_vendor/tomli-2.0.1.dist-info/REQUESTED,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
| 500 |
+
setuptools/_vendor/tomli-2.0.1.dist-info/WHEEL,sha256=jPMR_Dzkc4X4icQtmz81lnNY_kAsfog7ry7qoRvYLXw,81
|
| 501 |
+
setuptools/_vendor/tomli/__init__.py,sha256=JhUwV66DB1g4Hvt1UQCVMdfCu-IgAV8FXmvDU9onxd4,396
|
| 502 |
+
setuptools/_vendor/tomli/__pycache__/__init__.cpython-310.pyc,,
|
| 503 |
+
setuptools/_vendor/tomli/__pycache__/_parser.cpython-310.pyc,,
|
| 504 |
+
setuptools/_vendor/tomli/__pycache__/_re.cpython-310.pyc,,
|
| 505 |
+
setuptools/_vendor/tomli/__pycache__/_types.cpython-310.pyc,,
|
| 506 |
+
setuptools/_vendor/tomli/_parser.py,sha256=g9-ENaALS-B8dokYpCuzUFalWlog7T-SIYMjLZSWrtM,22633
|
| 507 |
+
setuptools/_vendor/tomli/_re.py,sha256=dbjg5ChZT23Ka9z9DHOXfdtSpPwUfdgMXnj8NOoly-w,2943
|
| 508 |
+
setuptools/_vendor/tomli/_types.py,sha256=-GTG2VUqkpxwMqzmVO4F7ybKddIbAnuAHXfmWQcTi3Q,254
|
| 509 |
+
setuptools/_vendor/tomli/py.typed,sha256=8PjyZ1aVoQpRVvt71muvuq5qE-jTFZkK-GLHkhdebmc,26
|
| 510 |
+
setuptools/_vendor/typeguard-4.3.0.dist-info/INSTALLER,sha256=zuuue4knoyJ-UwPPXg8fezS7VCrXJQrAP7zeNuwvFQg,4
|
| 511 |
+
setuptools/_vendor/typeguard-4.3.0.dist-info/LICENSE,sha256=YWP3mH37ONa8MgzitwsvArhivEESZRbVUu8c1DJH51g,1130
|
| 512 |
+
setuptools/_vendor/typeguard-4.3.0.dist-info/METADATA,sha256=z2dcHAp0TwhYCFU5Deh8x31nazElgujUz9tbuP0pjSE,3717
|
| 513 |
+
setuptools/_vendor/typeguard-4.3.0.dist-info/RECORD,sha256=SKUZWVgkeDUidUKM7s1473fXmsna55bjmi6vJUAoJVI,2402
|
| 514 |
+
setuptools/_vendor/typeguard-4.3.0.dist-info/WHEEL,sha256=GJ7t_kWBFywbagK5eo9IoUwLW6oyOeTKmQ-9iHFVNxQ,92
|
| 515 |
+
setuptools/_vendor/typeguard-4.3.0.dist-info/entry_points.txt,sha256=qp7NQ1aLtiSgMQqo6gWlfGpy0IIXzoMJmeQTLpzqFZQ,48
|
| 516 |
+
setuptools/_vendor/typeguard-4.3.0.dist-info/top_level.txt,sha256=4z28AhuDodwRS_c1J_l8H51t5QuwfTseskYzlxp6grs,10
|
| 517 |
+
setuptools/_vendor/typeguard/__init__.py,sha256=Onh4w38elPCjtlcU3JY9k3h70NjsxXIkAflmQn-Z0FY,2071
|
| 518 |
+
setuptools/_vendor/typeguard/__pycache__/__init__.cpython-310.pyc,,
|
| 519 |
+
setuptools/_vendor/typeguard/__pycache__/_checkers.cpython-310.pyc,,
|
| 520 |
+
setuptools/_vendor/typeguard/__pycache__/_config.cpython-310.pyc,,
|
| 521 |
+
setuptools/_vendor/typeguard/__pycache__/_decorators.cpython-310.pyc,,
|
| 522 |
+
setuptools/_vendor/typeguard/__pycache__/_exceptions.cpython-310.pyc,,
|
| 523 |
+
setuptools/_vendor/typeguard/__pycache__/_functions.cpython-310.pyc,,
|
| 524 |
+
setuptools/_vendor/typeguard/__pycache__/_importhook.cpython-310.pyc,,
|
| 525 |
+
setuptools/_vendor/typeguard/__pycache__/_memo.cpython-310.pyc,,
|
| 526 |
+
setuptools/_vendor/typeguard/__pycache__/_pytest_plugin.cpython-310.pyc,,
|
| 527 |
+
setuptools/_vendor/typeguard/__pycache__/_suppression.cpython-310.pyc,,
|
| 528 |
+
setuptools/_vendor/typeguard/__pycache__/_transformer.cpython-310.pyc,,
|
| 529 |
+
setuptools/_vendor/typeguard/__pycache__/_union_transformer.cpython-310.pyc,,
|
| 530 |
+
setuptools/_vendor/typeguard/__pycache__/_utils.cpython-310.pyc,,
|
| 531 |
+
setuptools/_vendor/typeguard/_checkers.py,sha256=JRrgKicdOEfIBoNEtegYCEIlhpad-a1u1Em7GCj0WCI,31360
|
| 532 |
+
setuptools/_vendor/typeguard/_config.py,sha256=nIz8QwDa-oFO3L9O8_6srzlmd99pSby2wOM4Wb7F_B0,2846
|
| 533 |
+
setuptools/_vendor/typeguard/_decorators.py,sha256=v6dsIeWvPhExGLP_wXF-RmDUyjZf_Ak28g7gBJ_v0-0,9033
|
| 534 |
+
setuptools/_vendor/typeguard/_exceptions.py,sha256=ZIPeiV-FBd5Emw2EaWd2Fvlsrwi4ocwT2fVGBIAtHcQ,1121
|
| 535 |
+
setuptools/_vendor/typeguard/_functions.py,sha256=ibgSAKa5ptIm1eR9ARG0BSozAFJPFNASZqhPVyQeqig,10393
|
| 536 |
+
setuptools/_vendor/typeguard/_importhook.py,sha256=ugjCDvFcdWMU7UugqlJG91IpVNpEIxtRr-99s0h1k7M,6389
|
| 537 |
+
setuptools/_vendor/typeguard/_memo.py,sha256=1juQV_vxnD2JYKbSrebiQuj4oKHz6n67v9pYA-CCISg,1303
|
| 538 |
+
setuptools/_vendor/typeguard/_pytest_plugin.py,sha256=-fcSqkv54rIfIF8pDavY5YQPkj4OX8GMt_lL7CQSD4I,4416
|
| 539 |
+
setuptools/_vendor/typeguard/_suppression.py,sha256=VQfzxcwIbu3if0f7VBkKM7hkYOA7tNFw9a7jMBsmMg4,2266
|
| 540 |
+
setuptools/_vendor/typeguard/_transformer.py,sha256=9Ha7_QhdwoUni_6hvdY-hZbuEergowHrNL2vzHIakFY,44937
|
| 541 |
+
setuptools/_vendor/typeguard/_union_transformer.py,sha256=v_42r7-6HuRX2SoFwnyJ-E5PlxXpVeUJPJR1-HU9qSo,1354
|
| 542 |
+
setuptools/_vendor/typeguard/_utils.py,sha256=5HhO1rPn5f1M6ymkVAEv7Xmlz1cX-j0OnTMlyHqqrR8,5270
|
| 543 |
+
setuptools/_vendor/typeguard/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
| 544 |
+
setuptools/_vendor/typing_extensions-4.12.2.dist-info/INSTALLER,sha256=zuuue4knoyJ-UwPPXg8fezS7VCrXJQrAP7zeNuwvFQg,4
|
| 545 |
+
setuptools/_vendor/typing_extensions-4.12.2.dist-info/LICENSE,sha256=Oy-B_iHRgcSZxZolbI4ZaEVdZonSaaqFNzv7avQdo78,13936
|
| 546 |
+
setuptools/_vendor/typing_extensions-4.12.2.dist-info/METADATA,sha256=BeUQIa8cnYbrjWx-N8TOznM9UGW5Gm2DicVpDtRA8W0,3018
|
| 547 |
+
setuptools/_vendor/typing_extensions-4.12.2.dist-info/RECORD,sha256=dxAALYGXHmMqpqL8M9xddKr118quIgQKZdPjFQOwXuk,571
|
| 548 |
+
setuptools/_vendor/typing_extensions-4.12.2.dist-info/WHEEL,sha256=EZbGkh7Ie4PoZfRQ8I0ZuP9VklN_TvcZ6DSE5Uar4z4,81
|
| 549 |
+
setuptools/_vendor/typing_extensions.py,sha256=gwekpyG9DVG3lxWKX4ni8u7nk3We5slG98mA9F3DJQw,134451
|
| 550 |
+
setuptools/_vendor/wheel-0.45.1.dist-info/INSTALLER,sha256=zuuue4knoyJ-UwPPXg8fezS7VCrXJQrAP7zeNuwvFQg,4
|
| 551 |
+
setuptools/_vendor/wheel-0.45.1.dist-info/LICENSE.txt,sha256=MMI2GGeRCPPo6h0qZYx8pBe9_IkcmO8aifpP8MmChlQ,1107
|
| 552 |
+
setuptools/_vendor/wheel-0.45.1.dist-info/METADATA,sha256=mKz84H7m7jsxJyzeIcTVORiTb0NPMV39KvOIYhGgmjA,2313
|
| 553 |
+
setuptools/_vendor/wheel-0.45.1.dist-info/RECORD,sha256=1jnxrHyZPDcVvULyfGFhiba4Z5L9_RsXr9dxcNbhaYQ,4900
|
| 554 |
+
setuptools/_vendor/wheel-0.45.1.dist-info/REQUESTED,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
| 555 |
+
setuptools/_vendor/wheel-0.45.1.dist-info/WHEEL,sha256=CpUCUxeHQbRN5UGRQHYRJorO5Af-Qy_fHMctcQ8DSGI,82
|
| 556 |
+
setuptools/_vendor/wheel-0.45.1.dist-info/entry_points.txt,sha256=rTY1BbkPHhkGMm4Q3F0pIzJBzW2kMxoG1oriffvGdA0,104
|
| 557 |
+
setuptools/_vendor/wheel/__init__.py,sha256=mrxMnvdXACur_LWegbUfh5g5ysWZrd63UJn890wvGNk,59
|
| 558 |
+
setuptools/_vendor/wheel/__main__.py,sha256=NkMUnuTCGcOkgY0IBLgBCVC_BGGcWORx2K8jYGS12UE,455
|
| 559 |
+
setuptools/_vendor/wheel/__pycache__/__init__.cpython-310.pyc,,
|
| 560 |
+
setuptools/_vendor/wheel/__pycache__/__main__.cpython-310.pyc,,
|
| 561 |
+
setuptools/_vendor/wheel/__pycache__/_bdist_wheel.cpython-310.pyc,,
|
| 562 |
+
setuptools/_vendor/wheel/__pycache__/_setuptools_logging.cpython-310.pyc,,
|
| 563 |
+
setuptools/_vendor/wheel/__pycache__/bdist_wheel.cpython-310.pyc,,
|
| 564 |
+
setuptools/_vendor/wheel/__pycache__/macosx_libfile.cpython-310.pyc,,
|
| 565 |
+
setuptools/_vendor/wheel/__pycache__/metadata.cpython-310.pyc,,
|
| 566 |
+
setuptools/_vendor/wheel/__pycache__/util.cpython-310.pyc,,
|
| 567 |
+
setuptools/_vendor/wheel/__pycache__/wheelfile.cpython-310.pyc,,
|
| 568 |
+
setuptools/_vendor/wheel/_bdist_wheel.py,sha256=UghCQjSH_pVfcZh6oRjzSw_TQhcf3anSx1OkiLSL82M,21694
|
| 569 |
+
setuptools/_vendor/wheel/_setuptools_logging.py,sha256=-5KC-lne0ilOUWIDfOkqapUWGMFZhuKYDIavIZiB5kM,781
|
| 570 |
+
setuptools/_vendor/wheel/bdist_wheel.py,sha256=tpf9WufiSO1RuEMg5oPhIfSG8DMziCZ_4muCKF69Cqo,1107
|
| 571 |
+
setuptools/_vendor/wheel/cli/__init__.py,sha256=Npq6_jKi03dhIcRnmbuFhwviVJxwO0tYEnEhWMv9cJo,4402
|
| 572 |
+
setuptools/_vendor/wheel/cli/__pycache__/__init__.cpython-310.pyc,,
|
| 573 |
+
setuptools/_vendor/wheel/cli/__pycache__/convert.cpython-310.pyc,,
|
| 574 |
+
setuptools/_vendor/wheel/cli/__pycache__/pack.cpython-310.pyc,,
|
| 575 |
+
setuptools/_vendor/wheel/cli/__pycache__/tags.cpython-310.pyc,,
|
| 576 |
+
setuptools/_vendor/wheel/cli/__pycache__/unpack.cpython-310.pyc,,
|
| 577 |
+
setuptools/_vendor/wheel/cli/convert.py,sha256=Bi0ntEXb9nTllCxWeTRQ4j-nPs3szWSEKipG_GgnMkQ,12634
|
| 578 |
+
setuptools/_vendor/wheel/cli/pack.py,sha256=CAFcHdBVulvsHYJlndKVO7KMI9JqBTZz5ii0PKxxCOs,3103
|
| 579 |
+
setuptools/_vendor/wheel/cli/tags.py,sha256=lHw-LaWrkS5Jy_qWcw-6pSjeNM6yAjDnqKI3E5JTTCU,4760
|
| 580 |
+
setuptools/_vendor/wheel/cli/unpack.py,sha256=Y_J7ynxPSoFFTT7H0fMgbBlVErwyDGcObgme5MBuz58,1021
|
| 581 |
+
setuptools/_vendor/wheel/macosx_libfile.py,sha256=k1x7CE3LPtOVGqj6NXQ1nTGYVPaeRrhVzUG_KPq3zDs,16572
|
| 582 |
+
setuptools/_vendor/wheel/metadata.py,sha256=JC4p7jlQZu2bUTAQ2fevkqLjg_X6gnNyRhLn6OUO1tc,6171
|
| 583 |
+
setuptools/_vendor/wheel/util.py,sha256=aL7aibHwYUgfc8WlolL5tXdkV4DatbJxZHb1kwHFJAU,423
|
| 584 |
+
setuptools/_vendor/wheel/vendored/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
| 585 |
+
setuptools/_vendor/wheel/vendored/__pycache__/__init__.cpython-310.pyc,,
|
| 586 |
+
setuptools/_vendor/wheel/vendored/packaging/LICENSE,sha256=ytHvW9NA1z4HS6YU0m996spceUDD2MNIUuZcSQlobEg,197
|
| 587 |
+
setuptools/_vendor/wheel/vendored/packaging/LICENSE.APACHE,sha256=DVQuDIgE45qn836wDaWnYhSdxoLXgpRRKH4RuTjpRZQ,10174
|
| 588 |
+
setuptools/_vendor/wheel/vendored/packaging/LICENSE.BSD,sha256=tw5-m3QvHMb5SLNMFqo5_-zpQZY2S8iP8NIYDwAo-sU,1344
|
| 589 |
+
setuptools/_vendor/wheel/vendored/packaging/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
| 590 |
+
setuptools/_vendor/wheel/vendored/packaging/__pycache__/__init__.cpython-310.pyc,,
|
| 591 |
+
setuptools/_vendor/wheel/vendored/packaging/__pycache__/_elffile.cpython-310.pyc,,
|
| 592 |
+
setuptools/_vendor/wheel/vendored/packaging/__pycache__/_manylinux.cpython-310.pyc,,
|
| 593 |
+
setuptools/_vendor/wheel/vendored/packaging/__pycache__/_musllinux.cpython-310.pyc,,
|
| 594 |
+
setuptools/_vendor/wheel/vendored/packaging/__pycache__/_parser.cpython-310.pyc,,
|
| 595 |
+
setuptools/_vendor/wheel/vendored/packaging/__pycache__/_structures.cpython-310.pyc,,
|
| 596 |
+
setuptools/_vendor/wheel/vendored/packaging/__pycache__/_tokenizer.cpython-310.pyc,,
|
| 597 |
+
setuptools/_vendor/wheel/vendored/packaging/__pycache__/markers.cpython-310.pyc,,
|
| 598 |
+
setuptools/_vendor/wheel/vendored/packaging/__pycache__/requirements.cpython-310.pyc,,
|
| 599 |
+
setuptools/_vendor/wheel/vendored/packaging/__pycache__/specifiers.cpython-310.pyc,,
|
| 600 |
+
setuptools/_vendor/wheel/vendored/packaging/__pycache__/tags.cpython-310.pyc,,
|
| 601 |
+
setuptools/_vendor/wheel/vendored/packaging/__pycache__/utils.cpython-310.pyc,,
|
| 602 |
+
setuptools/_vendor/wheel/vendored/packaging/__pycache__/version.cpython-310.pyc,,
|
| 603 |
+
setuptools/_vendor/wheel/vendored/packaging/_elffile.py,sha256=hbmK8OD6Z7fY6hwinHEUcD1by7czkGiNYu7ShnFEk2k,3266
|
| 604 |
+
setuptools/_vendor/wheel/vendored/packaging/_manylinux.py,sha256=P7sdR5_7XBY09LVYYPhHmydMJIIwPXWsh4olk74Uuj4,9588
|
| 605 |
+
setuptools/_vendor/wheel/vendored/packaging/_musllinux.py,sha256=z1s8To2hQ0vpn_d-O2i5qxGwEK8WmGlLt3d_26V7NeY,2674
|
| 606 |
+
setuptools/_vendor/wheel/vendored/packaging/_parser.py,sha256=4tT4emSl2qTaU7VTQE1Xa9o1jMPCsBezsYBxyNMUN-s,10347
|
| 607 |
+
setuptools/_vendor/wheel/vendored/packaging/_structures.py,sha256=q3eVNmbWJGG_S0Dit_S3Ao8qQqz_5PYTXFAKBZe5yr4,1431
|
| 608 |
+
setuptools/_vendor/wheel/vendored/packaging/_tokenizer.py,sha256=alCtbwXhOFAmFGZ6BQ-wCTSFoRAJ2z-ysIf7__MTJ_k,5292
|
| 609 |
+
setuptools/_vendor/wheel/vendored/packaging/markers.py,sha256=_TSPI1BhJYO7Bp9AzTmHQxIqHEVXaTjmDh9G-w8qzPA,8232
|
| 610 |
+
setuptools/_vendor/wheel/vendored/packaging/requirements.py,sha256=dgoBeVprPu2YE6Q8nGfwOPTjATHbRa_ZGLyXhFEln6Q,2933
|
| 611 |
+
setuptools/_vendor/wheel/vendored/packaging/specifiers.py,sha256=IWSt0SrLSP72heWhAC8UL0eGvas7XIQHjqiViVfmPKE,39778
|
| 612 |
+
setuptools/_vendor/wheel/vendored/packaging/tags.py,sha256=fedHXiOHkBxNZTXotXv8uXPmMFU9ae-TKBujgYHigcA,18950
|
| 613 |
+
setuptools/_vendor/wheel/vendored/packaging/utils.py,sha256=XgdmP3yx9-wQEFjO7OvMj9RjEf5JlR5HFFR69v7SQ9E,5268
|
| 614 |
+
setuptools/_vendor/wheel/vendored/packaging/version.py,sha256=PFJaYZDxBgyxkfYhH3SQw4qfE9ICCWrTmitvq14y3bs,16234
|
| 615 |
+
setuptools/_vendor/wheel/vendored/vendor.txt,sha256=Z2ENjB1i5prfez8CdM1Sdr3c6Zxv2rRRolMpLmBncAE,16
|
| 616 |
+
setuptools/_vendor/wheel/wheelfile.py,sha256=USCttNlJwafxt51YYFFKG7jnxz8dfhbyqAZL6jMTA9s,8411
|
| 617 |
+
setuptools/_vendor/zipp-3.19.2.dist-info/INSTALLER,sha256=zuuue4knoyJ-UwPPXg8fezS7VCrXJQrAP7zeNuwvFQg,4
|
| 618 |
+
setuptools/_vendor/zipp-3.19.2.dist-info/LICENSE,sha256=htoPAa6uRjSKPD1GUZXcHOzN55956HdppkuNoEsqR0E,1023
|
| 619 |
+
setuptools/_vendor/zipp-3.19.2.dist-info/METADATA,sha256=UIrk_kMIHGSwsKKChYizqMw0MMZpPRZ2ZiVpQAsN_bE,3575
|
| 620 |
+
setuptools/_vendor/zipp-3.19.2.dist-info/RECORD,sha256=8xby4D_ZrefrvAsVRwaEjiu4_VaLkJNRCfDY484rm_4,1039
|
| 621 |
+
setuptools/_vendor/zipp-3.19.2.dist-info/REQUESTED,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
| 622 |
+
setuptools/_vendor/zipp-3.19.2.dist-info/WHEEL,sha256=GJ7t_kWBFywbagK5eo9IoUwLW6oyOeTKmQ-9iHFVNxQ,92
|
| 623 |
+
setuptools/_vendor/zipp-3.19.2.dist-info/top_level.txt,sha256=iAbdoSHfaGqBfVb2XuR9JqSQHCoOsOtG6y9C_LSpqFw,5
|
| 624 |
+
setuptools/_vendor/zipp/__init__.py,sha256=QuI1g00G4fRAcGt-HqbV0oWIkmSgedCGGYsHHYzNa8A,13412
|
| 625 |
+
setuptools/_vendor/zipp/__pycache__/__init__.cpython-310.pyc,,
|
| 626 |
+
setuptools/_vendor/zipp/__pycache__/glob.cpython-310.pyc,,
|
| 627 |
+
setuptools/_vendor/zipp/compat/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
| 628 |
+
setuptools/_vendor/zipp/compat/__pycache__/__init__.cpython-310.pyc,,
|
| 629 |
+
setuptools/_vendor/zipp/compat/__pycache__/py310.cpython-310.pyc,,
|
| 630 |
+
setuptools/_vendor/zipp/compat/py310.py,sha256=eZpkW0zRtunkhEh8jjX3gCGe22emoKCBJw72Zt4RkhA,219
|
| 631 |
+
setuptools/_vendor/zipp/glob.py,sha256=etWpnfEoRyfUvrUsi6sTiGmErvPwe6HzY6pT8jg_lUI,3082
|
| 632 |
+
setuptools/archive_util.py,sha256=Tl_64hSTtc4y8x7xa98rFVUbG24oArpjzLAYGYP2_sI,7356
|
| 633 |
+
setuptools/build_meta.py,sha256=3cHAWucJaLA9DU5OfCbKkkteTDiQ5bB4LokfTRMgJT4,19968
|
| 634 |
+
setuptools/cli-32.exe,sha256=MqzBvFQxFsviz_EMuGd3LfLyVP8mNMhwrvC0bEtpb9s,11776
|
| 635 |
+
setuptools/cli-64.exe,sha256=u7PeVwdinmpgoMI4zUd7KPB_AGaYL9qVP6b87DkHOko,14336
|
| 636 |
+
setuptools/cli-arm64.exe,sha256=uafQjaiA36yLz1SOuksG-1m28JsX0zFIoPZhgyiSbGE,13824
|
| 637 |
+
setuptools/cli.exe,sha256=MqzBvFQxFsviz_EMuGd3LfLyVP8mNMhwrvC0bEtpb9s,11776
|
| 638 |
+
setuptools/command/__init__.py,sha256=wdSrlNR0P6nCz9_oFtCAiAkeFJMsZa1jPcpXT53f0SM,803
|
| 639 |
+
setuptools/command/__pycache__/__init__.cpython-310.pyc,,
|
| 640 |
+
setuptools/command/__pycache__/_requirestxt.cpython-310.pyc,,
|
| 641 |
+
setuptools/command/__pycache__/alias.cpython-310.pyc,,
|
| 642 |
+
setuptools/command/__pycache__/bdist_egg.cpython-310.pyc,,
|
| 643 |
+
setuptools/command/__pycache__/bdist_rpm.cpython-310.pyc,,
|
| 644 |
+
setuptools/command/__pycache__/bdist_wheel.cpython-310.pyc,,
|
| 645 |
+
setuptools/command/__pycache__/build.cpython-310.pyc,,
|
| 646 |
+
setuptools/command/__pycache__/build_clib.cpython-310.pyc,,
|
| 647 |
+
setuptools/command/__pycache__/build_ext.cpython-310.pyc,,
|
| 648 |
+
setuptools/command/__pycache__/build_py.cpython-310.pyc,,
|
| 649 |
+
setuptools/command/__pycache__/develop.cpython-310.pyc,,
|
| 650 |
+
setuptools/command/__pycache__/dist_info.cpython-310.pyc,,
|
| 651 |
+
setuptools/command/__pycache__/easy_install.cpython-310.pyc,,
|
| 652 |
+
setuptools/command/__pycache__/editable_wheel.cpython-310.pyc,,
|
| 653 |
+
setuptools/command/__pycache__/egg_info.cpython-310.pyc,,
|
| 654 |
+
setuptools/command/__pycache__/install.cpython-310.pyc,,
|
| 655 |
+
setuptools/command/__pycache__/install_egg_info.cpython-310.pyc,,
|
| 656 |
+
setuptools/command/__pycache__/install_lib.cpython-310.pyc,,
|
| 657 |
+
setuptools/command/__pycache__/install_scripts.cpython-310.pyc,,
|
| 658 |
+
setuptools/command/__pycache__/rotate.cpython-310.pyc,,
|
| 659 |
+
setuptools/command/__pycache__/saveopts.cpython-310.pyc,,
|
| 660 |
+
setuptools/command/__pycache__/sdist.cpython-310.pyc,,
|
| 661 |
+
setuptools/command/__pycache__/setopt.cpython-310.pyc,,
|
| 662 |
+
setuptools/command/__pycache__/test.cpython-310.pyc,,
|
| 663 |
+
setuptools/command/_requirestxt.py,sha256=ItYMTJGh_i5TlQstX_nFopqEhkC4PJFadBL2Zd3V670,4228
|
| 664 |
+
setuptools/command/alias.py,sha256=rDdrMt32DS6qf3K7tjZZyHD_dMKrm77AXcAtx-nBQ0I,2380
|
| 665 |
+
setuptools/command/bdist_egg.py,sha256=3eDucQ4fdeYMsLO9PhBfY1JkcMLhZXgnAI_9FdFNsEE,16972
|
| 666 |
+
setuptools/command/bdist_rpm.py,sha256=LyqI49w48SKk0FmuHsE9MLzX1SuXjL7YMNbZMFZqFII,1435
|
| 667 |
+
setuptools/command/bdist_wheel.py,sha256=_LfGHB7CV_uyncqlOTSETEi2gjVCoPKuAXcyRFoq7Cs,22246
|
| 668 |
+
setuptools/command/build.py,sha256=eI7STMERGGZEpzk1tvJN8p9IOjAAXMcGLzljv2mwI3M,6052
|
| 669 |
+
setuptools/command/build_clib.py,sha256=AbgpPIF_3qL8fZr3JIebI-WHTMTBiMfrFkVQz8K40G4,4528
|
| 670 |
+
setuptools/command/build_ext.py,sha256=bUH4M0NizaJJrv10wK-ZD3uY0TxCSZlYQDhiwwzHslM,18377
|
| 671 |
+
setuptools/command/build_py.py,sha256=DCbjvB18kkL-xUK5rvlzm0C6twTeOxNhyvJDxxa7fII,15539
|
| 672 |
+
setuptools/command/develop.py,sha256=zX22119sI1G1gfJ1gNCE4hkg2zbLKx0uUwvNmC5bIu8,6886
|
| 673 |
+
setuptools/command/dist_info.py,sha256=HU752iLLmmYMHbsDBgz2ubRjkgJobugOp8H71LzzDys,3450
|
| 674 |
+
setuptools/command/easy_install.py,sha256=0Z4kFlE78Ae2AfHXYTxZFUa2t3qlNqXCtQu4J1Nx8iA,87870
|
| 675 |
+
setuptools/command/editable_wheel.py,sha256=3bBipRZA3E4poQ8LEWhMYEjHjCzqU_pIdO86C3t7oNY,35624
|
| 676 |
+
setuptools/command/egg_info.py,sha256=WWUozR3DZCrWsTQhHXOygMiEUcrjLWphET0-Zsocsm4,25982
|
| 677 |
+
setuptools/command/install.py,sha256=MmTGb8m1R8fJ0cc5FTWCF6uq-s1ZJmvpYm-N_CtqEaI,7046
|
| 678 |
+
setuptools/command/install_egg_info.py,sha256=3I9IPCH7D59Sh-6aVYz-h6wwyxq-wkxrKwKg3nDdJqs,2075
|
| 679 |
+
setuptools/command/install_lib.py,sha256=9n1_U83eHcERL_a_rv_LhHCkhXlLdqyZ4SdBow-9qcE,4319
|
| 680 |
+
setuptools/command/install_scripts.py,sha256=tVOCj3e8OTIrkoL_bGbT5pOksdxZfQblH_bdI4DtVV4,2637
|
| 681 |
+
setuptools/command/launcher manifest.xml,sha256=xlLbjWrB01tKC0-hlVkOKkiSPbzMml2eOPtJ_ucCnbE,628
|
| 682 |
+
setuptools/command/rotate.py,sha256=XNd_BEEOWAJHW1FcLTMUWWl4QB6zAuk7b8VWQg3FHos,2187
|
| 683 |
+
setuptools/command/saveopts.py,sha256=Np0PVb7SD7oTbu9Z9sosS7D-CkkIkU7x4glu5Es1tjA,692
|
| 684 |
+
setuptools/command/sdist.py,sha256=JaQm2-ebXI2kvyrBjJKP8yNLPa5eMbMeis88CXBMYlk,7374
|
| 685 |
+
setuptools/command/setopt.py,sha256=xZF2RCc4ABvE9eHHAzF50-fkQg3au8fcRUVVGd58k3U,5100
|
| 686 |
+
setuptools/command/test.py,sha256=k7xcq7D7bEehgxarbw-dW3AtmGZORqz8HjKR6FGJ3jk,1343
|
| 687 |
+
setuptools/compat/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
| 688 |
+
setuptools/compat/__pycache__/__init__.cpython-310.pyc,,
|
| 689 |
+
setuptools/compat/__pycache__/py310.cpython-310.pyc,,
|
| 690 |
+
setuptools/compat/__pycache__/py311.cpython-310.pyc,,
|
| 691 |
+
setuptools/compat/__pycache__/py312.cpython-310.pyc,,
|
| 692 |
+
setuptools/compat/__pycache__/py39.cpython-310.pyc,,
|
| 693 |
+
setuptools/compat/py310.py,sha256=8sqwWczIcrkzeAbhaim4pKVd4tXZdcqmebgdvzji0rc,141
|
| 694 |
+
setuptools/compat/py311.py,sha256=e6tJAFwZEP82hmMBl10HYeSypelo_Ti2wTjKZVKLwOE,790
|
| 695 |
+
setuptools/compat/py312.py,sha256=vYKVtdrdOTsO_R90dJkEXsFwfMJFuIFJflhIgHrjJ-Y,366
|
| 696 |
+
setuptools/compat/py39.py,sha256=BJMtnkfcqyTfccqjYQxfoRtU2nTnWaEESBVkshTiXqY,493
|
| 697 |
+
setuptools/config/NOTICE,sha256=Ld3wiBgpejuJ1D2V_2WdjahXQRCMkTbfo6TYVsBiO9g,493
|
| 698 |
+
setuptools/config/__init__.py,sha256=aiPnL9BJn1O6MfmuNXyn8W2Lp8u9qizRVqwPiOdPIjY,1499
|
| 699 |
+
setuptools/config/__pycache__/__init__.cpython-310.pyc,,
|
| 700 |
+
setuptools/config/__pycache__/_apply_pyprojecttoml.cpython-310.pyc,,
|
| 701 |
+
setuptools/config/__pycache__/expand.cpython-310.pyc,,
|
| 702 |
+
setuptools/config/__pycache__/pyprojecttoml.cpython-310.pyc,,
|
| 703 |
+
setuptools/config/__pycache__/setupcfg.cpython-310.pyc,,
|
| 704 |
+
setuptools/config/_apply_pyprojecttoml.py,sha256=SUyTw7A2btZ1lBuWKN5o42-Diyv95eGTiYJ3rZOnGSc,19120
|
| 705 |
+
setuptools/config/_validate_pyproject/NOTICE,sha256=XTANv6ZDE4sBO3WsnK7uWR-VG4sO4kKIw0zNkmxHgMg,18737
|
| 706 |
+
setuptools/config/_validate_pyproject/__init__.py,sha256=dnp6T7ePP1R5z4OuC7Fd2dkFlIrtIfizUfvpGJP6nz0,1042
|
| 707 |
+
setuptools/config/_validate_pyproject/__pycache__/__init__.cpython-310.pyc,,
|
| 708 |
+
setuptools/config/_validate_pyproject/__pycache__/error_reporting.cpython-310.pyc,,
|
| 709 |
+
setuptools/config/_validate_pyproject/__pycache__/extra_validations.cpython-310.pyc,,
|
| 710 |
+
setuptools/config/_validate_pyproject/__pycache__/fastjsonschema_exceptions.cpython-310.pyc,,
|
| 711 |
+
setuptools/config/_validate_pyproject/__pycache__/fastjsonschema_validations.cpython-310.pyc,,
|
| 712 |
+
setuptools/config/_validate_pyproject/__pycache__/formats.cpython-310.pyc,,
|
| 713 |
+
setuptools/config/_validate_pyproject/error_reporting.py,sha256=meldD7nBQdolQhvG-43r1Ue-gU1n7ORAJR86vh3Rrvk,11813
|
| 714 |
+
setuptools/config/_validate_pyproject/extra_validations.py,sha256=-GUG5S--ijY8WfXbdXPoHl6ywGsyEF9dtDpenSoJPHg,2858
|
| 715 |
+
setuptools/config/_validate_pyproject/fastjsonschema_exceptions.py,sha256=w749JgqKi8clBFcObdcbZVqsmF4oJ_QByhZ1SGbUFNw,1612
|
| 716 |
+
setuptools/config/_validate_pyproject/fastjsonschema_validations.py,sha256=FihD5ZcM6p77BPZ04CGqh3BEwVNoPMKJZJAyuJpkAU0,354682
|
| 717 |
+
setuptools/config/_validate_pyproject/formats.py,sha256=TETokJBK9hjl-cVg1olsojkJwLxfP7_chgJQNmzAB98,13564
|
| 718 |
+
setuptools/config/distutils.schema.json,sha256=Tcp32kRnhwORGw_9p6GEi08lj2h15tQRzOYBbzGmcBU,972
|
| 719 |
+
setuptools/config/expand.py,sha256=JNAktRCsyyRB-rQodbPnCucmLWqcYvzCDC8Ebn2Z7xM,16041
|
| 720 |
+
setuptools/config/pyprojecttoml.py,sha256=YMu5PdbJJI5azp6kR_boM1mflf5nqOA-InF4s6LnLgw,18320
|
| 721 |
+
setuptools/config/setupcfg.py,sha256=VZDkwE7DYv45SbadJD8CwKrDtiXvjgllL8PYSvoRCyg,26575
|
| 722 |
+
setuptools/config/setuptools.schema.json,sha256=dZBRuSEnZkatoVlt1kVwG8ocTeRdO7BD0xvOWKH54PY,16071
|
| 723 |
+
setuptools/depends.py,sha256=jKYfjmt_2ZQYVghb8L9bU7LJ6erHJ5ze-K_fKV1BMXk,5965
|
| 724 |
+
setuptools/discovery.py,sha256=-42c3XhwzkfodDKKP50C2YBzr11fncAgmUzBdBRb0-Q,21258
|
| 725 |
+
setuptools/dist.py,sha256=RZz7aj9RxqSYriqgFoZOu-7KIV82cmlaMFx9owZrApQ,44897
|
| 726 |
+
setuptools/errors.py,sha256=gY2x2PIaIgy01yRANRC-zcCwxDCqCScgJoCOZFe0yio,3024
|
| 727 |
+
setuptools/extension.py,sha256=KCnv9p3tgm0ZVqtgE451fyILsm4hCyvOiUtOu787D-4,6683
|
| 728 |
+
setuptools/glob.py,sha256=AC_B33DY8g-CHELxDsJrtwFrpiucSAZsakPFdSOQzhc,6062
|
| 729 |
+
setuptools/gui-32.exe,sha256=hdrh6V13hF8stZvKw9Sv50u-TJGpvMW_SnHNQxBNvnw,11776
|
| 730 |
+
setuptools/gui-64.exe,sha256=NHG2FA6txkEid9u-_j_vjDRaDxpZd2CGuAo2GMOoPjs,14336
|
| 731 |
+
setuptools/gui-arm64.exe,sha256=5pT0dDQFyLWSb_RX22_n8aEt7HwWqcOGR4TT9OB64Jc,13824
|
| 732 |
+
setuptools/gui.exe,sha256=hdrh6V13hF8stZvKw9Sv50u-TJGpvMW_SnHNQxBNvnw,11776
|
| 733 |
+
setuptools/installer.py,sha256=_4Wegx4r3L05sMo3-IlqFp-OuxnWyBqjyMZ7LWQXmh8,5110
|
| 734 |
+
setuptools/launch.py,sha256=IBb5lEv69CyuZ9ewIrmKlXh154kdLmP29LKfTMkximE,820
|
| 735 |
+
setuptools/logging.py,sha256=W16iHJ1HcCXYQ0RxyrEfJ83FT4175tCtoYg-E6uSpVI,1261
|
| 736 |
+
setuptools/modified.py,sha256=ZwbfBfCFP88ltvbv_dJDz-t1LsQjnM-JUpgZnnQZjjM,568
|
| 737 |
+
setuptools/monkey.py,sha256=FwMWl2n1v2bHbeqBy-o9g8yUNaAkYFbszCbXe9d5Za8,3717
|
| 738 |
+
setuptools/msvc.py,sha256=vmM0qL4rIzrtD9pia9ZEwtqZ4LbbrgL0dU0EANVYRm8,41631
|
| 739 |
+
setuptools/namespaces.py,sha256=2GGqYY1BNDEhMtBc1rHTv7klgmNVRdksJeW-L1f--ys,3171
|
| 740 |
+
setuptools/package_index.py,sha256=V5hnQtbDy1R6l3dSBNTuMUBvtrQxNPxgmYyXfpSq79U,40299
|
| 741 |
+
setuptools/sandbox.py,sha256=fMqtcOuipHO6RKPh1YB5o7d985dLKo76Whp3vrIei2E,14906
|
| 742 |
+
setuptools/script (dev).tmpl,sha256=RUzQzCQUaXtwdLtYHWYbIQmOaES5Brqq1FvUA_tu-5I,218
|
| 743 |
+
setuptools/script.tmpl,sha256=WGTt5piezO27c-Dbx6l5Q4T3Ff20A5z7872hv3aAhYY,138
|
| 744 |
+
setuptools/tests/__init__.py,sha256=AnBfls2iJbTDQzmMKeLRt-9lxhaOHUVOZEgXv89Uwvs,335
|
| 745 |
+
setuptools/tests/__pycache__/__init__.cpython-310.pyc,,
|
| 746 |
+
setuptools/tests/__pycache__/contexts.cpython-310.pyc,,
|
| 747 |
+
setuptools/tests/__pycache__/environment.cpython-310.pyc,,
|
| 748 |
+
setuptools/tests/__pycache__/fixtures.cpython-310.pyc,,
|
| 749 |
+
setuptools/tests/__pycache__/mod_with_constant.cpython-310.pyc,,
|
| 750 |
+
setuptools/tests/__pycache__/namespaces.cpython-310.pyc,,
|
| 751 |
+
setuptools/tests/__pycache__/script-with-bom.cpython-310.pyc,,
|
| 752 |
+
setuptools/tests/__pycache__/server.cpython-310.pyc,,
|
| 753 |
+
setuptools/tests/__pycache__/test_archive_util.cpython-310.pyc,,
|
| 754 |
+
setuptools/tests/__pycache__/test_bdist_deprecations.cpython-310.pyc,,
|
| 755 |
+
setuptools/tests/__pycache__/test_bdist_egg.cpython-310.pyc,,
|
| 756 |
+
setuptools/tests/__pycache__/test_bdist_wheel.cpython-310.pyc,,
|
| 757 |
+
setuptools/tests/__pycache__/test_build.cpython-310.pyc,,
|
| 758 |
+
setuptools/tests/__pycache__/test_build_clib.cpython-310.pyc,,
|
| 759 |
+
setuptools/tests/__pycache__/test_build_ext.cpython-310.pyc,,
|
| 760 |
+
setuptools/tests/__pycache__/test_build_meta.cpython-310.pyc,,
|
| 761 |
+
setuptools/tests/__pycache__/test_build_py.cpython-310.pyc,,
|
| 762 |
+
setuptools/tests/__pycache__/test_config_discovery.cpython-310.pyc,,
|
| 763 |
+
setuptools/tests/__pycache__/test_core_metadata.cpython-310.pyc,,
|
| 764 |
+
setuptools/tests/__pycache__/test_depends.cpython-310.pyc,,
|
| 765 |
+
setuptools/tests/__pycache__/test_develop.cpython-310.pyc,,
|
| 766 |
+
setuptools/tests/__pycache__/test_dist.cpython-310.pyc,,
|
| 767 |
+
setuptools/tests/__pycache__/test_dist_info.cpython-310.pyc,,
|
| 768 |
+
setuptools/tests/__pycache__/test_distutils_adoption.cpython-310.pyc,,
|
| 769 |
+
setuptools/tests/__pycache__/test_easy_install.cpython-310.pyc,,
|
| 770 |
+
setuptools/tests/__pycache__/test_editable_install.cpython-310.pyc,,
|
| 771 |
+
setuptools/tests/__pycache__/test_egg_info.cpython-310.pyc,,
|
| 772 |
+
setuptools/tests/__pycache__/test_extern.cpython-310.pyc,,
|
| 773 |
+
setuptools/tests/__pycache__/test_find_packages.cpython-310.pyc,,
|
| 774 |
+
setuptools/tests/__pycache__/test_find_py_modules.cpython-310.pyc,,
|
| 775 |
+
setuptools/tests/__pycache__/test_glob.cpython-310.pyc,,
|
| 776 |
+
setuptools/tests/__pycache__/test_install_scripts.cpython-310.pyc,,
|
| 777 |
+
setuptools/tests/__pycache__/test_logging.cpython-310.pyc,,
|
| 778 |
+
setuptools/tests/__pycache__/test_manifest.cpython-310.pyc,,
|
| 779 |
+
setuptools/tests/__pycache__/test_namespaces.cpython-310.pyc,,
|
| 780 |
+
setuptools/tests/__pycache__/test_packageindex.cpython-310.pyc,,
|
| 781 |
+
setuptools/tests/__pycache__/test_sandbox.cpython-310.pyc,,
|
| 782 |
+
setuptools/tests/__pycache__/test_sdist.cpython-310.pyc,,
|
| 783 |
+
setuptools/tests/__pycache__/test_setopt.cpython-310.pyc,,
|
| 784 |
+
setuptools/tests/__pycache__/test_setuptools.cpython-310.pyc,,
|
| 785 |
+
setuptools/tests/__pycache__/test_shutil_wrapper.cpython-310.pyc,,
|
| 786 |
+
setuptools/tests/__pycache__/test_unicode_utils.cpython-310.pyc,,
|
| 787 |
+
setuptools/tests/__pycache__/test_virtualenv.cpython-310.pyc,,
|
| 788 |
+
setuptools/tests/__pycache__/test_warnings.cpython-310.pyc,,
|
| 789 |
+
setuptools/tests/__pycache__/test_wheel.cpython-310.pyc,,
|
| 790 |
+
setuptools/tests/__pycache__/test_windows_wrappers.cpython-310.pyc,,
|
| 791 |
+
setuptools/tests/__pycache__/text.cpython-310.pyc,,
|
| 792 |
+
setuptools/tests/__pycache__/textwrap.cpython-310.pyc,,
|
| 793 |
+
setuptools/tests/compat/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
| 794 |
+
setuptools/tests/compat/__pycache__/__init__.cpython-310.pyc,,
|
| 795 |
+
setuptools/tests/compat/__pycache__/py39.cpython-310.pyc,,
|
| 796 |
+
setuptools/tests/compat/py39.py,sha256=eUy7_F-6KRTOIKl-veshUu6I0EdTSdBZMh0EV0lZ1-g,135
|
| 797 |
+
setuptools/tests/config/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
| 798 |
+
setuptools/tests/config/__pycache__/__init__.cpython-310.pyc,,
|
| 799 |
+
setuptools/tests/config/__pycache__/test_apply_pyprojecttoml.cpython-310.pyc,,
|
| 800 |
+
setuptools/tests/config/__pycache__/test_expand.cpython-310.pyc,,
|
| 801 |
+
setuptools/tests/config/__pycache__/test_pyprojecttoml.cpython-310.pyc,,
|
| 802 |
+
setuptools/tests/config/__pycache__/test_pyprojecttoml_dynamic_deps.cpython-310.pyc,,
|
| 803 |
+
setuptools/tests/config/__pycache__/test_setupcfg.cpython-310.pyc,,
|
| 804 |
+
setuptools/tests/config/downloads/__init__.py,sha256=9ixnDEdyL_arKbUzfuiJftAj9bGxKz8M9alOFZMjx9Y,1827
|
| 805 |
+
setuptools/tests/config/downloads/__pycache__/__init__.cpython-310.pyc,,
|
| 806 |
+
setuptools/tests/config/downloads/__pycache__/preload.cpython-310.pyc,,
|
| 807 |
+
setuptools/tests/config/downloads/preload.py,sha256=sIGGZpY3cmMpMwiJYYYYHG2ifZJkvJgEotRFtiulV1I,450
|
| 808 |
+
setuptools/tests/config/setupcfg_examples.txt,sha256=cAbVvCbkFZuTUL6xRRzRgqyB0rLvJTfvw3D30glo2OE,1912
|
| 809 |
+
setuptools/tests/config/test_apply_pyprojecttoml.py,sha256=l6nE4d8WLU_eSWRic7VSoqeKv9Bi7CZGHcEuB2ehk2w,28807
|
| 810 |
+
setuptools/tests/config/test_expand.py,sha256=S0oT6JvgA_oujR4YS4RUuf5gmOt1CTQV66RQDzV8xd4,8933
|
| 811 |
+
setuptools/tests/config/test_pyprojecttoml.py,sha256=0LefSljUhA6MqtJ5AVzLhomqZcYiFKdu_1ckDeMT1LY,12406
|
| 812 |
+
setuptools/tests/config/test_pyprojecttoml_dynamic_deps.py,sha256=9W73-yLhZJmvCiO4rTiQoBpZT5wNA90Xbd5n2HCshd4,3271
|
| 813 |
+
setuptools/tests/config/test_setupcfg.py,sha256=ZvN-O-2Dgon1adp6oM6il8JWdgT9y196fRvqESU5ELI,33427
|
| 814 |
+
setuptools/tests/contexts.py,sha256=TAdZKxmmodx1ExMVo01o4QpRjpIpo4X3IWKq_BnjxpU,3480
|
| 815 |
+
setuptools/tests/environment.py,sha256=95_UtTaRiuvwYC9eXKEHbn02kDtZysvZq3UZJmPUj1I,3102
|
| 816 |
+
setuptools/tests/fixtures.py,sha256=-V7iD6BeE2E0Rw6dVvTOCm36JG8ZTTnrXhN0GISlgrg,5197
|
| 817 |
+
setuptools/tests/indexes/test_links_priority/external.html,sha256=eL9euOuE93JKZdqlXxBOlHbKwIuNuIdq7GBRpsaPMcU,92
|
| 818 |
+
setuptools/tests/indexes/test_links_priority/simple/foobar/index.html,sha256=DD-TKr7UU4zAjHHz4VexYDNSAzR27levSh1c-k3ZdLE,174
|
| 819 |
+
setuptools/tests/integration/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
| 820 |
+
setuptools/tests/integration/__pycache__/__init__.cpython-310.pyc,,
|
| 821 |
+
setuptools/tests/integration/__pycache__/helpers.cpython-310.pyc,,
|
| 822 |
+
setuptools/tests/integration/__pycache__/test_pip_install_sdist.cpython-310.pyc,,
|
| 823 |
+
setuptools/tests/integration/helpers.py,sha256=3PHcS9SCA-fwVJmUP2ad5NQOttJAETI5Nnoc_xroO5k,2522
|
| 824 |
+
setuptools/tests/integration/test_pip_install_sdist.py,sha256=SFbvuYF_hDzt6OtsQ5GjFNnxmoJ_eElfvpYsiyyGJ-g,8256
|
| 825 |
+
setuptools/tests/mod_with_constant.py,sha256=X_Kj80M55w1tmQ4f7uZY91ZTALo4hKVT6EHxgYocUMQ,22
|
| 826 |
+
setuptools/tests/namespaces.py,sha256=HPcI3nR5MCFWXpaADIJ1fwKxymcQgBkuw87Ic5PUSAQ,2774
|
| 827 |
+
setuptools/tests/script-with-bom.py,sha256=hRRgIizEULGiG_ZTNoMY46HhKhxpWfy5FGcD6Qbh5fc,18
|
| 828 |
+
setuptools/tests/server.py,sha256=0FDZf0cSInCP5n1haK7AxHo3jD261RK7D3-RjP-F53k,2397
|
| 829 |
+
setuptools/tests/test_archive_util.py,sha256=buuKdY8XkW26Pe3IKAoBRGHG0MDumnuNoPg2WsAQzIg,845
|
| 830 |
+
setuptools/tests/test_bdist_deprecations.py,sha256=75Xq3gYn79LIIyusEltbHan0bEgAt2e_CaL7KLS8-KQ,775
|
| 831 |
+
setuptools/tests/test_bdist_egg.py,sha256=6PaYN1F3JDbIh1uK0urv7yJFcx98z5dn9SOJ8Mv91l8,1957
|
| 832 |
+
setuptools/tests/test_bdist_wheel.py,sha256=dZ9a7OT_UyRvLnoCi2KGEIbtzhEQjM3YutYMA6ZCezs,23083
|
| 833 |
+
setuptools/tests/test_build.py,sha256=wJgMz2hwHADcLFg-nXrwRVhus7hjmAeEGgrpIQwCGnA,798
|
| 834 |
+
setuptools/tests/test_build_clib.py,sha256=bX51XRAf4uO7IuHFpjePnoK8mE74N2gsoeEqF-ofgws,3123
|
| 835 |
+
setuptools/tests/test_build_ext.py,sha256=e4ZSxsYPB5zq1KSqGEuATZ0t0PJQzMhjjkKJ-hIjcgc,10099
|
| 836 |
+
setuptools/tests/test_build_meta.py,sha256=kvi0Bn4p9DBVme3zyWQsn3QgB9oPdq8S15agj1m69L0,33289
|
| 837 |
+
setuptools/tests/test_build_py.py,sha256=gobME_Cvzf6Ugxq70iWfXekb_xyyT61khwjFq8zkwfw,14186
|
| 838 |
+
setuptools/tests/test_config_discovery.py,sha256=FqV-lOtkqaI-ayzU2zocSdD5TaRAgCZnixNDilKA6FQ,22580
|
| 839 |
+
setuptools/tests/test_core_metadata.py,sha256=vbVJ5_Lsx_hsO_GdB6nQEXJRjA2ydx6_qSbr5LpheAA,20881
|
| 840 |
+
setuptools/tests/test_depends.py,sha256=yQBXoQbNQlJit6mbRVoz6Bb553f3sNrq02lZimNz5XY,424
|
| 841 |
+
setuptools/tests/test_develop.py,sha256=CLzXZ8-b5-VFTuau4P4yXEdLx1UdyTFcOfrV0qyUIdE,5142
|
| 842 |
+
setuptools/tests/test_dist.py,sha256=GFjyL2etAxvVM3q7NhFEGcXS5gyKj8VzbqcbKzpqbOk,8901
|
| 843 |
+
setuptools/tests/test_dist_info.py,sha256=5kBRj9tuBsVreBsY22H2feMO_JQZsSoOZMU_MJfUevY,7077
|
| 844 |
+
setuptools/tests/test_distutils_adoption.py,sha256=_eynrOfyEqXFEmjUJhzpe8GXPyTUPvNSObs4qAAmBy8,5987
|
| 845 |
+
setuptools/tests/test_easy_install.py,sha256=jx4lpFyee0G432cdnwBow3AkL4ibw-0QILwldwv5SCI,53534
|
| 846 |
+
setuptools/tests/test_editable_install.py,sha256=7eTEtpT0k7QeVyZg64eh3kZn-SjckuB9LcokOuV37DI,43383
|
| 847 |
+
setuptools/tests/test_egg_info.py,sha256=QCzoUOkFocmbkwS6XU7F8WNzKE8CGEMRxYBqKLgfUrc,44866
|
| 848 |
+
setuptools/tests/test_extern.py,sha256=rpKU6oCcksumLwf5TeKlDluFQ0TUfbPwTLQbpxcFrCU,296
|
| 849 |
+
setuptools/tests/test_find_packages.py,sha256=CTLAcTzWGWBLCcd2aAsUVkvO3ibrlqexFBdDKOWPoq8,7819
|
| 850 |
+
setuptools/tests/test_find_py_modules.py,sha256=zQjuhIG5TQN2SJPix9ARo4DL_w84Ln8QsHDUjjbrtAQ,2404
|
| 851 |
+
setuptools/tests/test_glob.py,sha256=P3JvpH-kXQ4BZ3zvRF-zKxOgwyWzwIaQIz0WHdxS0kk,887
|
| 852 |
+
setuptools/tests/test_install_scripts.py,sha256=scIrJ6a_ssKqg4vIBNaUjmAKHEYLUUZ9WKnPeKnE6gc,3433
|
| 853 |
+
setuptools/tests/test_logging.py,sha256=zlE5DlldukC7Jc54FNvDV_7ux3ErAkrfrN5CSsnNOUQ,2099
|
| 854 |
+
setuptools/tests/test_manifest.py,sha256=eMg65pIA52DizB6mpktSU-b8CjwaNCS5MSgL_V1LrFI,18562
|
| 855 |
+
setuptools/tests/test_namespaces.py,sha256=Y6utoe5PHHqL_DlgawqB9F8XpsUDPvvw1sQMenK04e0,4515
|
| 856 |
+
setuptools/tests/test_packageindex.py,sha256=qEjLHpSu2gAkegwEstzHQT-Om1uQIYjA8zeNzEX79uo,8775
|
| 857 |
+
setuptools/tests/test_sandbox.py,sha256=shUWE7fLTWe7Jzdfi6NheBWauG3oUukbUV46cArD0u0,4330
|
| 858 |
+
setuptools/tests/test_sdist.py,sha256=RYLvPa_nfyC1ZmoinzqMzJynTDG4RtPYC19_0LU6pvs,32872
|
| 859 |
+
setuptools/tests/test_setopt.py,sha256=3VxxM4ATfP-P4AGnDjoWCnHr5-i9CSEQTFYU1-FTnvI,1365
|
| 860 |
+
setuptools/tests/test_setuptools.py,sha256=_eIhqKf45-OtHqxRf20KndOZJlJdS0PuFLXBO3M-LN8,9008
|
| 861 |
+
setuptools/tests/test_shutil_wrapper.py,sha256=g15E11PtZxG-InB2BWNFyH-svObXx2XcMhgMLJPuFnc,641
|
| 862 |
+
setuptools/tests/test_unicode_utils.py,sha256=xWfEEl8jkQCt9othUTXJfFmdyATAFggJs2tTxjbumbw,316
|
| 863 |
+
setuptools/tests/test_virtualenv.py,sha256=g-njC_9JTAs1YVx_1dGJ_Q6RlInO4qKVu9-XAgNb6TY,3730
|
| 864 |
+
setuptools/tests/test_warnings.py,sha256=zwR2zcnCeCeDqILZlJOPAcuyPHoDvGu1OtOVYiLMk74,3347
|
| 865 |
+
setuptools/tests/test_wheel.py,sha256=J-83W1KdXTgAjFZE3H-ytohhvDE1iqdbE5YF5jLQlGQ,19370
|
| 866 |
+
setuptools/tests/test_windows_wrappers.py,sha256=aF6UTowN3yzCgdBh9nDQVvYIfSYogrTK776TEyXEBqg,7881
|
| 867 |
+
setuptools/tests/text.py,sha256=a12197pMVTvB6FAWQ0ujT8fIQiLIWJlFAl1UCaDUDfg,123
|
| 868 |
+
setuptools/tests/textwrap.py,sha256=FNNNq_MiaEJx88PnsbJQIRxmj1qmgcAOCXXRsODPJN4,98
|
| 869 |
+
setuptools/unicode_utils.py,sha256=ukMGh8pEAw6F_Ezb-K5D3c-078RgA_GcF0oW6lg4lSs,3189
|
| 870 |
+
setuptools/version.py,sha256=WJCeUuyq74Aok2TeK9-OexZOu8XrlQy7-y0BEuWNovQ,161
|
| 871 |
+
setuptools/warnings.py,sha256=oY0Se5eOqje_FEyjTgonUc0XGwgsrI5cgm1kkwulz_w,3796
|
| 872 |
+
setuptools/wheel.py,sha256=xkAtvgm7uPTyYV2zqVmQ0wA8kLwOyRT2Jes1zAy07Ks,8624
|
| 873 |
+
setuptools/windows_support.py,sha256=wW4IYLM1Bv7Z1MaauP2xmPjyy-wkmQnXdyvXscAf9fw,726
|
code/LaDi-RL-old-qwen-cod/LaDi-RL-old-qwen-cod/venv/lib64/python3.10/site-packages/setuptools-79.0.1.dist-info/REQUESTED
ADDED
|
File without changes
|
code/LaDi-RL-old-qwen-cod/LaDi-RL-old-qwen-cod/venv/lib64/python3.10/site-packages/setuptools-79.0.1.dist-info/WHEEL
ADDED
|
@@ -0,0 +1,5 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
Wheel-Version: 1.0
|
| 2 |
+
Generator: setuptools (79.0.1)
|
| 3 |
+
Root-Is-Purelib: true
|
| 4 |
+
Tag: py3-none-any
|
| 5 |
+
|
code/LaDi-RL-old-qwen-cod/LaDi-RL-old-qwen-cod/venv/lib64/python3.10/site-packages/setuptools-79.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
|
code/LaDi-RL-old-qwen-cod/LaDi-RL-old-qwen-cod/venv/lib64/python3.10/site-packages/setuptools-79.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.
|
code/LaDi-RL-old-qwen-cod/LaDi-RL-old-qwen-cod/venv/lib64/python3.10/site-packages/setuptools-79.0.1.dist-info/top_level.txt
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
_distutils_hack
|
| 2 |
+
pkg_resources
|
| 3 |
+
setuptools
|
code/LaDi-RL-old-qwen-cod/LaDi-RL-old-qwen-cod/venv/lib64/python3.10/site-packages/setuptools/_vendor/wheel-0.45.1.dist-info/INSTALLER
ADDED
|
@@ -0,0 +1 @@
|
|
|
|
|
|
|
| 1 |
+
pip
|
code/LaDi-RL-old-qwen-cod/LaDi-RL-old-qwen-cod/venv/lib64/python3.10/site-packages/setuptools/_vendor/wheel-0.45.1.dist-info/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.
|
code/LaDi-RL-old-qwen-cod/LaDi-RL-old-qwen-cod/venv/lib64/python3.10/site-packages/setuptools/_vendor/wheel-0.45.1.dist-info/METADATA
ADDED
|
@@ -0,0 +1,66 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
Metadata-Version: 2.3
|
| 2 |
+
Name: wheel
|
| 3 |
+
Version: 0.45.1
|
| 4 |
+
Summary: A built-package format for Python
|
| 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.8
|
| 9 |
+
Description-Content-Type: text/x-rst
|
| 10 |
+
Classifier: Development Status :: 5 - Production/Stable
|
| 11 |
+
Classifier: Intended Audience :: Developers
|
| 12 |
+
Classifier: Topic :: System :: Archiving :: Packaging
|
| 13 |
+
Classifier: License :: OSI Approved :: MIT License
|
| 14 |
+
Classifier: Programming Language :: Python
|
| 15 |
+
Classifier: Programming Language :: Python :: 3 :: Only
|
| 16 |
+
Classifier: Programming Language :: Python :: 3.8
|
| 17 |
+
Classifier: Programming Language :: Python :: 3.9
|
| 18 |
+
Classifier: Programming Language :: Python :: 3.10
|
| 19 |
+
Classifier: Programming Language :: Python :: 3.11
|
| 20 |
+
Classifier: Programming Language :: Python :: 3.12
|
| 21 |
+
Requires-Dist: pytest >= 6.0.0 ; extra == "test"
|
| 22 |
+
Requires-Dist: setuptools >= 65 ; extra == "test"
|
| 23 |
+
Project-URL: Changelog, https://wheel.readthedocs.io/en/stable/news.html
|
| 24 |
+
Project-URL: Documentation, https://wheel.readthedocs.io/
|
| 25 |
+
Project-URL: Issue Tracker, https://github.com/pypa/wheel/issues
|
| 26 |
+
Project-URL: Source, https://github.com/pypa/wheel
|
| 27 |
+
Provides-Extra: test
|
| 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://www.python.org/dev/peps/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 |
+
|
code/LaDi-RL-old-qwen-cod/LaDi-RL-old-qwen-cod/venv/lib64/python3.10/site-packages/setuptools/_vendor/wheel-0.45.1.dist-info/RECORD
ADDED
|
@@ -0,0 +1,68 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
../../bin/wheel,sha256=pBhV19bQIgjS-r541fG3kLU6QtcyKaKdQ2RE9YIzeiU,249
|
| 2 |
+
wheel-0.45.1.dist-info/INSTALLER,sha256=zuuue4knoyJ-UwPPXg8fezS7VCrXJQrAP7zeNuwvFQg,4
|
| 3 |
+
wheel-0.45.1.dist-info/LICENSE.txt,sha256=MMI2GGeRCPPo6h0qZYx8pBe9_IkcmO8aifpP8MmChlQ,1107
|
| 4 |
+
wheel-0.45.1.dist-info/METADATA,sha256=mKz84H7m7jsxJyzeIcTVORiTb0NPMV39KvOIYhGgmjA,2313
|
| 5 |
+
wheel-0.45.1.dist-info/RECORD,,
|
| 6 |
+
wheel-0.45.1.dist-info/REQUESTED,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
| 7 |
+
wheel-0.45.1.dist-info/WHEEL,sha256=CpUCUxeHQbRN5UGRQHYRJorO5Af-Qy_fHMctcQ8DSGI,82
|
| 8 |
+
wheel-0.45.1.dist-info/entry_points.txt,sha256=rTY1BbkPHhkGMm4Q3F0pIzJBzW2kMxoG1oriffvGdA0,104
|
| 9 |
+
wheel/__init__.py,sha256=mrxMnvdXACur_LWegbUfh5g5ysWZrd63UJn890wvGNk,59
|
| 10 |
+
wheel/__main__.py,sha256=NkMUnuTCGcOkgY0IBLgBCVC_BGGcWORx2K8jYGS12UE,455
|
| 11 |
+
wheel/__pycache__/__init__.cpython-311.pyc,,
|
| 12 |
+
wheel/__pycache__/__main__.cpython-311.pyc,,
|
| 13 |
+
wheel/__pycache__/_bdist_wheel.cpython-311.pyc,,
|
| 14 |
+
wheel/__pycache__/_setuptools_logging.cpython-311.pyc,,
|
| 15 |
+
wheel/__pycache__/bdist_wheel.cpython-311.pyc,,
|
| 16 |
+
wheel/__pycache__/macosx_libfile.cpython-311.pyc,,
|
| 17 |
+
wheel/__pycache__/metadata.cpython-311.pyc,,
|
| 18 |
+
wheel/__pycache__/util.cpython-311.pyc,,
|
| 19 |
+
wheel/__pycache__/wheelfile.cpython-311.pyc,,
|
| 20 |
+
wheel/_bdist_wheel.py,sha256=UghCQjSH_pVfcZh6oRjzSw_TQhcf3anSx1OkiLSL82M,21694
|
| 21 |
+
wheel/_setuptools_logging.py,sha256=-5KC-lne0ilOUWIDfOkqapUWGMFZhuKYDIavIZiB5kM,781
|
| 22 |
+
wheel/bdist_wheel.py,sha256=tpf9WufiSO1RuEMg5oPhIfSG8DMziCZ_4muCKF69Cqo,1107
|
| 23 |
+
wheel/cli/__init__.py,sha256=Npq6_jKi03dhIcRnmbuFhwviVJxwO0tYEnEhWMv9cJo,4402
|
| 24 |
+
wheel/cli/__pycache__/__init__.cpython-311.pyc,,
|
| 25 |
+
wheel/cli/__pycache__/convert.cpython-311.pyc,,
|
| 26 |
+
wheel/cli/__pycache__/pack.cpython-311.pyc,,
|
| 27 |
+
wheel/cli/__pycache__/tags.cpython-311.pyc,,
|
| 28 |
+
wheel/cli/__pycache__/unpack.cpython-311.pyc,,
|
| 29 |
+
wheel/cli/convert.py,sha256=Bi0ntEXb9nTllCxWeTRQ4j-nPs3szWSEKipG_GgnMkQ,12634
|
| 30 |
+
wheel/cli/pack.py,sha256=CAFcHdBVulvsHYJlndKVO7KMI9JqBTZz5ii0PKxxCOs,3103
|
| 31 |
+
wheel/cli/tags.py,sha256=lHw-LaWrkS5Jy_qWcw-6pSjeNM6yAjDnqKI3E5JTTCU,4760
|
| 32 |
+
wheel/cli/unpack.py,sha256=Y_J7ynxPSoFFTT7H0fMgbBlVErwyDGcObgme5MBuz58,1021
|
| 33 |
+
wheel/macosx_libfile.py,sha256=k1x7CE3LPtOVGqj6NXQ1nTGYVPaeRrhVzUG_KPq3zDs,16572
|
| 34 |
+
wheel/metadata.py,sha256=JC4p7jlQZu2bUTAQ2fevkqLjg_X6gnNyRhLn6OUO1tc,6171
|
| 35 |
+
wheel/util.py,sha256=aL7aibHwYUgfc8WlolL5tXdkV4DatbJxZHb1kwHFJAU,423
|
| 36 |
+
wheel/vendored/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
| 37 |
+
wheel/vendored/__pycache__/__init__.cpython-311.pyc,,
|
| 38 |
+
wheel/vendored/packaging/LICENSE,sha256=ytHvW9NA1z4HS6YU0m996spceUDD2MNIUuZcSQlobEg,197
|
| 39 |
+
wheel/vendored/packaging/LICENSE.APACHE,sha256=DVQuDIgE45qn836wDaWnYhSdxoLXgpRRKH4RuTjpRZQ,10174
|
| 40 |
+
wheel/vendored/packaging/LICENSE.BSD,sha256=tw5-m3QvHMb5SLNMFqo5_-zpQZY2S8iP8NIYDwAo-sU,1344
|
| 41 |
+
wheel/vendored/packaging/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
| 42 |
+
wheel/vendored/packaging/__pycache__/__init__.cpython-311.pyc,,
|
| 43 |
+
wheel/vendored/packaging/__pycache__/_elffile.cpython-311.pyc,,
|
| 44 |
+
wheel/vendored/packaging/__pycache__/_manylinux.cpython-311.pyc,,
|
| 45 |
+
wheel/vendored/packaging/__pycache__/_musllinux.cpython-311.pyc,,
|
| 46 |
+
wheel/vendored/packaging/__pycache__/_parser.cpython-311.pyc,,
|
| 47 |
+
wheel/vendored/packaging/__pycache__/_structures.cpython-311.pyc,,
|
| 48 |
+
wheel/vendored/packaging/__pycache__/_tokenizer.cpython-311.pyc,,
|
| 49 |
+
wheel/vendored/packaging/__pycache__/markers.cpython-311.pyc,,
|
| 50 |
+
wheel/vendored/packaging/__pycache__/requirements.cpython-311.pyc,,
|
| 51 |
+
wheel/vendored/packaging/__pycache__/specifiers.cpython-311.pyc,,
|
| 52 |
+
wheel/vendored/packaging/__pycache__/tags.cpython-311.pyc,,
|
| 53 |
+
wheel/vendored/packaging/__pycache__/utils.cpython-311.pyc,,
|
| 54 |
+
wheel/vendored/packaging/__pycache__/version.cpython-311.pyc,,
|
| 55 |
+
wheel/vendored/packaging/_elffile.py,sha256=hbmK8OD6Z7fY6hwinHEUcD1by7czkGiNYu7ShnFEk2k,3266
|
| 56 |
+
wheel/vendored/packaging/_manylinux.py,sha256=P7sdR5_7XBY09LVYYPhHmydMJIIwPXWsh4olk74Uuj4,9588
|
| 57 |
+
wheel/vendored/packaging/_musllinux.py,sha256=z1s8To2hQ0vpn_d-O2i5qxGwEK8WmGlLt3d_26V7NeY,2674
|
| 58 |
+
wheel/vendored/packaging/_parser.py,sha256=4tT4emSl2qTaU7VTQE1Xa9o1jMPCsBezsYBxyNMUN-s,10347
|
| 59 |
+
wheel/vendored/packaging/_structures.py,sha256=q3eVNmbWJGG_S0Dit_S3Ao8qQqz_5PYTXFAKBZe5yr4,1431
|
| 60 |
+
wheel/vendored/packaging/_tokenizer.py,sha256=alCtbwXhOFAmFGZ6BQ-wCTSFoRAJ2z-ysIf7__MTJ_k,5292
|
| 61 |
+
wheel/vendored/packaging/markers.py,sha256=_TSPI1BhJYO7Bp9AzTmHQxIqHEVXaTjmDh9G-w8qzPA,8232
|
| 62 |
+
wheel/vendored/packaging/requirements.py,sha256=dgoBeVprPu2YE6Q8nGfwOPTjATHbRa_ZGLyXhFEln6Q,2933
|
| 63 |
+
wheel/vendored/packaging/specifiers.py,sha256=IWSt0SrLSP72heWhAC8UL0eGvas7XIQHjqiViVfmPKE,39778
|
| 64 |
+
wheel/vendored/packaging/tags.py,sha256=fedHXiOHkBxNZTXotXv8uXPmMFU9ae-TKBujgYHigcA,18950
|
| 65 |
+
wheel/vendored/packaging/utils.py,sha256=XgdmP3yx9-wQEFjO7OvMj9RjEf5JlR5HFFR69v7SQ9E,5268
|
| 66 |
+
wheel/vendored/packaging/version.py,sha256=PFJaYZDxBgyxkfYhH3SQw4qfE9ICCWrTmitvq14y3bs,16234
|
| 67 |
+
wheel/vendored/vendor.txt,sha256=Z2ENjB1i5prfez8CdM1Sdr3c6Zxv2rRRolMpLmBncAE,16
|
| 68 |
+
wheel/wheelfile.py,sha256=USCttNlJwafxt51YYFFKG7jnxz8dfhbyqAZL6jMTA9s,8411
|
code/LaDi-RL-old-qwen-cod/LaDi-RL-old-qwen-cod/venv/lib64/python3.10/site-packages/setuptools/_vendor/wheel-0.45.1.dist-info/REQUESTED
ADDED
|
File without changes
|
code/LaDi-RL-old-qwen-cod/LaDi-RL-old-qwen-cod/venv/lib64/python3.10/site-packages/setuptools/_vendor/wheel-0.45.1.dist-info/WHEEL
ADDED
|
@@ -0,0 +1,4 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
Wheel-Version: 1.0
|
| 2 |
+
Generator: flit 3.10.1
|
| 3 |
+
Root-Is-Purelib: true
|
| 4 |
+
Tag: py3-none-any
|
code/LaDi-RL-old-qwen-cod/LaDi-RL-old-qwen-cod/venv/lib64/python3.10/site-packages/setuptools/_vendor/wheel-0.45.1.dist-info/entry_points.txt
ADDED
|
@@ -0,0 +1,6 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
[console_scripts]
|
| 2 |
+
wheel=wheel.cli:main
|
| 3 |
+
|
| 4 |
+
[distutils.commands]
|
| 5 |
+
bdist_wheel=wheel.bdist_wheel:bdist_wheel
|
| 6 |
+
|
code/LaDi-RL-old-qwen-cod/LaDi-RL-old-qwen-cod/venv/lib64/python3.10/site-packages/setuptools/_vendor/wheel/vendored/packaging/__init__.py
ADDED
|
File without changes
|
code/LaDi-RL-old-qwen-cod/LaDi-RL-old-qwen-cod/venv/lib64/python3.10/site-packages/setuptools/_vendor/wheel/vendored/packaging/_elffile.py
ADDED
|
@@ -0,0 +1,108 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
"""
|
| 2 |
+
ELF file parser.
|
| 3 |
+
|
| 4 |
+
This provides a class ``ELFFile`` that parses an ELF executable in a similar
|
| 5 |
+
interface to ``ZipFile``. Only the read interface is implemented.
|
| 6 |
+
|
| 7 |
+
Based on: https://gist.github.com/lyssdod/f51579ae8d93c8657a5564aefc2ffbca
|
| 8 |
+
ELF header: https://refspecs.linuxfoundation.org/elf/gabi4+/ch4.eheader.html
|
| 9 |
+
"""
|
| 10 |
+
|
| 11 |
+
import enum
|
| 12 |
+
import os
|
| 13 |
+
import struct
|
| 14 |
+
from typing import IO, Optional, Tuple
|
| 15 |
+
|
| 16 |
+
|
| 17 |
+
class ELFInvalid(ValueError):
|
| 18 |
+
pass
|
| 19 |
+
|
| 20 |
+
|
| 21 |
+
class EIClass(enum.IntEnum):
|
| 22 |
+
C32 = 1
|
| 23 |
+
C64 = 2
|
| 24 |
+
|
| 25 |
+
|
| 26 |
+
class EIData(enum.IntEnum):
|
| 27 |
+
Lsb = 1
|
| 28 |
+
Msb = 2
|
| 29 |
+
|
| 30 |
+
|
| 31 |
+
class EMachine(enum.IntEnum):
|
| 32 |
+
I386 = 3
|
| 33 |
+
S390 = 22
|
| 34 |
+
Arm = 40
|
| 35 |
+
X8664 = 62
|
| 36 |
+
AArc64 = 183
|
| 37 |
+
|
| 38 |
+
|
| 39 |
+
class ELFFile:
|
| 40 |
+
"""
|
| 41 |
+
Representation of an ELF executable.
|
| 42 |
+
"""
|
| 43 |
+
|
| 44 |
+
def __init__(self, f: IO[bytes]) -> None:
|
| 45 |
+
self._f = f
|
| 46 |
+
|
| 47 |
+
try:
|
| 48 |
+
ident = self._read("16B")
|
| 49 |
+
except struct.error:
|
| 50 |
+
raise ELFInvalid("unable to parse identification")
|
| 51 |
+
magic = bytes(ident[:4])
|
| 52 |
+
if magic != b"\x7fELF":
|
| 53 |
+
raise ELFInvalid(f"invalid magic: {magic!r}")
|
| 54 |
+
|
| 55 |
+
self.capacity = ident[4] # Format for program header (bitness).
|
| 56 |
+
self.encoding = ident[5] # Data structure encoding (endianness).
|
| 57 |
+
|
| 58 |
+
try:
|
| 59 |
+
# e_fmt: Format for program header.
|
| 60 |
+
# p_fmt: Format for section header.
|
| 61 |
+
# p_idx: Indexes to find p_type, p_offset, and p_filesz.
|
| 62 |
+
e_fmt, self._p_fmt, self._p_idx = {
|
| 63 |
+
(1, 1): ("<HHIIIIIHHH", "<IIIIIIII", (0, 1, 4)), # 32-bit LSB.
|
| 64 |
+
(1, 2): (">HHIIIIIHHH", ">IIIIIIII", (0, 1, 4)), # 32-bit MSB.
|
| 65 |
+
(2, 1): ("<HHIQQQIHHH", "<IIQQQQQQ", (0, 2, 5)), # 64-bit LSB.
|
| 66 |
+
(2, 2): (">HHIQQQIHHH", ">IIQQQQQQ", (0, 2, 5)), # 64-bit MSB.
|
| 67 |
+
}[(self.capacity, self.encoding)]
|
| 68 |
+
except KeyError:
|
| 69 |
+
raise ELFInvalid(
|
| 70 |
+
f"unrecognized capacity ({self.capacity}) or "
|
| 71 |
+
f"encoding ({self.encoding})"
|
| 72 |
+
)
|
| 73 |
+
|
| 74 |
+
try:
|
| 75 |
+
(
|
| 76 |
+
_,
|
| 77 |
+
self.machine, # Architecture type.
|
| 78 |
+
_,
|
| 79 |
+
_,
|
| 80 |
+
self._e_phoff, # Offset of program header.
|
| 81 |
+
_,
|
| 82 |
+
self.flags, # Processor-specific flags.
|
| 83 |
+
_,
|
| 84 |
+
self._e_phentsize, # Size of section.
|
| 85 |
+
self._e_phnum, # Number of sections.
|
| 86 |
+
) = self._read(e_fmt)
|
| 87 |
+
except struct.error as e:
|
| 88 |
+
raise ELFInvalid("unable to parse machine and section information") from e
|
| 89 |
+
|
| 90 |
+
def _read(self, fmt: str) -> Tuple[int, ...]:
|
| 91 |
+
return struct.unpack(fmt, self._f.read(struct.calcsize(fmt)))
|
| 92 |
+
|
| 93 |
+
@property
|
| 94 |
+
def interpreter(self) -> Optional[str]:
|
| 95 |
+
"""
|
| 96 |
+
The path recorded in the ``PT_INTERP`` section header.
|
| 97 |
+
"""
|
| 98 |
+
for index in range(self._e_phnum):
|
| 99 |
+
self._f.seek(self._e_phoff + self._e_phentsize * index)
|
| 100 |
+
try:
|
| 101 |
+
data = self._read(self._p_fmt)
|
| 102 |
+
except struct.error:
|
| 103 |
+
continue
|
| 104 |
+
if data[self._p_idx[0]] != 3: # Not PT_INTERP.
|
| 105 |
+
continue
|
| 106 |
+
self._f.seek(data[self._p_idx[1]])
|
| 107 |
+
return os.fsdecode(self._f.read(data[self._p_idx[2]])).strip("\0")
|
| 108 |
+
return None
|
code/LaDi-RL-old-qwen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
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
import collections
|
| 2 |
+
import contextlib
|
| 3 |
+
import functools
|
| 4 |
+
import os
|
| 5 |
+
import re
|
| 6 |
+
import sys
|
| 7 |
+
import warnings
|
| 8 |
+
from typing import Dict, Generator, Iterator, NamedTuple, Optional, Sequence, Tuple
|
| 9 |
+
|
| 10 |
+
from ._elffile import EIClass, EIData, ELFFile, EMachine
|
| 11 |
+
|
| 12 |
+
EF_ARM_ABIMASK = 0xFF000000
|
| 13 |
+
EF_ARM_ABI_VER5 = 0x05000000
|
| 14 |
+
EF_ARM_ABI_FLOAT_HARD = 0x00000400
|
| 15 |
+
|
| 16 |
+
|
| 17 |
+
# `os.PathLike` not a generic type until Python 3.9, so sticking with `str`
|
| 18 |
+
# as the type for `path` until then.
|
| 19 |
+
@contextlib.contextmanager
|
| 20 |
+
def _parse_elf(path: str) -> Generator[Optional[ELFFile], None, None]:
|
| 21 |
+
try:
|
| 22 |
+
with open(path, "rb") as f:
|
| 23 |
+
yield ELFFile(f)
|
| 24 |
+
except (OSError, TypeError, ValueError):
|
| 25 |
+
yield None
|
| 26 |
+
|
| 27 |
+
|
| 28 |
+
def _is_linux_armhf(executable: str) -> bool:
|
| 29 |
+
# hard-float ABI can be detected from the ELF header of the running
|
| 30 |
+
# process
|
| 31 |
+
# https://static.docs.arm.com/ihi0044/g/aaelf32.pdf
|
| 32 |
+
with _parse_elf(executable) as f:
|
| 33 |
+
return (
|
| 34 |
+
f is not None
|
| 35 |
+
and f.capacity == EIClass.C32
|
| 36 |
+
and f.encoding == EIData.Lsb
|
| 37 |
+
and f.machine == EMachine.Arm
|
| 38 |
+
and f.flags & EF_ARM_ABIMASK == EF_ARM_ABI_VER5
|
| 39 |
+
and f.flags & EF_ARM_ABI_FLOAT_HARD == EF_ARM_ABI_FLOAT_HARD
|
| 40 |
+
)
|
| 41 |
+
|
| 42 |
+
|
| 43 |
+
def _is_linux_i686(executable: str) -> bool:
|
| 44 |
+
with _parse_elf(executable) as f:
|
| 45 |
+
return (
|
| 46 |
+
f is not None
|
| 47 |
+
and f.capacity == EIClass.C32
|
| 48 |
+
and f.encoding == EIData.Lsb
|
| 49 |
+
and f.machine == EMachine.I386
|
| 50 |
+
)
|
| 51 |
+
|
| 52 |
+
|
| 53 |
+
def _have_compatible_abi(executable: str, archs: Sequence[str]) -> bool:
|
| 54 |
+
if "armv7l" in archs:
|
| 55 |
+
return _is_linux_armhf(executable)
|
| 56 |
+
if "i686" in archs:
|
| 57 |
+
return _is_linux_i686(executable)
|
| 58 |
+
allowed_archs = {
|
| 59 |
+
"x86_64",
|
| 60 |
+
"aarch64",
|
| 61 |
+
"ppc64",
|
| 62 |
+
"ppc64le",
|
| 63 |
+
"s390x",
|
| 64 |
+
"loongarch64",
|
| 65 |
+
"riscv64",
|
| 66 |
+
}
|
| 67 |
+
return any(arch in allowed_archs for arch in archs)
|
| 68 |
+
|
| 69 |
+
|
| 70 |
+
# If glibc ever changes its major version, we need to know what the last
|
| 71 |
+
# minor version was, so we can build the complete list of all versions.
|
| 72 |
+
# For now, guess what the highest minor version might be, assume it will
|
| 73 |
+
# be 50 for testing. Once this actually happens, update the dictionary
|
| 74 |
+
# with the actual value.
|
| 75 |
+
_LAST_GLIBC_MINOR: Dict[int, int] = collections.defaultdict(lambda: 50)
|
| 76 |
+
|
| 77 |
+
|
| 78 |
+
class _GLibCVersion(NamedTuple):
|
| 79 |
+
major: int
|
| 80 |
+
minor: int
|
| 81 |
+
|
| 82 |
+
|
| 83 |
+
def _glibc_version_string_confstr() -> Optional[str]:
|
| 84 |
+
"""
|
| 85 |
+
Primary implementation of glibc_version_string using os.confstr.
|
| 86 |
+
"""
|
| 87 |
+
# os.confstr is quite a bit faster than ctypes.DLL. It's also less likely
|
| 88 |
+
# to be broken or missing. This strategy is used in the standard library
|
| 89 |
+
# platform module.
|
| 90 |
+
# https://github.com/python/cpython/blob/fcf1d003bf4f0100c/Lib/platform.py#L175-L183
|
| 91 |
+
try:
|
| 92 |
+
# Should be a string like "glibc 2.17".
|
| 93 |
+
version_string: Optional[str] = os.confstr("CS_GNU_LIBC_VERSION")
|
| 94 |
+
assert version_string is not None
|
| 95 |
+
_, version = version_string.rsplit()
|
| 96 |
+
except (AssertionError, AttributeError, OSError, ValueError):
|
| 97 |
+
# os.confstr() or CS_GNU_LIBC_VERSION not available (or a bad value)...
|
| 98 |
+
return None
|
| 99 |
+
return version
|
| 100 |
+
|
| 101 |
+
|
| 102 |
+
def _glibc_version_string_ctypes() -> Optional[str]:
|
| 103 |
+
"""
|
| 104 |
+
Fallback implementation of glibc_version_string using ctypes.
|
| 105 |
+
"""
|
| 106 |
+
try:
|
| 107 |
+
import ctypes
|
| 108 |
+
except ImportError:
|
| 109 |
+
return None
|
| 110 |
+
|
| 111 |
+
# ctypes.CDLL(None) internally calls dlopen(NULL), and as the dlopen
|
| 112 |
+
# manpage says, "If filename is NULL, then the returned handle is for the
|
| 113 |
+
# main program". This way we can let the linker do the work to figure out
|
| 114 |
+
# which libc our process is actually using.
|
| 115 |
+
#
|
| 116 |
+
# We must also handle the special case where the executable is not a
|
| 117 |
+
# dynamically linked executable. This can occur when using musl libc,
|
| 118 |
+
# for example. In this situation, dlopen() will error, leading to an
|
| 119 |
+
# OSError. Interestingly, at least in the case of musl, there is no
|
| 120 |
+
# errno set on the OSError. The single string argument used to construct
|
| 121 |
+
# OSError comes from libc itself and is therefore not portable to
|
| 122 |
+
# hard code here. In any case, failure to call dlopen() means we
|
| 123 |
+
# can proceed, so we bail on our attempt.
|
| 124 |
+
try:
|
| 125 |
+
process_namespace = ctypes.CDLL(None)
|
| 126 |
+
except OSError:
|
| 127 |
+
return None
|
| 128 |
+
|
| 129 |
+
try:
|
| 130 |
+
gnu_get_libc_version = process_namespace.gnu_get_libc_version
|
| 131 |
+
except AttributeError:
|
| 132 |
+
# Symbol doesn't exist -> therefore, we are not linked to
|
| 133 |
+
# glibc.
|
| 134 |
+
return None
|
| 135 |
+
|
| 136 |
+
# Call gnu_get_libc_version, which returns a string like "2.5"
|
| 137 |
+
gnu_get_libc_version.restype = ctypes.c_char_p
|
| 138 |
+
version_str: str = gnu_get_libc_version()
|
| 139 |
+
# py2 / py3 compatibility:
|
| 140 |
+
if not isinstance(version_str, str):
|
| 141 |
+
version_str = version_str.decode("ascii")
|
| 142 |
+
|
| 143 |
+
return version_str
|
| 144 |
+
|
| 145 |
+
|
| 146 |
+
def _glibc_version_string() -> Optional[str]:
|
| 147 |
+
"""Returns glibc version string, or None if not using glibc."""
|
| 148 |
+
return _glibc_version_string_confstr() or _glibc_version_string_ctypes()
|
| 149 |
+
|
| 150 |
+
|
| 151 |
+
def _parse_glibc_version(version_str: str) -> Tuple[int, int]:
|
| 152 |
+
"""Parse glibc version.
|
| 153 |
+
|
| 154 |
+
We use a regexp instead of str.split because we want to discard any
|
| 155 |
+
random junk that might come after the minor version -- this might happen
|
| 156 |
+
in patched/forked versions of glibc (e.g. Linaro's version of glibc
|
| 157 |
+
uses version strings like "2.20-2014.11"). See gh-3588.
|
| 158 |
+
"""
|
| 159 |
+
m = re.match(r"(?P<major>[0-9]+)\.(?P<minor>[0-9]+)", version_str)
|
| 160 |
+
if not m:
|
| 161 |
+
warnings.warn(
|
| 162 |
+
f"Expected glibc version with 2 components major.minor,"
|
| 163 |
+
f" got: {version_str}",
|
| 164 |
+
RuntimeWarning,
|
| 165 |
+
)
|
| 166 |
+
return -1, -1
|
| 167 |
+
return int(m.group("major")), int(m.group("minor"))
|
| 168 |
+
|
| 169 |
+
|
| 170 |
+
@functools.lru_cache
|
| 171 |
+
def _get_glibc_version() -> Tuple[int, int]:
|
| 172 |
+
version_str = _glibc_version_string()
|
| 173 |
+
if version_str is None:
|
| 174 |
+
return (-1, -1)
|
| 175 |
+
return _parse_glibc_version(version_str)
|
| 176 |
+
|
| 177 |
+
|
| 178 |
+
# From PEP 513, PEP 600
|
| 179 |
+
def _is_compatible(arch: str, version: _GLibCVersion) -> bool:
|
| 180 |
+
sys_glibc = _get_glibc_version()
|
| 181 |
+
if sys_glibc < version:
|
| 182 |
+
return False
|
| 183 |
+
# Check for presence of _manylinux module.
|
| 184 |
+
try:
|
| 185 |
+
import _manylinux
|
| 186 |
+
except ImportError:
|
| 187 |
+
return True
|
| 188 |
+
if hasattr(_manylinux, "manylinux_compatible"):
|
| 189 |
+
result = _manylinux.manylinux_compatible(version[0], version[1], arch)
|
| 190 |
+
if result is not None:
|
| 191 |
+
return bool(result)
|
| 192 |
+
return True
|
| 193 |
+
if version == _GLibCVersion(2, 5):
|
| 194 |
+
if hasattr(_manylinux, "manylinux1_compatible"):
|
| 195 |
+
return bool(_manylinux.manylinux1_compatible)
|
| 196 |
+
if version == _GLibCVersion(2, 12):
|
| 197 |
+
if hasattr(_manylinux, "manylinux2010_compatible"):
|
| 198 |
+
return bool(_manylinux.manylinux2010_compatible)
|
| 199 |
+
if version == _GLibCVersion(2, 17):
|
| 200 |
+
if hasattr(_manylinux, "manylinux2014_compatible"):
|
| 201 |
+
return bool(_manylinux.manylinux2014_compatible)
|
| 202 |
+
return True
|
| 203 |
+
|
| 204 |
+
|
| 205 |
+
_LEGACY_MANYLINUX_MAP = {
|
| 206 |
+
# CentOS 7 w/ glibc 2.17 (PEP 599)
|
| 207 |
+
(2, 17): "manylinux2014",
|
| 208 |
+
# CentOS 6 w/ glibc 2.12 (PEP 571)
|
| 209 |
+
(2, 12): "manylinux2010",
|
| 210 |
+
# CentOS 5 w/ glibc 2.5 (PEP 513)
|
| 211 |
+
(2, 5): "manylinux1",
|
| 212 |
+
}
|
| 213 |
+
|
| 214 |
+
|
| 215 |
+
def platform_tags(archs: Sequence[str]) -> Iterator[str]:
|
| 216 |
+
"""Generate manylinux tags compatible to the current platform.
|
| 217 |
+
|
| 218 |
+
:param archs: Sequence of compatible architectures.
|
| 219 |
+
The first one shall be the closest to the actual architecture and be the part of
|
| 220 |
+
platform tag after the ``linux_`` prefix, e.g. ``x86_64``.
|
| 221 |
+
The ``linux_`` prefix is assumed as a prerequisite for the current platform to
|
| 222 |
+
be manylinux-compatible.
|
| 223 |
+
|
| 224 |
+
:returns: An iterator of compatible manylinux tags.
|
| 225 |
+
"""
|
| 226 |
+
if not _have_compatible_abi(sys.executable, archs):
|
| 227 |
+
return
|
| 228 |
+
# Oldest glibc to be supported regardless of architecture is (2, 17).
|
| 229 |
+
too_old_glibc2 = _GLibCVersion(2, 16)
|
| 230 |
+
if set(archs) & {"x86_64", "i686"}:
|
| 231 |
+
# On x86/i686 also oldest glibc to be supported is (2, 5).
|
| 232 |
+
too_old_glibc2 = _GLibCVersion(2, 4)
|
| 233 |
+
current_glibc = _GLibCVersion(*_get_glibc_version())
|
| 234 |
+
glibc_max_list = [current_glibc]
|
| 235 |
+
# We can assume compatibility across glibc major versions.
|
| 236 |
+
# https://sourceware.org/bugzilla/show_bug.cgi?id=24636
|
| 237 |
+
#
|
| 238 |
+
# Build a list of maximum glibc versions so that we can
|
| 239 |
+
# output the canonical list of all glibc from current_glibc
|
| 240 |
+
# down to too_old_glibc2, including all intermediary versions.
|
| 241 |
+
for glibc_major in range(current_glibc.major - 1, 1, -1):
|
| 242 |
+
glibc_minor = _LAST_GLIBC_MINOR[glibc_major]
|
| 243 |
+
glibc_max_list.append(_GLibCVersion(glibc_major, glibc_minor))
|
| 244 |
+
for arch in archs:
|
| 245 |
+
for glibc_max in glibc_max_list:
|
| 246 |
+
if glibc_max.major == too_old_glibc2.major:
|
| 247 |
+
min_minor = too_old_glibc2.minor
|
| 248 |
+
else:
|
| 249 |
+
# For other glibc major versions oldest supported is (x, 0).
|
| 250 |
+
min_minor = -1
|
| 251 |
+
for glibc_minor in range(glibc_max.minor, min_minor, -1):
|
| 252 |
+
glibc_version = _GLibCVersion(glibc_max.major, glibc_minor)
|
| 253 |
+
tag = "manylinux_{}_{}".format(*glibc_version)
|
| 254 |
+
if _is_compatible(arch, glibc_version):
|
| 255 |
+
yield f"{tag}_{arch}"
|
| 256 |
+
# Handle the legacy manylinux1, manylinux2010, manylinux2014 tags.
|
| 257 |
+
if glibc_version in _LEGACY_MANYLINUX_MAP:
|
| 258 |
+
legacy_tag = _LEGACY_MANYLINUX_MAP[glibc_version]
|
| 259 |
+
if _is_compatible(arch, glibc_version):
|
| 260 |
+
yield f"{legacy_tag}_{arch}"
|
code/LaDi-RL-old-qwen-cod/LaDi-RL-old-qwen-cod/venv/lib64/python3.10/site-packages/setuptools/_vendor/wheel/vendored/packaging/_musllinux.py
ADDED
|
@@ -0,0 +1,83 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
"""PEP 656 support.
|
| 2 |
+
|
| 3 |
+
This module implements logic to detect if the currently running Python is
|
| 4 |
+
linked against musl, and what musl version is used.
|
| 5 |
+
"""
|
| 6 |
+
|
| 7 |
+
import functools
|
| 8 |
+
import re
|
| 9 |
+
import subprocess
|
| 10 |
+
import sys
|
| 11 |
+
from typing import Iterator, NamedTuple, Optional, Sequence
|
| 12 |
+
|
| 13 |
+
from ._elffile import ELFFile
|
| 14 |
+
|
| 15 |
+
|
| 16 |
+
class _MuslVersion(NamedTuple):
|
| 17 |
+
major: int
|
| 18 |
+
minor: int
|
| 19 |
+
|
| 20 |
+
|
| 21 |
+
def _parse_musl_version(output: str) -> Optional[_MuslVersion]:
|
| 22 |
+
lines = [n for n in (n.strip() for n in output.splitlines()) if n]
|
| 23 |
+
if len(lines) < 2 or lines[0][:4] != "musl":
|
| 24 |
+
return None
|
| 25 |
+
m = re.match(r"Version (\d+)\.(\d+)", lines[1])
|
| 26 |
+
if not m:
|
| 27 |
+
return None
|
| 28 |
+
return _MuslVersion(major=int(m.group(1)), minor=int(m.group(2)))
|
| 29 |
+
|
| 30 |
+
|
| 31 |
+
@functools.lru_cache
|
| 32 |
+
def _get_musl_version(executable: str) -> Optional[_MuslVersion]:
|
| 33 |
+
"""Detect currently-running musl runtime version.
|
| 34 |
+
|
| 35 |
+
This is done by checking the specified executable's dynamic linking
|
| 36 |
+
information, and invoking the loader to parse its output for a version
|
| 37 |
+
string. If the loader is musl, the output would be something like::
|
| 38 |
+
|
| 39 |
+
musl libc (x86_64)
|
| 40 |
+
Version 1.2.2
|
| 41 |
+
Dynamic Program Loader
|
| 42 |
+
"""
|
| 43 |
+
try:
|
| 44 |
+
with open(executable, "rb") as f:
|
| 45 |
+
ld = ELFFile(f).interpreter
|
| 46 |
+
except (OSError, TypeError, ValueError):
|
| 47 |
+
return None
|
| 48 |
+
if ld is None or "musl" not in ld:
|
| 49 |
+
return None
|
| 50 |
+
proc = subprocess.run([ld], stderr=subprocess.PIPE, text=True)
|
| 51 |
+
return _parse_musl_version(proc.stderr)
|
| 52 |
+
|
| 53 |
+
|
| 54 |
+
def platform_tags(archs: Sequence[str]) -> Iterator[str]:
|
| 55 |
+
"""Generate musllinux tags compatible to the current platform.
|
| 56 |
+
|
| 57 |
+
:param archs: Sequence of compatible architectures.
|
| 58 |
+
The first one shall be the closest to the actual architecture and be the part of
|
| 59 |
+
platform tag after the ``linux_`` prefix, e.g. ``x86_64``.
|
| 60 |
+
The ``linux_`` prefix is assumed as a prerequisite for the current platform to
|
| 61 |
+
be musllinux-compatible.
|
| 62 |
+
|
| 63 |
+
:returns: An iterator of compatible musllinux tags.
|
| 64 |
+
"""
|
| 65 |
+
sys_musl = _get_musl_version(sys.executable)
|
| 66 |
+
if sys_musl is None: # Python not dynamically linked against musl.
|
| 67 |
+
return
|
| 68 |
+
for arch in archs:
|
| 69 |
+
for minor in range(sys_musl.minor, -1, -1):
|
| 70 |
+
yield f"musllinux_{sys_musl.major}_{minor}_{arch}"
|
| 71 |
+
|
| 72 |
+
|
| 73 |
+
if __name__ == "__main__": # pragma: no cover
|
| 74 |
+
import sysconfig
|
| 75 |
+
|
| 76 |
+
plat = sysconfig.get_platform()
|
| 77 |
+
assert plat.startswith("linux-"), "not linux"
|
| 78 |
+
|
| 79 |
+
print("plat:", plat)
|
| 80 |
+
print("musl:", _get_musl_version(sys.executable))
|
| 81 |
+
print("tags:", end=" ")
|
| 82 |
+
for t in platform_tags(re.sub(r"[.-]", "_", plat.split("-", 1)[-1])):
|
| 83 |
+
print(t, end="\n ")
|
code/LaDi-RL-old-qwen-cod/LaDi-RL-old-qwen-cod/venv/lib64/python3.10/site-packages/setuptools/_vendor/wheel/vendored/packaging/_parser.py
ADDED
|
@@ -0,0 +1,356 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|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
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
"""Handwritten parser of dependency specifiers.
|
| 2 |
+
|
| 3 |
+
The docstring for each __parse_* function contains EBNF-inspired grammar representing
|
| 4 |
+
the implementation.
|
| 5 |
+
"""
|
| 6 |
+
|
| 7 |
+
import ast
|
| 8 |
+
from typing import Any, List, NamedTuple, Optional, Tuple, Union
|
| 9 |
+
|
| 10 |
+
from ._tokenizer import DEFAULT_RULES, Tokenizer
|
| 11 |
+
|
| 12 |
+
|
| 13 |
+
class Node:
|
| 14 |
+
def __init__(self, value: str) -> None:
|
| 15 |
+
self.value = value
|
| 16 |
+
|
| 17 |
+
def __str__(self) -> str:
|
| 18 |
+
return self.value
|
| 19 |
+
|
| 20 |
+
def __repr__(self) -> str:
|
| 21 |
+
return f"<{self.__class__.__name__}('{self}')>"
|
| 22 |
+
|
| 23 |
+
def serialize(self) -> str:
|
| 24 |
+
raise NotImplementedError
|
| 25 |
+
|
| 26 |
+
|
| 27 |
+
class Variable(Node):
|
| 28 |
+
def serialize(self) -> str:
|
| 29 |
+
return str(self)
|
| 30 |
+
|
| 31 |
+
|
| 32 |
+
class Value(Node):
|
| 33 |
+
def serialize(self) -> str:
|
| 34 |
+
return f'"{self}"'
|
| 35 |
+
|
| 36 |
+
|
| 37 |
+
class Op(Node):
|
| 38 |
+
def serialize(self) -> str:
|
| 39 |
+
return str(self)
|
| 40 |
+
|
| 41 |
+
|
| 42 |
+
MarkerVar = Union[Variable, Value]
|
| 43 |
+
MarkerItem = Tuple[MarkerVar, Op, MarkerVar]
|
| 44 |
+
# MarkerAtom = Union[MarkerItem, List["MarkerAtom"]]
|
| 45 |
+
# MarkerList = List[Union["MarkerList", MarkerAtom, str]]
|
| 46 |
+
# mypy does not support recursive type definition
|
| 47 |
+
# https://github.com/python/mypy/issues/731
|
| 48 |
+
MarkerAtom = Any
|
| 49 |
+
MarkerList = List[Any]
|
| 50 |
+
|
| 51 |
+
|
| 52 |
+
class ParsedRequirement(NamedTuple):
|
| 53 |
+
name: str
|
| 54 |
+
url: str
|
| 55 |
+
extras: List[str]
|
| 56 |
+
specifier: str
|
| 57 |
+
marker: Optional[MarkerList]
|
| 58 |
+
|
| 59 |
+
|
| 60 |
+
# --------------------------------------------------------------------------------------
|
| 61 |
+
# Recursive descent parser for dependency specifier
|
| 62 |
+
# --------------------------------------------------------------------------------------
|
| 63 |
+
def parse_requirement(source: str) -> ParsedRequirement:
|
| 64 |
+
return _parse_requirement(Tokenizer(source, rules=DEFAULT_RULES))
|
| 65 |
+
|
| 66 |
+
|
| 67 |
+
def _parse_requirement(tokenizer: Tokenizer) -> ParsedRequirement:
|
| 68 |
+
"""
|
| 69 |
+
requirement = WS? IDENTIFIER WS? extras WS? requirement_details
|
| 70 |
+
"""
|
| 71 |
+
tokenizer.consume("WS")
|
| 72 |
+
|
| 73 |
+
name_token = tokenizer.expect(
|
| 74 |
+
"IDENTIFIER", expected="package name at the start of dependency specifier"
|
| 75 |
+
)
|
| 76 |
+
name = name_token.text
|
| 77 |
+
tokenizer.consume("WS")
|
| 78 |
+
|
| 79 |
+
extras = _parse_extras(tokenizer)
|
| 80 |
+
tokenizer.consume("WS")
|
| 81 |
+
|
| 82 |
+
url, specifier, marker = _parse_requirement_details(tokenizer)
|
| 83 |
+
tokenizer.expect("END", expected="end of dependency specifier")
|
| 84 |
+
|
| 85 |
+
return ParsedRequirement(name, url, extras, specifier, marker)
|
| 86 |
+
|
| 87 |
+
|
| 88 |
+
def _parse_requirement_details(
|
| 89 |
+
tokenizer: Tokenizer,
|
| 90 |
+
) -> Tuple[str, str, Optional[MarkerList]]:
|
| 91 |
+
"""
|
| 92 |
+
requirement_details = AT URL (WS requirement_marker?)?
|
| 93 |
+
| specifier WS? (requirement_marker)?
|
| 94 |
+
"""
|
| 95 |
+
|
| 96 |
+
specifier = ""
|
| 97 |
+
url = ""
|
| 98 |
+
marker = None
|
| 99 |
+
|
| 100 |
+
if tokenizer.check("AT"):
|
| 101 |
+
tokenizer.read()
|
| 102 |
+
tokenizer.consume("WS")
|
| 103 |
+
|
| 104 |
+
url_start = tokenizer.position
|
| 105 |
+
url = tokenizer.expect("URL", expected="URL after @").text
|
| 106 |
+
if tokenizer.check("END", peek=True):
|
| 107 |
+
return (url, specifier, marker)
|
| 108 |
+
|
| 109 |
+
tokenizer.expect("WS", expected="whitespace after URL")
|
| 110 |
+
|
| 111 |
+
# The input might end after whitespace.
|
| 112 |
+
if tokenizer.check("END", peek=True):
|
| 113 |
+
return (url, specifier, marker)
|
| 114 |
+
|
| 115 |
+
marker = _parse_requirement_marker(
|
| 116 |
+
tokenizer, span_start=url_start, after="URL and whitespace"
|
| 117 |
+
)
|
| 118 |
+
else:
|
| 119 |
+
specifier_start = tokenizer.position
|
| 120 |
+
specifier = _parse_specifier(tokenizer)
|
| 121 |
+
tokenizer.consume("WS")
|
| 122 |
+
|
| 123 |
+
if tokenizer.check("END", peek=True):
|
| 124 |
+
return (url, specifier, marker)
|
| 125 |
+
|
| 126 |
+
marker = _parse_requirement_marker(
|
| 127 |
+
tokenizer,
|
| 128 |
+
span_start=specifier_start,
|
| 129 |
+
after=(
|
| 130 |
+
"version specifier"
|
| 131 |
+
if specifier
|
| 132 |
+
else "name and no valid version specifier"
|
| 133 |
+
),
|
| 134 |
+
)
|
| 135 |
+
|
| 136 |
+
return (url, specifier, marker)
|
| 137 |
+
|
| 138 |
+
|
| 139 |
+
def _parse_requirement_marker(
|
| 140 |
+
tokenizer: Tokenizer, *, span_start: int, after: str
|
| 141 |
+
) -> MarkerList:
|
| 142 |
+
"""
|
| 143 |
+
requirement_marker = SEMICOLON marker WS?
|
| 144 |
+
"""
|
| 145 |
+
|
| 146 |
+
if not tokenizer.check("SEMICOLON"):
|
| 147 |
+
tokenizer.raise_syntax_error(
|
| 148 |
+
f"Expected end or semicolon (after {after})",
|
| 149 |
+
span_start=span_start,
|
| 150 |
+
)
|
| 151 |
+
tokenizer.read()
|
| 152 |
+
|
| 153 |
+
marker = _parse_marker(tokenizer)
|
| 154 |
+
tokenizer.consume("WS")
|
| 155 |
+
|
| 156 |
+
return marker
|
| 157 |
+
|
| 158 |
+
|
| 159 |
+
def _parse_extras(tokenizer: Tokenizer) -> List[str]:
|
| 160 |
+
"""
|
| 161 |
+
extras = (LEFT_BRACKET wsp* extras_list? wsp* RIGHT_BRACKET)?
|
| 162 |
+
"""
|
| 163 |
+
if not tokenizer.check("LEFT_BRACKET", peek=True):
|
| 164 |
+
return []
|
| 165 |
+
|
| 166 |
+
with tokenizer.enclosing_tokens(
|
| 167 |
+
"LEFT_BRACKET",
|
| 168 |
+
"RIGHT_BRACKET",
|
| 169 |
+
around="extras",
|
| 170 |
+
):
|
| 171 |
+
tokenizer.consume("WS")
|
| 172 |
+
extras = _parse_extras_list(tokenizer)
|
| 173 |
+
tokenizer.consume("WS")
|
| 174 |
+
|
| 175 |
+
return extras
|
| 176 |
+
|
| 177 |
+
|
| 178 |
+
def _parse_extras_list(tokenizer: Tokenizer) -> List[str]:
|
| 179 |
+
"""
|
| 180 |
+
extras_list = identifier (wsp* ',' wsp* identifier)*
|
| 181 |
+
"""
|
| 182 |
+
extras: List[str] = []
|
| 183 |
+
|
| 184 |
+
if not tokenizer.check("IDENTIFIER"):
|
| 185 |
+
return extras
|
| 186 |
+
|
| 187 |
+
extras.append(tokenizer.read().text)
|
| 188 |
+
|
| 189 |
+
while True:
|
| 190 |
+
tokenizer.consume("WS")
|
| 191 |
+
if tokenizer.check("IDENTIFIER", peek=True):
|
| 192 |
+
tokenizer.raise_syntax_error("Expected comma between extra names")
|
| 193 |
+
elif not tokenizer.check("COMMA"):
|
| 194 |
+
break
|
| 195 |
+
|
| 196 |
+
tokenizer.read()
|
| 197 |
+
tokenizer.consume("WS")
|
| 198 |
+
|
| 199 |
+
extra_token = tokenizer.expect("IDENTIFIER", expected="extra name after comma")
|
| 200 |
+
extras.append(extra_token.text)
|
| 201 |
+
|
| 202 |
+
return extras
|
| 203 |
+
|
| 204 |
+
|
| 205 |
+
def _parse_specifier(tokenizer: Tokenizer) -> str:
|
| 206 |
+
"""
|
| 207 |
+
specifier = LEFT_PARENTHESIS WS? version_many WS? RIGHT_PARENTHESIS
|
| 208 |
+
| WS? version_many WS?
|
| 209 |
+
"""
|
| 210 |
+
with tokenizer.enclosing_tokens(
|
| 211 |
+
"LEFT_PARENTHESIS",
|
| 212 |
+
"RIGHT_PARENTHESIS",
|
| 213 |
+
around="version specifier",
|
| 214 |
+
):
|
| 215 |
+
tokenizer.consume("WS")
|
| 216 |
+
parsed_specifiers = _parse_version_many(tokenizer)
|
| 217 |
+
tokenizer.consume("WS")
|
| 218 |
+
|
| 219 |
+
return parsed_specifiers
|
| 220 |
+
|
| 221 |
+
|
| 222 |
+
def _parse_version_many(tokenizer: Tokenizer) -> str:
|
| 223 |
+
"""
|
| 224 |
+
version_many = (SPECIFIER (WS? COMMA WS? SPECIFIER)*)?
|
| 225 |
+
"""
|
| 226 |
+
parsed_specifiers = ""
|
| 227 |
+
while tokenizer.check("SPECIFIER"):
|
| 228 |
+
span_start = tokenizer.position
|
| 229 |
+
parsed_specifiers += tokenizer.read().text
|
| 230 |
+
if tokenizer.check("VERSION_PREFIX_TRAIL", peek=True):
|
| 231 |
+
tokenizer.raise_syntax_error(
|
| 232 |
+
".* suffix can only be used with `==` or `!=` operators",
|
| 233 |
+
span_start=span_start,
|
| 234 |
+
span_end=tokenizer.position + 1,
|
| 235 |
+
)
|
| 236 |
+
if tokenizer.check("VERSION_LOCAL_LABEL_TRAIL", peek=True):
|
| 237 |
+
tokenizer.raise_syntax_error(
|
| 238 |
+
"Local version label can only be used with `==` or `!=` operators",
|
| 239 |
+
span_start=span_start,
|
| 240 |
+
span_end=tokenizer.position,
|
| 241 |
+
)
|
| 242 |
+
tokenizer.consume("WS")
|
| 243 |
+
if not tokenizer.check("COMMA"):
|
| 244 |
+
break
|
| 245 |
+
parsed_specifiers += tokenizer.read().text
|
| 246 |
+
tokenizer.consume("WS")
|
| 247 |
+
|
| 248 |
+
return parsed_specifiers
|
| 249 |
+
|
| 250 |
+
|
| 251 |
+
# --------------------------------------------------------------------------------------
|
| 252 |
+
# Recursive descent parser for marker expression
|
| 253 |
+
# --------------------------------------------------------------------------------------
|
| 254 |
+
def parse_marker(source: str) -> MarkerList:
|
| 255 |
+
return _parse_full_marker(Tokenizer(source, rules=DEFAULT_RULES))
|
| 256 |
+
|
| 257 |
+
|
| 258 |
+
def _parse_full_marker(tokenizer: Tokenizer) -> MarkerList:
|
| 259 |
+
retval = _parse_marker(tokenizer)
|
| 260 |
+
tokenizer.expect("END", expected="end of marker expression")
|
| 261 |
+
return retval
|
| 262 |
+
|
| 263 |
+
|
| 264 |
+
def _parse_marker(tokenizer: Tokenizer) -> MarkerList:
|
| 265 |
+
"""
|
| 266 |
+
marker = marker_atom (BOOLOP marker_atom)+
|
| 267 |
+
"""
|
| 268 |
+
expression = [_parse_marker_atom(tokenizer)]
|
| 269 |
+
while tokenizer.check("BOOLOP"):
|
| 270 |
+
token = tokenizer.read()
|
| 271 |
+
expr_right = _parse_marker_atom(tokenizer)
|
| 272 |
+
expression.extend((token.text, expr_right))
|
| 273 |
+
return expression
|
| 274 |
+
|
| 275 |
+
|
| 276 |
+
def _parse_marker_atom(tokenizer: Tokenizer) -> MarkerAtom:
|
| 277 |
+
"""
|
| 278 |
+
marker_atom = WS? LEFT_PARENTHESIS WS? marker WS? RIGHT_PARENTHESIS WS?
|
| 279 |
+
| WS? marker_item WS?
|
| 280 |
+
"""
|
| 281 |
+
|
| 282 |
+
tokenizer.consume("WS")
|
| 283 |
+
if tokenizer.check("LEFT_PARENTHESIS", peek=True):
|
| 284 |
+
with tokenizer.enclosing_tokens(
|
| 285 |
+
"LEFT_PARENTHESIS",
|
| 286 |
+
"RIGHT_PARENTHESIS",
|
| 287 |
+
around="marker expression",
|
| 288 |
+
):
|
| 289 |
+
tokenizer.consume("WS")
|
| 290 |
+
marker: MarkerAtom = _parse_marker(tokenizer)
|
| 291 |
+
tokenizer.consume("WS")
|
| 292 |
+
else:
|
| 293 |
+
marker = _parse_marker_item(tokenizer)
|
| 294 |
+
tokenizer.consume("WS")
|
| 295 |
+
return marker
|
| 296 |
+
|
| 297 |
+
|
| 298 |
+
def _parse_marker_item(tokenizer: Tokenizer) -> MarkerItem:
|
| 299 |
+
"""
|
| 300 |
+
marker_item = WS? marker_var WS? marker_op WS? marker_var WS?
|
| 301 |
+
"""
|
| 302 |
+
tokenizer.consume("WS")
|
| 303 |
+
marker_var_left = _parse_marker_var(tokenizer)
|
| 304 |
+
tokenizer.consume("WS")
|
| 305 |
+
marker_op = _parse_marker_op(tokenizer)
|
| 306 |
+
tokenizer.consume("WS")
|
| 307 |
+
marker_var_right = _parse_marker_var(tokenizer)
|
| 308 |
+
tokenizer.consume("WS")
|
| 309 |
+
return (marker_var_left, marker_op, marker_var_right)
|
| 310 |
+
|
| 311 |
+
|
| 312 |
+
def _parse_marker_var(tokenizer: Tokenizer) -> MarkerVar:
|
| 313 |
+
"""
|
| 314 |
+
marker_var = VARIABLE | QUOTED_STRING
|
| 315 |
+
"""
|
| 316 |
+
if tokenizer.check("VARIABLE"):
|
| 317 |
+
return process_env_var(tokenizer.read().text.replace(".", "_"))
|
| 318 |
+
elif tokenizer.check("QUOTED_STRING"):
|
| 319 |
+
return process_python_str(tokenizer.read().text)
|
| 320 |
+
else:
|
| 321 |
+
tokenizer.raise_syntax_error(
|
| 322 |
+
message="Expected a marker variable or quoted string"
|
| 323 |
+
)
|
| 324 |
+
|
| 325 |
+
|
| 326 |
+
def process_env_var(env_var: str) -> Variable:
|
| 327 |
+
if env_var in ("platform_python_implementation", "python_implementation"):
|
| 328 |
+
return Variable("platform_python_implementation")
|
| 329 |
+
else:
|
| 330 |
+
return Variable(env_var)
|
| 331 |
+
|
| 332 |
+
|
| 333 |
+
def process_python_str(python_str: str) -> Value:
|
| 334 |
+
value = ast.literal_eval(python_str)
|
| 335 |
+
return Value(str(value))
|
| 336 |
+
|
| 337 |
+
|
| 338 |
+
def _parse_marker_op(tokenizer: Tokenizer) -> Op:
|
| 339 |
+
"""
|
| 340 |
+
marker_op = IN | NOT IN | OP
|
| 341 |
+
"""
|
| 342 |
+
if tokenizer.check("IN"):
|
| 343 |
+
tokenizer.read()
|
| 344 |
+
return Op("in")
|
| 345 |
+
elif tokenizer.check("NOT"):
|
| 346 |
+
tokenizer.read()
|
| 347 |
+
tokenizer.expect("WS", expected="whitespace after 'not'")
|
| 348 |
+
tokenizer.expect("IN", expected="'in' after 'not'")
|
| 349 |
+
return Op("not in")
|
| 350 |
+
elif tokenizer.check("OP"):
|
| 351 |
+
return Op(tokenizer.read().text)
|
| 352 |
+
else:
|
| 353 |
+
return tokenizer.raise_syntax_error(
|
| 354 |
+
"Expected marker operator, one of "
|
| 355 |
+
"<=, <, !=, ==, >=, >, ~=, ===, in, not in"
|
| 356 |
+
)
|
code/LaDi-RL-old-qwen-cod/LaDi-RL-old-qwen-cod/venv/lib64/python3.10/site-packages/setuptools/_vendor/wheel/vendored/packaging/_structures.py
ADDED
|
@@ -0,0 +1,61 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# This file is dual licensed under the terms of the Apache License, Version
|
| 2 |
+
# 2.0, and the BSD License. See the LICENSE file in the root of this repository
|
| 3 |
+
# for complete details.
|
| 4 |
+
|
| 5 |
+
|
| 6 |
+
class InfinityType:
|
| 7 |
+
def __repr__(self) -> str:
|
| 8 |
+
return "Infinity"
|
| 9 |
+
|
| 10 |
+
def __hash__(self) -> int:
|
| 11 |
+
return hash(repr(self))
|
| 12 |
+
|
| 13 |
+
def __lt__(self, other: object) -> bool:
|
| 14 |
+
return False
|
| 15 |
+
|
| 16 |
+
def __le__(self, other: object) -> bool:
|
| 17 |
+
return False
|
| 18 |
+
|
| 19 |
+
def __eq__(self, other: object) -> bool:
|
| 20 |
+
return isinstance(other, self.__class__)
|
| 21 |
+
|
| 22 |
+
def __gt__(self, other: object) -> bool:
|
| 23 |
+
return True
|
| 24 |
+
|
| 25 |
+
def __ge__(self, other: object) -> bool:
|
| 26 |
+
return True
|
| 27 |
+
|
| 28 |
+
def __neg__(self: object) -> "NegativeInfinityType":
|
| 29 |
+
return NegativeInfinity
|
| 30 |
+
|
| 31 |
+
|
| 32 |
+
Infinity = InfinityType()
|
| 33 |
+
|
| 34 |
+
|
| 35 |
+
class NegativeInfinityType:
|
| 36 |
+
def __repr__(self) -> str:
|
| 37 |
+
return "-Infinity"
|
| 38 |
+
|
| 39 |
+
def __hash__(self) -> int:
|
| 40 |
+
return hash(repr(self))
|
| 41 |
+
|
| 42 |
+
def __lt__(self, other: object) -> bool:
|
| 43 |
+
return True
|
| 44 |
+
|
| 45 |
+
def __le__(self, other: object) -> bool:
|
| 46 |
+
return True
|
| 47 |
+
|
| 48 |
+
def __eq__(self, other: object) -> bool:
|
| 49 |
+
return isinstance(other, self.__class__)
|
| 50 |
+
|
| 51 |
+
def __gt__(self, other: object) -> bool:
|
| 52 |
+
return False
|
| 53 |
+
|
| 54 |
+
def __ge__(self, other: object) -> bool:
|
| 55 |
+
return False
|
| 56 |
+
|
| 57 |
+
def __neg__(self: object) -> InfinityType:
|
| 58 |
+
return Infinity
|
| 59 |
+
|
| 60 |
+
|
| 61 |
+
NegativeInfinity = NegativeInfinityType()
|
code/LaDi-RL-old-qwen-cod/LaDi-RL-old-qwen-cod/venv/lib64/python3.10/site-packages/setuptools/_vendor/wheel/vendored/packaging/_tokenizer.py
ADDED
|
@@ -0,0 +1,192 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
import contextlib
|
| 2 |
+
import re
|
| 3 |
+
from dataclasses import dataclass
|
| 4 |
+
from typing import Dict, Iterator, NoReturn, Optional, Tuple, Union
|
| 5 |
+
|
| 6 |
+
from .specifiers import Specifier
|
| 7 |
+
|
| 8 |
+
|
| 9 |
+
@dataclass
|
| 10 |
+
class Token:
|
| 11 |
+
name: str
|
| 12 |
+
text: str
|
| 13 |
+
position: int
|
| 14 |
+
|
| 15 |
+
|
| 16 |
+
class ParserSyntaxError(Exception):
|
| 17 |
+
"""The provided source text could not be parsed correctly."""
|
| 18 |
+
|
| 19 |
+
def __init__(
|
| 20 |
+
self,
|
| 21 |
+
message: str,
|
| 22 |
+
*,
|
| 23 |
+
source: str,
|
| 24 |
+
span: Tuple[int, int],
|
| 25 |
+
) -> None:
|
| 26 |
+
self.span = span
|
| 27 |
+
self.message = message
|
| 28 |
+
self.source = source
|
| 29 |
+
|
| 30 |
+
super().__init__()
|
| 31 |
+
|
| 32 |
+
def __str__(self) -> str:
|
| 33 |
+
marker = " " * self.span[0] + "~" * (self.span[1] - self.span[0]) + "^"
|
| 34 |
+
return "\n ".join([self.message, self.source, marker])
|
| 35 |
+
|
| 36 |
+
|
| 37 |
+
DEFAULT_RULES: "Dict[str, Union[str, re.Pattern[str]]]" = {
|
| 38 |
+
"LEFT_PARENTHESIS": r"\(",
|
| 39 |
+
"RIGHT_PARENTHESIS": r"\)",
|
| 40 |
+
"LEFT_BRACKET": r"\[",
|
| 41 |
+
"RIGHT_BRACKET": r"\]",
|
| 42 |
+
"SEMICOLON": r";",
|
| 43 |
+
"COMMA": r",",
|
| 44 |
+
"QUOTED_STRING": re.compile(
|
| 45 |
+
r"""
|
| 46 |
+
(
|
| 47 |
+
('[^']*')
|
| 48 |
+
|
|
| 49 |
+
("[^"]*")
|
| 50 |
+
)
|
| 51 |
+
""",
|
| 52 |
+
re.VERBOSE,
|
| 53 |
+
),
|
| 54 |
+
"OP": r"(===|==|~=|!=|<=|>=|<|>)",
|
| 55 |
+
"BOOLOP": r"\b(or|and)\b",
|
| 56 |
+
"IN": r"\bin\b",
|
| 57 |
+
"NOT": r"\bnot\b",
|
| 58 |
+
"VARIABLE": re.compile(
|
| 59 |
+
r"""
|
| 60 |
+
\b(
|
| 61 |
+
python_version
|
| 62 |
+
|python_full_version
|
| 63 |
+
|os[._]name
|
| 64 |
+
|sys[._]platform
|
| 65 |
+
|platform_(release|system)
|
| 66 |
+
|platform[._](version|machine|python_implementation)
|
| 67 |
+
|python_implementation
|
| 68 |
+
|implementation_(name|version)
|
| 69 |
+
|extra
|
| 70 |
+
)\b
|
| 71 |
+
""",
|
| 72 |
+
re.VERBOSE,
|
| 73 |
+
),
|
| 74 |
+
"SPECIFIER": re.compile(
|
| 75 |
+
Specifier._operator_regex_str + Specifier._version_regex_str,
|
| 76 |
+
re.VERBOSE | re.IGNORECASE,
|
| 77 |
+
),
|
| 78 |
+
"AT": r"\@",
|
| 79 |
+
"URL": r"[^ \t]+",
|
| 80 |
+
"IDENTIFIER": r"\b[a-zA-Z0-9][a-zA-Z0-9._-]*\b",
|
| 81 |
+
"VERSION_PREFIX_TRAIL": r"\.\*",
|
| 82 |
+
"VERSION_LOCAL_LABEL_TRAIL": r"\+[a-z0-9]+(?:[-_\.][a-z0-9]+)*",
|
| 83 |
+
"WS": r"[ \t]+",
|
| 84 |
+
"END": r"$",
|
| 85 |
+
}
|
| 86 |
+
|
| 87 |
+
|
| 88 |
+
class Tokenizer:
|
| 89 |
+
"""Context-sensitive token parsing.
|
| 90 |
+
|
| 91 |
+
Provides methods to examine the input stream to check whether the next token
|
| 92 |
+
matches.
|
| 93 |
+
"""
|
| 94 |
+
|
| 95 |
+
def __init__(
|
| 96 |
+
self,
|
| 97 |
+
source: str,
|
| 98 |
+
*,
|
| 99 |
+
rules: "Dict[str, Union[str, re.Pattern[str]]]",
|
| 100 |
+
) -> None:
|
| 101 |
+
self.source = source
|
| 102 |
+
self.rules: Dict[str, re.Pattern[str]] = {
|
| 103 |
+
name: re.compile(pattern) for name, pattern in rules.items()
|
| 104 |
+
}
|
| 105 |
+
self.next_token: Optional[Token] = None
|
| 106 |
+
self.position = 0
|
| 107 |
+
|
| 108 |
+
def consume(self, name: str) -> None:
|
| 109 |
+
"""Move beyond provided token name, if at current position."""
|
| 110 |
+
if self.check(name):
|
| 111 |
+
self.read()
|
| 112 |
+
|
| 113 |
+
def check(self, name: str, *, peek: bool = False) -> bool:
|
| 114 |
+
"""Check whether the next token has the provided name.
|
| 115 |
+
|
| 116 |
+
By default, if the check succeeds, the token *must* be read before
|
| 117 |
+
another check. If `peek` is set to `True`, the token is not loaded and
|
| 118 |
+
would need to be checked again.
|
| 119 |
+
"""
|
| 120 |
+
assert (
|
| 121 |
+
self.next_token is None
|
| 122 |
+
), f"Cannot check for {name!r}, already have {self.next_token!r}"
|
| 123 |
+
assert name in self.rules, f"Unknown token name: {name!r}"
|
| 124 |
+
|
| 125 |
+
expression = self.rules[name]
|
| 126 |
+
|
| 127 |
+
match = expression.match(self.source, self.position)
|
| 128 |
+
if match is None:
|
| 129 |
+
return False
|
| 130 |
+
if not peek:
|
| 131 |
+
self.next_token = Token(name, match[0], self.position)
|
| 132 |
+
return True
|
| 133 |
+
|
| 134 |
+
def expect(self, name: str, *, expected: str) -> Token:
|
| 135 |
+
"""Expect a certain token name next, failing with a syntax error otherwise.
|
| 136 |
+
|
| 137 |
+
The token is *not* read.
|
| 138 |
+
"""
|
| 139 |
+
if not self.check(name):
|
| 140 |
+
raise self.raise_syntax_error(f"Expected {expected}")
|
| 141 |
+
return self.read()
|
| 142 |
+
|
| 143 |
+
def read(self) -> Token:
|
| 144 |
+
"""Consume the next token and return it."""
|
| 145 |
+
token = self.next_token
|
| 146 |
+
assert token is not None
|
| 147 |
+
|
| 148 |
+
self.position += len(token.text)
|
| 149 |
+
self.next_token = None
|
| 150 |
+
|
| 151 |
+
return token
|
| 152 |
+
|
| 153 |
+
def raise_syntax_error(
|
| 154 |
+
self,
|
| 155 |
+
message: str,
|
| 156 |
+
*,
|
| 157 |
+
span_start: Optional[int] = None,
|
| 158 |
+
span_end: Optional[int] = None,
|
| 159 |
+
) -> NoReturn:
|
| 160 |
+
"""Raise ParserSyntaxError at the given position."""
|
| 161 |
+
span = (
|
| 162 |
+
self.position if span_start is None else span_start,
|
| 163 |
+
self.position if span_end is None else span_end,
|
| 164 |
+
)
|
| 165 |
+
raise ParserSyntaxError(
|
| 166 |
+
message,
|
| 167 |
+
source=self.source,
|
| 168 |
+
span=span,
|
| 169 |
+
)
|
| 170 |
+
|
| 171 |
+
@contextlib.contextmanager
|
| 172 |
+
def enclosing_tokens(
|
| 173 |
+
self, open_token: str, close_token: str, *, around: str
|
| 174 |
+
) -> Iterator[None]:
|
| 175 |
+
if self.check(open_token):
|
| 176 |
+
open_position = self.position
|
| 177 |
+
self.read()
|
| 178 |
+
else:
|
| 179 |
+
open_position = None
|
| 180 |
+
|
| 181 |
+
yield
|
| 182 |
+
|
| 183 |
+
if open_position is None:
|
| 184 |
+
return
|
| 185 |
+
|
| 186 |
+
if not self.check(close_token):
|
| 187 |
+
self.raise_syntax_error(
|
| 188 |
+
f"Expected matching {close_token} for {open_token}, after {around}",
|
| 189 |
+
span_start=open_position,
|
| 190 |
+
)
|
| 191 |
+
|
| 192 |
+
self.read()
|
code/LaDi-RL-old-qwen-cod/LaDi-RL-old-qwen-cod/venv/lib64/python3.10/site-packages/setuptools/_vendor/wheel/vendored/packaging/markers.py
ADDED
|
@@ -0,0 +1,253 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# This file is dual licensed under the terms of the Apache License, Version
|
| 2 |
+
# 2.0, and the BSD License. See the LICENSE file in the root of this repository
|
| 3 |
+
# for complete details.
|
| 4 |
+
|
| 5 |
+
import operator
|
| 6 |
+
import os
|
| 7 |
+
import platform
|
| 8 |
+
import sys
|
| 9 |
+
from typing import Any, Callable, Dict, List, Optional, Tuple, Union
|
| 10 |
+
|
| 11 |
+
from ._parser import (
|
| 12 |
+
MarkerAtom,
|
| 13 |
+
MarkerList,
|
| 14 |
+
Op,
|
| 15 |
+
Value,
|
| 16 |
+
Variable,
|
| 17 |
+
)
|
| 18 |
+
from ._parser import (
|
| 19 |
+
parse_marker as _parse_marker,
|
| 20 |
+
)
|
| 21 |
+
from ._tokenizer import ParserSyntaxError
|
| 22 |
+
from .specifiers import InvalidSpecifier, Specifier
|
| 23 |
+
from .utils import canonicalize_name
|
| 24 |
+
|
| 25 |
+
__all__ = [
|
| 26 |
+
"InvalidMarker",
|
| 27 |
+
"UndefinedComparison",
|
| 28 |
+
"UndefinedEnvironmentName",
|
| 29 |
+
"Marker",
|
| 30 |
+
"default_environment",
|
| 31 |
+
]
|
| 32 |
+
|
| 33 |
+
Operator = Callable[[str, str], bool]
|
| 34 |
+
|
| 35 |
+
|
| 36 |
+
class InvalidMarker(ValueError):
|
| 37 |
+
"""
|
| 38 |
+
An invalid marker was found, users should refer to PEP 508.
|
| 39 |
+
"""
|
| 40 |
+
|
| 41 |
+
|
| 42 |
+
class UndefinedComparison(ValueError):
|
| 43 |
+
"""
|
| 44 |
+
An invalid operation was attempted on a value that doesn't support it.
|
| 45 |
+
"""
|
| 46 |
+
|
| 47 |
+
|
| 48 |
+
class UndefinedEnvironmentName(ValueError):
|
| 49 |
+
"""
|
| 50 |
+
A name was attempted to be used that does not exist inside of the
|
| 51 |
+
environment.
|
| 52 |
+
"""
|
| 53 |
+
|
| 54 |
+
|
| 55 |
+
def _normalize_extra_values(results: Any) -> Any:
|
| 56 |
+
"""
|
| 57 |
+
Normalize extra values.
|
| 58 |
+
"""
|
| 59 |
+
if isinstance(results[0], tuple):
|
| 60 |
+
lhs, op, rhs = results[0]
|
| 61 |
+
if isinstance(lhs, Variable) and lhs.value == "extra":
|
| 62 |
+
normalized_extra = canonicalize_name(rhs.value)
|
| 63 |
+
rhs = Value(normalized_extra)
|
| 64 |
+
elif isinstance(rhs, Variable) and rhs.value == "extra":
|
| 65 |
+
normalized_extra = canonicalize_name(lhs.value)
|
| 66 |
+
lhs = Value(normalized_extra)
|
| 67 |
+
results[0] = lhs, op, rhs
|
| 68 |
+
return results
|
| 69 |
+
|
| 70 |
+
|
| 71 |
+
def _format_marker(
|
| 72 |
+
marker: Union[List[str], MarkerAtom, str], first: Optional[bool] = True
|
| 73 |
+
) -> str:
|
| 74 |
+
assert isinstance(marker, (list, tuple, str))
|
| 75 |
+
|
| 76 |
+
# Sometimes we have a structure like [[...]] which is a single item list
|
| 77 |
+
# where the single item is itself it's own list. In that case we want skip
|
| 78 |
+
# the rest of this function so that we don't get extraneous () on the
|
| 79 |
+
# outside.
|
| 80 |
+
if (
|
| 81 |
+
isinstance(marker, list)
|
| 82 |
+
and len(marker) == 1
|
| 83 |
+
and isinstance(marker[0], (list, tuple))
|
| 84 |
+
):
|
| 85 |
+
return _format_marker(marker[0])
|
| 86 |
+
|
| 87 |
+
if isinstance(marker, list):
|
| 88 |
+
inner = (_format_marker(m, first=False) for m in marker)
|
| 89 |
+
if first:
|
| 90 |
+
return " ".join(inner)
|
| 91 |
+
else:
|
| 92 |
+
return "(" + " ".join(inner) + ")"
|
| 93 |
+
elif isinstance(marker, tuple):
|
| 94 |
+
return " ".join([m.serialize() for m in marker])
|
| 95 |
+
else:
|
| 96 |
+
return marker
|
| 97 |
+
|
| 98 |
+
|
| 99 |
+
_operators: Dict[str, Operator] = {
|
| 100 |
+
"in": lambda lhs, rhs: lhs in rhs,
|
| 101 |
+
"not in": lambda lhs, rhs: lhs not in rhs,
|
| 102 |
+
"<": operator.lt,
|
| 103 |
+
"<=": operator.le,
|
| 104 |
+
"==": operator.eq,
|
| 105 |
+
"!=": operator.ne,
|
| 106 |
+
">=": operator.ge,
|
| 107 |
+
">": operator.gt,
|
| 108 |
+
}
|
| 109 |
+
|
| 110 |
+
|
| 111 |
+
def _eval_op(lhs: str, op: Op, rhs: str) -> bool:
|
| 112 |
+
try:
|
| 113 |
+
spec = Specifier("".join([op.serialize(), rhs]))
|
| 114 |
+
except InvalidSpecifier:
|
| 115 |
+
pass
|
| 116 |
+
else:
|
| 117 |
+
return spec.contains(lhs, prereleases=True)
|
| 118 |
+
|
| 119 |
+
oper: Optional[Operator] = _operators.get(op.serialize())
|
| 120 |
+
if oper is None:
|
| 121 |
+
raise UndefinedComparison(f"Undefined {op!r} on {lhs!r} and {rhs!r}.")
|
| 122 |
+
|
| 123 |
+
return oper(lhs, rhs)
|
| 124 |
+
|
| 125 |
+
|
| 126 |
+
def _normalize(*values: str, key: str) -> Tuple[str, ...]:
|
| 127 |
+
# PEP 685 – Comparison of extra names for optional distribution dependencies
|
| 128 |
+
# https://peps.python.org/pep-0685/
|
| 129 |
+
# > When comparing extra names, tools MUST normalize the names being
|
| 130 |
+
# > compared using the semantics outlined in PEP 503 for names
|
| 131 |
+
if key == "extra":
|
| 132 |
+
return tuple(canonicalize_name(v) for v in values)
|
| 133 |
+
|
| 134 |
+
# other environment markers don't have such standards
|
| 135 |
+
return values
|
| 136 |
+
|
| 137 |
+
|
| 138 |
+
def _evaluate_markers(markers: MarkerList, environment: Dict[str, str]) -> bool:
|
| 139 |
+
groups: List[List[bool]] = [[]]
|
| 140 |
+
|
| 141 |
+
for marker in markers:
|
| 142 |
+
assert isinstance(marker, (list, tuple, str))
|
| 143 |
+
|
| 144 |
+
if isinstance(marker, list):
|
| 145 |
+
groups[-1].append(_evaluate_markers(marker, environment))
|
| 146 |
+
elif isinstance(marker, tuple):
|
| 147 |
+
lhs, op, rhs = marker
|
| 148 |
+
|
| 149 |
+
if isinstance(lhs, Variable):
|
| 150 |
+
environment_key = lhs.value
|
| 151 |
+
lhs_value = environment[environment_key]
|
| 152 |
+
rhs_value = rhs.value
|
| 153 |
+
else:
|
| 154 |
+
lhs_value = lhs.value
|
| 155 |
+
environment_key = rhs.value
|
| 156 |
+
rhs_value = environment[environment_key]
|
| 157 |
+
|
| 158 |
+
lhs_value, rhs_value = _normalize(lhs_value, rhs_value, key=environment_key)
|
| 159 |
+
groups[-1].append(_eval_op(lhs_value, op, rhs_value))
|
| 160 |
+
else:
|
| 161 |
+
assert marker in ["and", "or"]
|
| 162 |
+
if marker == "or":
|
| 163 |
+
groups.append([])
|
| 164 |
+
|
| 165 |
+
return any(all(item) for item in groups)
|
| 166 |
+
|
| 167 |
+
|
| 168 |
+
def format_full_version(info: "sys._version_info") -> str:
|
| 169 |
+
version = "{0.major}.{0.minor}.{0.micro}".format(info)
|
| 170 |
+
kind = info.releaselevel
|
| 171 |
+
if kind != "final":
|
| 172 |
+
version += kind[0] + str(info.serial)
|
| 173 |
+
return version
|
| 174 |
+
|
| 175 |
+
|
| 176 |
+
def default_environment() -> Dict[str, str]:
|
| 177 |
+
iver = format_full_version(sys.implementation.version)
|
| 178 |
+
implementation_name = sys.implementation.name
|
| 179 |
+
return {
|
| 180 |
+
"implementation_name": implementation_name,
|
| 181 |
+
"implementation_version": iver,
|
| 182 |
+
"os_name": os.name,
|
| 183 |
+
"platform_machine": platform.machine(),
|
| 184 |
+
"platform_release": platform.release(),
|
| 185 |
+
"platform_system": platform.system(),
|
| 186 |
+
"platform_version": platform.version(),
|
| 187 |
+
"python_full_version": platform.python_version(),
|
| 188 |
+
"platform_python_implementation": platform.python_implementation(),
|
| 189 |
+
"python_version": ".".join(platform.python_version_tuple()[:2]),
|
| 190 |
+
"sys_platform": sys.platform,
|
| 191 |
+
}
|
| 192 |
+
|
| 193 |
+
|
| 194 |
+
class Marker:
|
| 195 |
+
def __init__(self, marker: str) -> None:
|
| 196 |
+
# Note: We create a Marker object without calling this constructor in
|
| 197 |
+
# packaging.requirements.Requirement. If any additional logic is
|
| 198 |
+
# added here, make sure to mirror/adapt Requirement.
|
| 199 |
+
try:
|
| 200 |
+
self._markers = _normalize_extra_values(_parse_marker(marker))
|
| 201 |
+
# The attribute `_markers` can be described in terms of a recursive type:
|
| 202 |
+
# MarkerList = List[Union[Tuple[Node, ...], str, MarkerList]]
|
| 203 |
+
#
|
| 204 |
+
# For example, the following expression:
|
| 205 |
+
# python_version > "3.6" or (python_version == "3.6" and os_name == "unix")
|
| 206 |
+
#
|
| 207 |
+
# is parsed into:
|
| 208 |
+
# [
|
| 209 |
+
# (<Variable('python_version')>, <Op('>')>, <Value('3.6')>),
|
| 210 |
+
# 'and',
|
| 211 |
+
# [
|
| 212 |
+
# (<Variable('python_version')>, <Op('==')>, <Value('3.6')>),
|
| 213 |
+
# 'or',
|
| 214 |
+
# (<Variable('os_name')>, <Op('==')>, <Value('unix')>)
|
| 215 |
+
# ]
|
| 216 |
+
# ]
|
| 217 |
+
except ParserSyntaxError as e:
|
| 218 |
+
raise InvalidMarker(str(e)) from e
|
| 219 |
+
|
| 220 |
+
def __str__(self) -> str:
|
| 221 |
+
return _format_marker(self._markers)
|
| 222 |
+
|
| 223 |
+
def __repr__(self) -> str:
|
| 224 |
+
return f"<Marker('{self}')>"
|
| 225 |
+
|
| 226 |
+
def __hash__(self) -> int:
|
| 227 |
+
return hash((self.__class__.__name__, str(self)))
|
| 228 |
+
|
| 229 |
+
def __eq__(self, other: Any) -> bool:
|
| 230 |
+
if not isinstance(other, Marker):
|
| 231 |
+
return NotImplemented
|
| 232 |
+
|
| 233 |
+
return str(self) == str(other)
|
| 234 |
+
|
| 235 |
+
def evaluate(self, environment: Optional[Dict[str, str]] = None) -> bool:
|
| 236 |
+
"""Evaluate a marker.
|
| 237 |
+
|
| 238 |
+
Return the boolean from evaluating the given marker against the
|
| 239 |
+
environment. environment is an optional argument to override all or
|
| 240 |
+
part of the determined environment.
|
| 241 |
+
|
| 242 |
+
The environment is determined from the current Python process.
|
| 243 |
+
"""
|
| 244 |
+
current_environment = default_environment()
|
| 245 |
+
current_environment["extra"] = ""
|
| 246 |
+
if environment is not None:
|
| 247 |
+
current_environment.update(environment)
|
| 248 |
+
# The API used to allow setting extra to None. We need to handle this
|
| 249 |
+
# case for backwards compatibility.
|
| 250 |
+
if current_environment["extra"] is None:
|
| 251 |
+
current_environment["extra"] = ""
|
| 252 |
+
|
| 253 |
+
return _evaluate_markers(self._markers, current_environment)
|
code/LaDi-RL-old-qwen-cod/LaDi-RL-old-qwen-cod/venv/lib64/python3.10/site-packages/setuptools/_vendor/wheel/vendored/packaging/requirements.py
ADDED
|
@@ -0,0 +1,90 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# This file is dual licensed under the terms of the Apache License, Version
|
| 2 |
+
# 2.0, and the BSD License. See the LICENSE file in the root of this repository
|
| 3 |
+
# for complete details.
|
| 4 |
+
|
| 5 |
+
from typing import Any, Iterator, Optional, Set
|
| 6 |
+
|
| 7 |
+
from ._parser import parse_requirement as _parse_requirement
|
| 8 |
+
from ._tokenizer import ParserSyntaxError
|
| 9 |
+
from .markers import Marker, _normalize_extra_values
|
| 10 |
+
from .specifiers import SpecifierSet
|
| 11 |
+
from .utils import canonicalize_name
|
| 12 |
+
|
| 13 |
+
|
| 14 |
+
class InvalidRequirement(ValueError):
|
| 15 |
+
"""
|
| 16 |
+
An invalid requirement was found, users should refer to PEP 508.
|
| 17 |
+
"""
|
| 18 |
+
|
| 19 |
+
|
| 20 |
+
class Requirement:
|
| 21 |
+
"""Parse a requirement.
|
| 22 |
+
|
| 23 |
+
Parse a given requirement string into its parts, such as name, specifier,
|
| 24 |
+
URL, and extras. Raises InvalidRequirement on a badly-formed requirement
|
| 25 |
+
string.
|
| 26 |
+
"""
|
| 27 |
+
|
| 28 |
+
# TODO: Can we test whether something is contained within a requirement?
|
| 29 |
+
# If so how do we do that? Do we need to test against the _name_ of
|
| 30 |
+
# the thing as well as the version? What about the markers?
|
| 31 |
+
# TODO: Can we normalize the name and extra name?
|
| 32 |
+
|
| 33 |
+
def __init__(self, requirement_string: str) -> None:
|
| 34 |
+
try:
|
| 35 |
+
parsed = _parse_requirement(requirement_string)
|
| 36 |
+
except ParserSyntaxError as e:
|
| 37 |
+
raise InvalidRequirement(str(e)) from e
|
| 38 |
+
|
| 39 |
+
self.name: str = parsed.name
|
| 40 |
+
self.url: Optional[str] = parsed.url or None
|
| 41 |
+
self.extras: Set[str] = set(parsed.extras or [])
|
| 42 |
+
self.specifier: SpecifierSet = SpecifierSet(parsed.specifier)
|
| 43 |
+
self.marker: Optional[Marker] = None
|
| 44 |
+
if parsed.marker is not None:
|
| 45 |
+
self.marker = Marker.__new__(Marker)
|
| 46 |
+
self.marker._markers = _normalize_extra_values(parsed.marker)
|
| 47 |
+
|
| 48 |
+
def _iter_parts(self, name: str) -> Iterator[str]:
|
| 49 |
+
yield name
|
| 50 |
+
|
| 51 |
+
if self.extras:
|
| 52 |
+
formatted_extras = ",".join(sorted(self.extras))
|
| 53 |
+
yield f"[{formatted_extras}]"
|
| 54 |
+
|
| 55 |
+
if self.specifier:
|
| 56 |
+
yield str(self.specifier)
|
| 57 |
+
|
| 58 |
+
if self.url:
|
| 59 |
+
yield f"@ {self.url}"
|
| 60 |
+
if self.marker:
|
| 61 |
+
yield " "
|
| 62 |
+
|
| 63 |
+
if self.marker:
|
| 64 |
+
yield f"; {self.marker}"
|
| 65 |
+
|
| 66 |
+
def __str__(self) -> str:
|
| 67 |
+
return "".join(self._iter_parts(self.name))
|
| 68 |
+
|
| 69 |
+
def __repr__(self) -> str:
|
| 70 |
+
return f"<Requirement('{self}')>"
|
| 71 |
+
|
| 72 |
+
def __hash__(self) -> int:
|
| 73 |
+
return hash(
|
| 74 |
+
(
|
| 75 |
+
self.__class__.__name__,
|
| 76 |
+
*self._iter_parts(canonicalize_name(self.name)),
|
| 77 |
+
)
|
| 78 |
+
)
|
| 79 |
+
|
| 80 |
+
def __eq__(self, other: Any) -> bool:
|
| 81 |
+
if not isinstance(other, Requirement):
|
| 82 |
+
return NotImplemented
|
| 83 |
+
|
| 84 |
+
return (
|
| 85 |
+
canonicalize_name(self.name) == canonicalize_name(other.name)
|
| 86 |
+
and self.extras == other.extras
|
| 87 |
+
and self.specifier == other.specifier
|
| 88 |
+
and self.url == other.url
|
| 89 |
+
and self.marker == other.marker
|
| 90 |
+
)
|
code/LaDi-RL-old-qwen-cod/LaDi-RL-old-qwen-cod/venv/lib64/python3.10/site-packages/setuptools/_vendor/wheel/vendored/packaging/specifiers.py
ADDED
|
@@ -0,0 +1,1011 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# This file is dual licensed under the terms of the Apache License, Version
|
| 2 |
+
# 2.0, and the BSD License. See the LICENSE file in the root of this repository
|
| 3 |
+
# for complete details.
|
| 4 |
+
"""
|
| 5 |
+
.. testsetup::
|
| 6 |
+
|
| 7 |
+
from packaging.specifiers import Specifier, SpecifierSet, InvalidSpecifier
|
| 8 |
+
from packaging.version import Version
|
| 9 |
+
"""
|
| 10 |
+
|
| 11 |
+
import abc
|
| 12 |
+
import itertools
|
| 13 |
+
import re
|
| 14 |
+
from typing import Callable, Iterable, Iterator, List, Optional, Tuple, TypeVar, Union
|
| 15 |
+
|
| 16 |
+
from .utils import canonicalize_version
|
| 17 |
+
from .version import Version
|
| 18 |
+
|
| 19 |
+
UnparsedVersion = Union[Version, str]
|
| 20 |
+
UnparsedVersionVar = TypeVar("UnparsedVersionVar", bound=UnparsedVersion)
|
| 21 |
+
CallableOperator = Callable[[Version, str], bool]
|
| 22 |
+
|
| 23 |
+
|
| 24 |
+
def _coerce_version(version: UnparsedVersion) -> Version:
|
| 25 |
+
if not isinstance(version, Version):
|
| 26 |
+
version = Version(version)
|
| 27 |
+
return version
|
| 28 |
+
|
| 29 |
+
|
| 30 |
+
class InvalidSpecifier(ValueError):
|
| 31 |
+
"""
|
| 32 |
+
Raised when attempting to create a :class:`Specifier` with a specifier
|
| 33 |
+
string that is invalid.
|
| 34 |
+
|
| 35 |
+
>>> Specifier("lolwat")
|
| 36 |
+
Traceback (most recent call last):
|
| 37 |
+
...
|
| 38 |
+
packaging.specifiers.InvalidSpecifier: Invalid specifier: 'lolwat'
|
| 39 |
+
"""
|
| 40 |
+
|
| 41 |
+
|
| 42 |
+
class BaseSpecifier(metaclass=abc.ABCMeta):
|
| 43 |
+
@abc.abstractmethod
|
| 44 |
+
def __str__(self) -> str:
|
| 45 |
+
"""
|
| 46 |
+
Returns the str representation of this Specifier-like object. This
|
| 47 |
+
should be representative of the Specifier itself.
|
| 48 |
+
"""
|
| 49 |
+
|
| 50 |
+
@abc.abstractmethod
|
| 51 |
+
def __hash__(self) -> int:
|
| 52 |
+
"""
|
| 53 |
+
Returns a hash value for this Specifier-like object.
|
| 54 |
+
"""
|
| 55 |
+
|
| 56 |
+
@abc.abstractmethod
|
| 57 |
+
def __eq__(self, other: object) -> bool:
|
| 58 |
+
"""
|
| 59 |
+
Returns a boolean representing whether or not the two Specifier-like
|
| 60 |
+
objects are equal.
|
| 61 |
+
|
| 62 |
+
:param other: The other object to check against.
|
| 63 |
+
"""
|
| 64 |
+
|
| 65 |
+
@property
|
| 66 |
+
@abc.abstractmethod
|
| 67 |
+
def prereleases(self) -> Optional[bool]:
|
| 68 |
+
"""Whether or not pre-releases as a whole are allowed.
|
| 69 |
+
|
| 70 |
+
This can be set to either ``True`` or ``False`` to explicitly enable or disable
|
| 71 |
+
prereleases or it can be set to ``None`` (the default) to use default semantics.
|
| 72 |
+
"""
|
| 73 |
+
|
| 74 |
+
@prereleases.setter
|
| 75 |
+
def prereleases(self, value: bool) -> None:
|
| 76 |
+
"""Setter for :attr:`prereleases`.
|
| 77 |
+
|
| 78 |
+
:param value: The value to set.
|
| 79 |
+
"""
|
| 80 |
+
|
| 81 |
+
@abc.abstractmethod
|
| 82 |
+
def contains(self, item: str, prereleases: Optional[bool] = None) -> bool:
|
| 83 |
+
"""
|
| 84 |
+
Determines if the given item is contained within this specifier.
|
| 85 |
+
"""
|
| 86 |
+
|
| 87 |
+
@abc.abstractmethod
|
| 88 |
+
def filter(
|
| 89 |
+
self, iterable: Iterable[UnparsedVersionVar], prereleases: Optional[bool] = None
|
| 90 |
+
) -> Iterator[UnparsedVersionVar]:
|
| 91 |
+
"""
|
| 92 |
+
Takes an iterable of items and filters them so that only items which
|
| 93 |
+
are contained within this specifier are allowed in it.
|
| 94 |
+
"""
|
| 95 |
+
|
| 96 |
+
|
| 97 |
+
class Specifier(BaseSpecifier):
|
| 98 |
+
"""This class abstracts handling of version specifiers.
|
| 99 |
+
|
| 100 |
+
.. tip::
|
| 101 |
+
|
| 102 |
+
It is generally not required to instantiate this manually. You should instead
|
| 103 |
+
prefer to work with :class:`SpecifierSet` instead, which can parse
|
| 104 |
+
comma-separated version specifiers (which is what package metadata contains).
|
| 105 |
+
"""
|
| 106 |
+
|
| 107 |
+
_operator_regex_str = r"""
|
| 108 |
+
(?P<operator>(~=|==|!=|<=|>=|<|>|===))
|
| 109 |
+
"""
|
| 110 |
+
_version_regex_str = r"""
|
| 111 |
+
(?P<version>
|
| 112 |
+
(?:
|
| 113 |
+
# The identity operators allow for an escape hatch that will
|
| 114 |
+
# do an exact string match of the version you wish to install.
|
| 115 |
+
# This will not be parsed by PEP 440 and we cannot determine
|
| 116 |
+
# any semantic meaning from it. This operator is discouraged
|
| 117 |
+
# but included entirely as an escape hatch.
|
| 118 |
+
(?<====) # Only match for the identity operator
|
| 119 |
+
\s*
|
| 120 |
+
[^\s;)]* # The arbitrary version can be just about anything,
|
| 121 |
+
# we match everything except for whitespace, a
|
| 122 |
+
# semi-colon for marker support, and a closing paren
|
| 123 |
+
# since versions can be enclosed in them.
|
| 124 |
+
)
|
| 125 |
+
|
|
| 126 |
+
(?:
|
| 127 |
+
# The (non)equality operators allow for wild card and local
|
| 128 |
+
# versions to be specified so we have to define these two
|
| 129 |
+
# operators separately to enable that.
|
| 130 |
+
(?<===|!=) # Only match for equals and not equals
|
| 131 |
+
|
| 132 |
+
\s*
|
| 133 |
+
v?
|
| 134 |
+
(?:[0-9]+!)? # epoch
|
| 135 |
+
[0-9]+(?:\.[0-9]+)* # release
|
| 136 |
+
|
| 137 |
+
# You cannot use a wild card and a pre-release, post-release, a dev or
|
| 138 |
+
# local version together so group them with a | and make them optional.
|
| 139 |
+
(?:
|
| 140 |
+
\.\* # Wild card syntax of .*
|
| 141 |
+
|
|
| 142 |
+
(?: # pre release
|
| 143 |
+
[-_\.]?
|
| 144 |
+
(alpha|beta|preview|pre|a|b|c|rc)
|
| 145 |
+
[-_\.]?
|
| 146 |
+
[0-9]*
|
| 147 |
+
)?
|
| 148 |
+
(?: # post release
|
| 149 |
+
(?:-[0-9]+)|(?:[-_\.]?(post|rev|r)[-_\.]?[0-9]*)
|
| 150 |
+
)?
|
| 151 |
+
(?:[-_\.]?dev[-_\.]?[0-9]*)? # dev release
|
| 152 |
+
(?:\+[a-z0-9]+(?:[-_\.][a-z0-9]+)*)? # local
|
| 153 |
+
)?
|
| 154 |
+
)
|
| 155 |
+
|
|
| 156 |
+
(?:
|
| 157 |
+
# The compatible operator requires at least two digits in the
|
| 158 |
+
# release segment.
|
| 159 |
+
(?<=~=) # Only match for the compatible operator
|
| 160 |
+
|
| 161 |
+
\s*
|
| 162 |
+
v?
|
| 163 |
+
(?:[0-9]+!)? # epoch
|
| 164 |
+
[0-9]+(?:\.[0-9]+)+ # release (We have a + instead of a *)
|
| 165 |
+
(?: # pre release
|
| 166 |
+
[-_\.]?
|
| 167 |
+
(alpha|beta|preview|pre|a|b|c|rc)
|
| 168 |
+
[-_\.]?
|
| 169 |
+
[0-9]*
|
| 170 |
+
)?
|
| 171 |
+
(?: # post release
|
| 172 |
+
(?:-[0-9]+)|(?:[-_\.]?(post|rev|r)[-_\.]?[0-9]*)
|
| 173 |
+
)?
|
| 174 |
+
(?:[-_\.]?dev[-_\.]?[0-9]*)? # dev release
|
| 175 |
+
)
|
| 176 |
+
|
|
| 177 |
+
(?:
|
| 178 |
+
# All other operators only allow a sub set of what the
|
| 179 |
+
# (non)equality operators do. Specifically they do not allow
|
| 180 |
+
# local versions to be specified nor do they allow the prefix
|
| 181 |
+
# matching wild cards.
|
| 182 |
+
(?<!==|!=|~=) # We have special cases for these
|
| 183 |
+
# operators so we want to make sure they
|
| 184 |
+
# don't match here.
|
| 185 |
+
|
| 186 |
+
\s*
|
| 187 |
+
v?
|
| 188 |
+
(?:[0-9]+!)? # epoch
|
| 189 |
+
[0-9]+(?:\.[0-9]+)* # release
|
| 190 |
+
(?: # pre release
|
| 191 |
+
[-_\.]?
|
| 192 |
+
(alpha|beta|preview|pre|a|b|c|rc)
|
| 193 |
+
[-_\.]?
|
| 194 |
+
[0-9]*
|
| 195 |
+
)?
|
| 196 |
+
(?: # post release
|
| 197 |
+
(?:-[0-9]+)|(?:[-_\.]?(post|rev|r)[-_\.]?[0-9]*)
|
| 198 |
+
)?
|
| 199 |
+
(?:[-_\.]?dev[-_\.]?[0-9]*)? # dev release
|
| 200 |
+
)
|
| 201 |
+
)
|
| 202 |
+
"""
|
| 203 |
+
|
| 204 |
+
_regex = re.compile(
|
| 205 |
+
r"^\s*" + _operator_regex_str + _version_regex_str + r"\s*$",
|
| 206 |
+
re.VERBOSE | re.IGNORECASE,
|
| 207 |
+
)
|
| 208 |
+
|
| 209 |
+
_operators = {
|
| 210 |
+
"~=": "compatible",
|
| 211 |
+
"==": "equal",
|
| 212 |
+
"!=": "not_equal",
|
| 213 |
+
"<=": "less_than_equal",
|
| 214 |
+
">=": "greater_than_equal",
|
| 215 |
+
"<": "less_than",
|
| 216 |
+
">": "greater_than",
|
| 217 |
+
"===": "arbitrary",
|
| 218 |
+
}
|
| 219 |
+
|
| 220 |
+
def __init__(self, spec: str = "", prereleases: Optional[bool] = None) -> None:
|
| 221 |
+
"""Initialize a Specifier instance.
|
| 222 |
+
|
| 223 |
+
:param spec:
|
| 224 |
+
The string representation of a specifier which will be parsed and
|
| 225 |
+
normalized before use.
|
| 226 |
+
:param prereleases:
|
| 227 |
+
This tells the specifier if it should accept prerelease versions if
|
| 228 |
+
applicable or not. The default of ``None`` will autodetect it from the
|
| 229 |
+
given specifiers.
|
| 230 |
+
:raises InvalidSpecifier:
|
| 231 |
+
If the given specifier is invalid (i.e. bad syntax).
|
| 232 |
+
"""
|
| 233 |
+
match = self._regex.search(spec)
|
| 234 |
+
if not match:
|
| 235 |
+
raise InvalidSpecifier(f"Invalid specifier: '{spec}'")
|
| 236 |
+
|
| 237 |
+
self._spec: Tuple[str, str] = (
|
| 238 |
+
match.group("operator").strip(),
|
| 239 |
+
match.group("version").strip(),
|
| 240 |
+
)
|
| 241 |
+
|
| 242 |
+
# Store whether or not this Specifier should accept prereleases
|
| 243 |
+
self._prereleases = prereleases
|
| 244 |
+
|
| 245 |
+
# https://github.com/python/mypy/pull/13475#pullrequestreview-1079784515
|
| 246 |
+
@property # type: ignore[override]
|
| 247 |
+
def prereleases(self) -> bool:
|
| 248 |
+
# If there is an explicit prereleases set for this, then we'll just
|
| 249 |
+
# blindly use that.
|
| 250 |
+
if self._prereleases is not None:
|
| 251 |
+
return self._prereleases
|
| 252 |
+
|
| 253 |
+
# Look at all of our specifiers and determine if they are inclusive
|
| 254 |
+
# operators, and if they are if they are including an explicit
|
| 255 |
+
# prerelease.
|
| 256 |
+
operator, version = self._spec
|
| 257 |
+
if operator in ["==", ">=", "<=", "~=", "==="]:
|
| 258 |
+
# The == specifier can include a trailing .*, if it does we
|
| 259 |
+
# want to remove before parsing.
|
| 260 |
+
if operator == "==" and version.endswith(".*"):
|
| 261 |
+
version = version[:-2]
|
| 262 |
+
|
| 263 |
+
# Parse the version, and if it is a pre-release than this
|
| 264 |
+
# specifier allows pre-releases.
|
| 265 |
+
if Version(version).is_prerelease:
|
| 266 |
+
return True
|
| 267 |
+
|
| 268 |
+
return False
|
| 269 |
+
|
| 270 |
+
@prereleases.setter
|
| 271 |
+
def prereleases(self, value: bool) -> None:
|
| 272 |
+
self._prereleases = value
|
| 273 |
+
|
| 274 |
+
@property
|
| 275 |
+
def operator(self) -> str:
|
| 276 |
+
"""The operator of this specifier.
|
| 277 |
+
|
| 278 |
+
>>> Specifier("==1.2.3").operator
|
| 279 |
+
'=='
|
| 280 |
+
"""
|
| 281 |
+
return self._spec[0]
|
| 282 |
+
|
| 283 |
+
@property
|
| 284 |
+
def version(self) -> str:
|
| 285 |
+
"""The version of this specifier.
|
| 286 |
+
|
| 287 |
+
>>> Specifier("==1.2.3").version
|
| 288 |
+
'1.2.3'
|
| 289 |
+
"""
|
| 290 |
+
return self._spec[1]
|
| 291 |
+
|
| 292 |
+
def __repr__(self) -> str:
|
| 293 |
+
"""A representation of the Specifier that shows all internal state.
|
| 294 |
+
|
| 295 |
+
>>> Specifier('>=1.0.0')
|
| 296 |
+
<Specifier('>=1.0.0')>
|
| 297 |
+
>>> Specifier('>=1.0.0', prereleases=False)
|
| 298 |
+
<Specifier('>=1.0.0', prereleases=False)>
|
| 299 |
+
>>> Specifier('>=1.0.0', prereleases=True)
|
| 300 |
+
<Specifier('>=1.0.0', prereleases=True)>
|
| 301 |
+
"""
|
| 302 |
+
pre = (
|
| 303 |
+
f", prereleases={self.prereleases!r}"
|
| 304 |
+
if self._prereleases is not None
|
| 305 |
+
else ""
|
| 306 |
+
)
|
| 307 |
+
|
| 308 |
+
return f"<{self.__class__.__name__}({str(self)!r}{pre})>"
|
| 309 |
+
|
| 310 |
+
def __str__(self) -> str:
|
| 311 |
+
"""A string representation of the Specifier that can be round-tripped.
|
| 312 |
+
|
| 313 |
+
>>> str(Specifier('>=1.0.0'))
|
| 314 |
+
'>=1.0.0'
|
| 315 |
+
>>> str(Specifier('>=1.0.0', prereleases=False))
|
| 316 |
+
'>=1.0.0'
|
| 317 |
+
"""
|
| 318 |
+
return "{}{}".format(*self._spec)
|
| 319 |
+
|
| 320 |
+
@property
|
| 321 |
+
def _canonical_spec(self) -> Tuple[str, str]:
|
| 322 |
+
canonical_version = canonicalize_version(
|
| 323 |
+
self._spec[1],
|
| 324 |
+
strip_trailing_zero=(self._spec[0] != "~="),
|
| 325 |
+
)
|
| 326 |
+
return self._spec[0], canonical_version
|
| 327 |
+
|
| 328 |
+
def __hash__(self) -> int:
|
| 329 |
+
return hash(self._canonical_spec)
|
| 330 |
+
|
| 331 |
+
def __eq__(self, other: object) -> bool:
|
| 332 |
+
"""Whether or not the two Specifier-like objects are equal.
|
| 333 |
+
|
| 334 |
+
:param other: The other object to check against.
|
| 335 |
+
|
| 336 |
+
The value of :attr:`prereleases` is ignored.
|
| 337 |
+
|
| 338 |
+
>>> Specifier("==1.2.3") == Specifier("== 1.2.3.0")
|
| 339 |
+
True
|
| 340 |
+
>>> (Specifier("==1.2.3", prereleases=False) ==
|
| 341 |
+
... Specifier("==1.2.3", prereleases=True))
|
| 342 |
+
True
|
| 343 |
+
>>> Specifier("==1.2.3") == "==1.2.3"
|
| 344 |
+
True
|
| 345 |
+
>>> Specifier("==1.2.3") == Specifier("==1.2.4")
|
| 346 |
+
False
|
| 347 |
+
>>> Specifier("==1.2.3") == Specifier("~=1.2.3")
|
| 348 |
+
False
|
| 349 |
+
"""
|
| 350 |
+
if isinstance(other, str):
|
| 351 |
+
try:
|
| 352 |
+
other = self.__class__(str(other))
|
| 353 |
+
except InvalidSpecifier:
|
| 354 |
+
return NotImplemented
|
| 355 |
+
elif not isinstance(other, self.__class__):
|
| 356 |
+
return NotImplemented
|
| 357 |
+
|
| 358 |
+
return self._canonical_spec == other._canonical_spec
|
| 359 |
+
|
| 360 |
+
def _get_operator(self, op: str) -> CallableOperator:
|
| 361 |
+
operator_callable: CallableOperator = getattr(
|
| 362 |
+
self, f"_compare_{self._operators[op]}"
|
| 363 |
+
)
|
| 364 |
+
return operator_callable
|
| 365 |
+
|
| 366 |
+
def _compare_compatible(self, prospective: Version, spec: str) -> bool:
|
| 367 |
+
# Compatible releases have an equivalent combination of >= and ==. That
|
| 368 |
+
# is that ~=2.2 is equivalent to >=2.2,==2.*. This allows us to
|
| 369 |
+
# implement this in terms of the other specifiers instead of
|
| 370 |
+
# implementing it ourselves. The only thing we need to do is construct
|
| 371 |
+
# the other specifiers.
|
| 372 |
+
|
| 373 |
+
# We want everything but the last item in the version, but we want to
|
| 374 |
+
# ignore suffix segments.
|
| 375 |
+
prefix = _version_join(
|
| 376 |
+
list(itertools.takewhile(_is_not_suffix, _version_split(spec)))[:-1]
|
| 377 |
+
)
|
| 378 |
+
|
| 379 |
+
# Add the prefix notation to the end of our string
|
| 380 |
+
prefix += ".*"
|
| 381 |
+
|
| 382 |
+
return self._get_operator(">=")(prospective, spec) and self._get_operator("==")(
|
| 383 |
+
prospective, prefix
|
| 384 |
+
)
|
| 385 |
+
|
| 386 |
+
def _compare_equal(self, prospective: Version, spec: str) -> bool:
|
| 387 |
+
# We need special logic to handle prefix matching
|
| 388 |
+
if spec.endswith(".*"):
|
| 389 |
+
# In the case of prefix matching we want to ignore local segment.
|
| 390 |
+
normalized_prospective = canonicalize_version(
|
| 391 |
+
prospective.public, strip_trailing_zero=False
|
| 392 |
+
)
|
| 393 |
+
# Get the normalized version string ignoring the trailing .*
|
| 394 |
+
normalized_spec = canonicalize_version(spec[:-2], strip_trailing_zero=False)
|
| 395 |
+
# Split the spec out by bangs and dots, and pretend that there is
|
| 396 |
+
# an implicit dot in between a release segment and a pre-release segment.
|
| 397 |
+
split_spec = _version_split(normalized_spec)
|
| 398 |
+
|
| 399 |
+
# Split the prospective version out by bangs and dots, and pretend
|
| 400 |
+
# that there is an implicit dot in between a release segment and
|
| 401 |
+
# a pre-release segment.
|
| 402 |
+
split_prospective = _version_split(normalized_prospective)
|
| 403 |
+
|
| 404 |
+
# 0-pad the prospective version before shortening it to get the correct
|
| 405 |
+
# shortened version.
|
| 406 |
+
padded_prospective, _ = _pad_version(split_prospective, split_spec)
|
| 407 |
+
|
| 408 |
+
# Shorten the prospective version to be the same length as the spec
|
| 409 |
+
# so that we can determine if the specifier is a prefix of the
|
| 410 |
+
# prospective version or not.
|
| 411 |
+
shortened_prospective = padded_prospective[: len(split_spec)]
|
| 412 |
+
|
| 413 |
+
return shortened_prospective == split_spec
|
| 414 |
+
else:
|
| 415 |
+
# Convert our spec string into a Version
|
| 416 |
+
spec_version = Version(spec)
|
| 417 |
+
|
| 418 |
+
# If the specifier does not have a local segment, then we want to
|
| 419 |
+
# act as if the prospective version also does not have a local
|
| 420 |
+
# segment.
|
| 421 |
+
if not spec_version.local:
|
| 422 |
+
prospective = Version(prospective.public)
|
| 423 |
+
|
| 424 |
+
return prospective == spec_version
|
| 425 |
+
|
| 426 |
+
def _compare_not_equal(self, prospective: Version, spec: str) -> bool:
|
| 427 |
+
return not self._compare_equal(prospective, spec)
|
| 428 |
+
|
| 429 |
+
def _compare_less_than_equal(self, prospective: Version, spec: str) -> bool:
|
| 430 |
+
# NB: Local version identifiers are NOT permitted in the version
|
| 431 |
+
# specifier, so local version labels can be universally removed from
|
| 432 |
+
# the prospective version.
|
| 433 |
+
return Version(prospective.public) <= Version(spec)
|
| 434 |
+
|
| 435 |
+
def _compare_greater_than_equal(self, prospective: Version, spec: str) -> bool:
|
| 436 |
+
# NB: Local version identifiers are NOT permitted in the version
|
| 437 |
+
# specifier, so local version labels can be universally removed from
|
| 438 |
+
# the prospective version.
|
| 439 |
+
return Version(prospective.public) >= Version(spec)
|
| 440 |
+
|
| 441 |
+
def _compare_less_than(self, prospective: Version, spec_str: str) -> bool:
|
| 442 |
+
# Convert our spec to a Version instance, since we'll want to work with
|
| 443 |
+
# it as a version.
|
| 444 |
+
spec = Version(spec_str)
|
| 445 |
+
|
| 446 |
+
# Check to see if the prospective version is less than the spec
|
| 447 |
+
# version. If it's not we can short circuit and just return False now
|
| 448 |
+
# instead of doing extra unneeded work.
|
| 449 |
+
if not prospective < spec:
|
| 450 |
+
return False
|
| 451 |
+
|
| 452 |
+
# This special case is here so that, unless the specifier itself
|
| 453 |
+
# includes is a pre-release version, that we do not accept pre-release
|
| 454 |
+
# versions for the version mentioned in the specifier (e.g. <3.1 should
|
| 455 |
+
# not match 3.1.dev0, but should match 3.0.dev0).
|
| 456 |
+
if not spec.is_prerelease and prospective.is_prerelease:
|
| 457 |
+
if Version(prospective.base_version) == Version(spec.base_version):
|
| 458 |
+
return False
|
| 459 |
+
|
| 460 |
+
# If we've gotten to here, it means that prospective version is both
|
| 461 |
+
# less than the spec version *and* it's not a pre-release of the same
|
| 462 |
+
# version in the spec.
|
| 463 |
+
return True
|
| 464 |
+
|
| 465 |
+
def _compare_greater_than(self, prospective: Version, spec_str: str) -> bool:
|
| 466 |
+
# Convert our spec to a Version instance, since we'll want to work with
|
| 467 |
+
# it as a version.
|
| 468 |
+
spec = Version(spec_str)
|
| 469 |
+
|
| 470 |
+
# Check to see if the prospective version is greater than the spec
|
| 471 |
+
# version. If it's not we can short circuit and just return False now
|
| 472 |
+
# instead of doing extra unneeded work.
|
| 473 |
+
if not prospective > spec:
|
| 474 |
+
return False
|
| 475 |
+
|
| 476 |
+
# This special case is here so that, unless the specifier itself
|
| 477 |
+
# includes is a post-release version, that we do not accept
|
| 478 |
+
# post-release versions for the version mentioned in the specifier
|
| 479 |
+
# (e.g. >3.1 should not match 3.0.post0, but should match 3.2.post0).
|
| 480 |
+
if not spec.is_postrelease and prospective.is_postrelease:
|
| 481 |
+
if Version(prospective.base_version) == Version(spec.base_version):
|
| 482 |
+
return False
|
| 483 |
+
|
| 484 |
+
# Ensure that we do not allow a local version of the version mentioned
|
| 485 |
+
# in the specifier, which is technically greater than, to match.
|
| 486 |
+
if prospective.local is not None:
|
| 487 |
+
if Version(prospective.base_version) == Version(spec.base_version):
|
| 488 |
+
return False
|
| 489 |
+
|
| 490 |
+
# If we've gotten to here, it means that prospective version is both
|
| 491 |
+
# greater than the spec version *and* it's not a pre-release of the
|
| 492 |
+
# same version in the spec.
|
| 493 |
+
return True
|
| 494 |
+
|
| 495 |
+
def _compare_arbitrary(self, prospective: Version, spec: str) -> bool:
|
| 496 |
+
return str(prospective).lower() == str(spec).lower()
|
| 497 |
+
|
| 498 |
+
def __contains__(self, item: Union[str, Version]) -> bool:
|
| 499 |
+
"""Return whether or not the item is contained in this specifier.
|
| 500 |
+
|
| 501 |
+
:param item: The item to check for.
|
| 502 |
+
|
| 503 |
+
This is used for the ``in`` operator and behaves the same as
|
| 504 |
+
:meth:`contains` with no ``prereleases`` argument passed.
|
| 505 |
+
|
| 506 |
+
>>> "1.2.3" in Specifier(">=1.2.3")
|
| 507 |
+
True
|
| 508 |
+
>>> Version("1.2.3") in Specifier(">=1.2.3")
|
| 509 |
+
True
|
| 510 |
+
>>> "1.0.0" in Specifier(">=1.2.3")
|
| 511 |
+
False
|
| 512 |
+
>>> "1.3.0a1" in Specifier(">=1.2.3")
|
| 513 |
+
False
|
| 514 |
+
>>> "1.3.0a1" in Specifier(">=1.2.3", prereleases=True)
|
| 515 |
+
True
|
| 516 |
+
"""
|
| 517 |
+
return self.contains(item)
|
| 518 |
+
|
| 519 |
+
def contains(
|
| 520 |
+
self, item: UnparsedVersion, prereleases: Optional[bool] = None
|
| 521 |
+
) -> bool:
|
| 522 |
+
"""Return whether or not the item is contained in this specifier.
|
| 523 |
+
|
| 524 |
+
:param item:
|
| 525 |
+
The item to check for, which can be a version string or a
|
| 526 |
+
:class:`Version` instance.
|
| 527 |
+
:param prereleases:
|
| 528 |
+
Whether or not to match prereleases with this Specifier. If set to
|
| 529 |
+
``None`` (the default), it uses :attr:`prereleases` to determine
|
| 530 |
+
whether or not prereleases are allowed.
|
| 531 |
+
|
| 532 |
+
>>> Specifier(">=1.2.3").contains("1.2.3")
|
| 533 |
+
True
|
| 534 |
+
>>> Specifier(">=1.2.3").contains(Version("1.2.3"))
|
| 535 |
+
True
|
| 536 |
+
>>> Specifier(">=1.2.3").contains("1.0.0")
|
| 537 |
+
False
|
| 538 |
+
>>> Specifier(">=1.2.3").contains("1.3.0a1")
|
| 539 |
+
False
|
| 540 |
+
>>> Specifier(">=1.2.3", prereleases=True).contains("1.3.0a1")
|
| 541 |
+
True
|
| 542 |
+
>>> Specifier(">=1.2.3").contains("1.3.0a1", prereleases=True)
|
| 543 |
+
True
|
| 544 |
+
"""
|
| 545 |
+
|
| 546 |
+
# Determine if prereleases are to be allowed or not.
|
| 547 |
+
if prereleases is None:
|
| 548 |
+
prereleases = self.prereleases
|
| 549 |
+
|
| 550 |
+
# Normalize item to a Version, this allows us to have a shortcut for
|
| 551 |
+
# "2.0" in Specifier(">=2")
|
| 552 |
+
normalized_item = _coerce_version(item)
|
| 553 |
+
|
| 554 |
+
# Determine if we should be supporting prereleases in this specifier
|
| 555 |
+
# or not, if we do not support prereleases than we can short circuit
|
| 556 |
+
# logic if this version is a prereleases.
|
| 557 |
+
if normalized_item.is_prerelease and not prereleases:
|
| 558 |
+
return False
|
| 559 |
+
|
| 560 |
+
# Actually do the comparison to determine if this item is contained
|
| 561 |
+
# within this Specifier or not.
|
| 562 |
+
operator_callable: CallableOperator = self._get_operator(self.operator)
|
| 563 |
+
return operator_callable(normalized_item, self.version)
|
| 564 |
+
|
| 565 |
+
def filter(
|
| 566 |
+
self, iterable: Iterable[UnparsedVersionVar], prereleases: Optional[bool] = None
|
| 567 |
+
) -> Iterator[UnparsedVersionVar]:
|
| 568 |
+
"""Filter items in the given iterable, that match the specifier.
|
| 569 |
+
|
| 570 |
+
:param iterable:
|
| 571 |
+
An iterable that can contain version strings and :class:`Version` instances.
|
| 572 |
+
The items in the iterable will be filtered according to the specifier.
|
| 573 |
+
:param prereleases:
|
| 574 |
+
Whether or not to allow prereleases in the returned iterator. If set to
|
| 575 |
+
``None`` (the default), it will be intelligently decide whether to allow
|
| 576 |
+
prereleases or not (based on the :attr:`prereleases` attribute, and
|
| 577 |
+
whether the only versions matching are prereleases).
|
| 578 |
+
|
| 579 |
+
This method is smarter than just ``filter(Specifier().contains, [...])``
|
| 580 |
+
because it implements the rule from :pep:`440` that a prerelease item
|
| 581 |
+
SHOULD be accepted if no other versions match the given specifier.
|
| 582 |
+
|
| 583 |
+
>>> list(Specifier(">=1.2.3").filter(["1.2", "1.3", "1.5a1"]))
|
| 584 |
+
['1.3']
|
| 585 |
+
>>> list(Specifier(">=1.2.3").filter(["1.2", "1.2.3", "1.3", Version("1.4")]))
|
| 586 |
+
['1.2.3', '1.3', <Version('1.4')>]
|
| 587 |
+
>>> list(Specifier(">=1.2.3").filter(["1.2", "1.5a1"]))
|
| 588 |
+
['1.5a1']
|
| 589 |
+
>>> list(Specifier(">=1.2.3").filter(["1.3", "1.5a1"], prereleases=True))
|
| 590 |
+
['1.3', '1.5a1']
|
| 591 |
+
>>> list(Specifier(">=1.2.3", prereleases=True).filter(["1.3", "1.5a1"]))
|
| 592 |
+
['1.3', '1.5a1']
|
| 593 |
+
"""
|
| 594 |
+
|
| 595 |
+
yielded = False
|
| 596 |
+
found_prereleases = []
|
| 597 |
+
|
| 598 |
+
kw = {"prereleases": prereleases if prereleases is not None else True}
|
| 599 |
+
|
| 600 |
+
# Attempt to iterate over all the values in the iterable and if any of
|
| 601 |
+
# them match, yield them.
|
| 602 |
+
for version in iterable:
|
| 603 |
+
parsed_version = _coerce_version(version)
|
| 604 |
+
|
| 605 |
+
if self.contains(parsed_version, **kw):
|
| 606 |
+
# If our version is a prerelease, and we were not set to allow
|
| 607 |
+
# prereleases, then we'll store it for later in case nothing
|
| 608 |
+
# else matches this specifier.
|
| 609 |
+
if parsed_version.is_prerelease and not (
|
| 610 |
+
prereleases or self.prereleases
|
| 611 |
+
):
|
| 612 |
+
found_prereleases.append(version)
|
| 613 |
+
# Either this is not a prerelease, or we should have been
|
| 614 |
+
# accepting prereleases from the beginning.
|
| 615 |
+
else:
|
| 616 |
+
yielded = True
|
| 617 |
+
yield version
|
| 618 |
+
|
| 619 |
+
# Now that we've iterated over everything, determine if we've yielded
|
| 620 |
+
# any values, and if we have not and we have any prereleases stored up
|
| 621 |
+
# then we will go ahead and yield the prereleases.
|
| 622 |
+
if not yielded and found_prereleases:
|
| 623 |
+
for version in found_prereleases:
|
| 624 |
+
yield version
|
| 625 |
+
|
| 626 |
+
|
| 627 |
+
_prefix_regex = re.compile(r"^([0-9]+)((?:a|b|c|rc)[0-9]+)$")
|
| 628 |
+
|
| 629 |
+
|
| 630 |
+
def _version_split(version: str) -> List[str]:
|
| 631 |
+
"""Split version into components.
|
| 632 |
+
|
| 633 |
+
The split components are intended for version comparison. The logic does
|
| 634 |
+
not attempt to retain the original version string, so joining the
|
| 635 |
+
components back with :func:`_version_join` may not produce the original
|
| 636 |
+
version string.
|
| 637 |
+
"""
|
| 638 |
+
result: List[str] = []
|
| 639 |
+
|
| 640 |
+
epoch, _, rest = version.rpartition("!")
|
| 641 |
+
result.append(epoch or "0")
|
| 642 |
+
|
| 643 |
+
for item in rest.split("."):
|
| 644 |
+
match = _prefix_regex.search(item)
|
| 645 |
+
if match:
|
| 646 |
+
result.extend(match.groups())
|
| 647 |
+
else:
|
| 648 |
+
result.append(item)
|
| 649 |
+
return result
|
| 650 |
+
|
| 651 |
+
|
| 652 |
+
def _version_join(components: List[str]) -> str:
|
| 653 |
+
"""Join split version components into a version string.
|
| 654 |
+
|
| 655 |
+
This function assumes the input came from :func:`_version_split`, where the
|
| 656 |
+
first component must be the epoch (either empty or numeric), and all other
|
| 657 |
+
components numeric.
|
| 658 |
+
"""
|
| 659 |
+
epoch, *rest = components
|
| 660 |
+
return f"{epoch}!{'.'.join(rest)}"
|
| 661 |
+
|
| 662 |
+
|
| 663 |
+
def _is_not_suffix(segment: str) -> bool:
|
| 664 |
+
return not any(
|
| 665 |
+
segment.startswith(prefix) for prefix in ("dev", "a", "b", "rc", "post")
|
| 666 |
+
)
|
| 667 |
+
|
| 668 |
+
|
| 669 |
+
def _pad_version(left: List[str], right: List[str]) -> Tuple[List[str], List[str]]:
|
| 670 |
+
left_split, right_split = [], []
|
| 671 |
+
|
| 672 |
+
# Get the release segment of our versions
|
| 673 |
+
left_split.append(list(itertools.takewhile(lambda x: x.isdigit(), left)))
|
| 674 |
+
right_split.append(list(itertools.takewhile(lambda x: x.isdigit(), right)))
|
| 675 |
+
|
| 676 |
+
# Get the rest of our versions
|
| 677 |
+
left_split.append(left[len(left_split[0]) :])
|
| 678 |
+
right_split.append(right[len(right_split[0]) :])
|
| 679 |
+
|
| 680 |
+
# Insert our padding
|
| 681 |
+
left_split.insert(1, ["0"] * max(0, len(right_split[0]) - len(left_split[0])))
|
| 682 |
+
right_split.insert(1, ["0"] * max(0, len(left_split[0]) - len(right_split[0])))
|
| 683 |
+
|
| 684 |
+
return (
|
| 685 |
+
list(itertools.chain.from_iterable(left_split)),
|
| 686 |
+
list(itertools.chain.from_iterable(right_split)),
|
| 687 |
+
)
|
| 688 |
+
|
| 689 |
+
|
| 690 |
+
class SpecifierSet(BaseSpecifier):
|
| 691 |
+
"""This class abstracts handling of a set of version specifiers.
|
| 692 |
+
|
| 693 |
+
It can be passed a single specifier (``>=3.0``), a comma-separated list of
|
| 694 |
+
specifiers (``>=3.0,!=3.1``), or no specifier at all.
|
| 695 |
+
"""
|
| 696 |
+
|
| 697 |
+
def __init__(
|
| 698 |
+
self, specifiers: str = "", prereleases: Optional[bool] = None
|
| 699 |
+
) -> None:
|
| 700 |
+
"""Initialize a SpecifierSet instance.
|
| 701 |
+
|
| 702 |
+
:param specifiers:
|
| 703 |
+
The string representation of a specifier or a comma-separated list of
|
| 704 |
+
specifiers which will be parsed and normalized before use.
|
| 705 |
+
:param prereleases:
|
| 706 |
+
This tells the SpecifierSet if it should accept prerelease versions if
|
| 707 |
+
applicable or not. The default of ``None`` will autodetect it from the
|
| 708 |
+
given specifiers.
|
| 709 |
+
|
| 710 |
+
:raises InvalidSpecifier:
|
| 711 |
+
If the given ``specifiers`` are not parseable than this exception will be
|
| 712 |
+
raised.
|
| 713 |
+
"""
|
| 714 |
+
|
| 715 |
+
# Split on `,` to break each individual specifier into it's own item, and
|
| 716 |
+
# strip each item to remove leading/trailing whitespace.
|
| 717 |
+
split_specifiers = [s.strip() for s in specifiers.split(",") if s.strip()]
|
| 718 |
+
|
| 719 |
+
# Make each individual specifier a Specifier and save in a frozen set for later.
|
| 720 |
+
self._specs = frozenset(map(Specifier, split_specifiers))
|
| 721 |
+
|
| 722 |
+
# Store our prereleases value so we can use it later to determine if
|
| 723 |
+
# we accept prereleases or not.
|
| 724 |
+
self._prereleases = prereleases
|
| 725 |
+
|
| 726 |
+
@property
|
| 727 |
+
def prereleases(self) -> Optional[bool]:
|
| 728 |
+
# If we have been given an explicit prerelease modifier, then we'll
|
| 729 |
+
# pass that through here.
|
| 730 |
+
if self._prereleases is not None:
|
| 731 |
+
return self._prereleases
|
| 732 |
+
|
| 733 |
+
# If we don't have any specifiers, and we don't have a forced value,
|
| 734 |
+
# then we'll just return None since we don't know if this should have
|
| 735 |
+
# pre-releases or not.
|
| 736 |
+
if not self._specs:
|
| 737 |
+
return None
|
| 738 |
+
|
| 739 |
+
# Otherwise we'll see if any of the given specifiers accept
|
| 740 |
+
# prereleases, if any of them do we'll return True, otherwise False.
|
| 741 |
+
return any(s.prereleases for s in self._specs)
|
| 742 |
+
|
| 743 |
+
@prereleases.setter
|
| 744 |
+
def prereleases(self, value: bool) -> None:
|
| 745 |
+
self._prereleases = value
|
| 746 |
+
|
| 747 |
+
def __repr__(self) -> str:
|
| 748 |
+
"""A representation of the specifier set that shows all internal state.
|
| 749 |
+
|
| 750 |
+
Note that the ordering of the individual specifiers within the set may not
|
| 751 |
+
match the input string.
|
| 752 |
+
|
| 753 |
+
>>> SpecifierSet('>=1.0.0,!=2.0.0')
|
| 754 |
+
<SpecifierSet('!=2.0.0,>=1.0.0')>
|
| 755 |
+
>>> SpecifierSet('>=1.0.0,!=2.0.0', prereleases=False)
|
| 756 |
+
<SpecifierSet('!=2.0.0,>=1.0.0', prereleases=False)>
|
| 757 |
+
>>> SpecifierSet('>=1.0.0,!=2.0.0', prereleases=True)
|
| 758 |
+
<SpecifierSet('!=2.0.0,>=1.0.0', prereleases=True)>
|
| 759 |
+
"""
|
| 760 |
+
pre = (
|
| 761 |
+
f", prereleases={self.prereleases!r}"
|
| 762 |
+
if self._prereleases is not None
|
| 763 |
+
else ""
|
| 764 |
+
)
|
| 765 |
+
|
| 766 |
+
return f"<SpecifierSet({str(self)!r}{pre})>"
|
| 767 |
+
|
| 768 |
+
def __str__(self) -> str:
|
| 769 |
+
"""A string representation of the specifier set that can be round-tripped.
|
| 770 |
+
|
| 771 |
+
Note that the ordering of the individual specifiers within the set may not
|
| 772 |
+
match the input string.
|
| 773 |
+
|
| 774 |
+
>>> str(SpecifierSet(">=1.0.0,!=1.0.1"))
|
| 775 |
+
'!=1.0.1,>=1.0.0'
|
| 776 |
+
>>> str(SpecifierSet(">=1.0.0,!=1.0.1", prereleases=False))
|
| 777 |
+
'!=1.0.1,>=1.0.0'
|
| 778 |
+
"""
|
| 779 |
+
return ",".join(sorted(str(s) for s in self._specs))
|
| 780 |
+
|
| 781 |
+
def __hash__(self) -> int:
|
| 782 |
+
return hash(self._specs)
|
| 783 |
+
|
| 784 |
+
def __and__(self, other: Union["SpecifierSet", str]) -> "SpecifierSet":
|
| 785 |
+
"""Return a SpecifierSet which is a combination of the two sets.
|
| 786 |
+
|
| 787 |
+
:param other: The other object to combine with.
|
| 788 |
+
|
| 789 |
+
>>> SpecifierSet(">=1.0.0,!=1.0.1") & '<=2.0.0,!=2.0.1'
|
| 790 |
+
<SpecifierSet('!=1.0.1,!=2.0.1,<=2.0.0,>=1.0.0')>
|
| 791 |
+
>>> SpecifierSet(">=1.0.0,!=1.0.1") & SpecifierSet('<=2.0.0,!=2.0.1')
|
| 792 |
+
<SpecifierSet('!=1.0.1,!=2.0.1,<=2.0.0,>=1.0.0')>
|
| 793 |
+
"""
|
| 794 |
+
if isinstance(other, str):
|
| 795 |
+
other = SpecifierSet(other)
|
| 796 |
+
elif not isinstance(other, SpecifierSet):
|
| 797 |
+
return NotImplemented
|
| 798 |
+
|
| 799 |
+
specifier = SpecifierSet()
|
| 800 |
+
specifier._specs = frozenset(self._specs | other._specs)
|
| 801 |
+
|
| 802 |
+
if self._prereleases is None and other._prereleases is not None:
|
| 803 |
+
specifier._prereleases = other._prereleases
|
| 804 |
+
elif self._prereleases is not None and other._prereleases is None:
|
| 805 |
+
specifier._prereleases = self._prereleases
|
| 806 |
+
elif self._prereleases == other._prereleases:
|
| 807 |
+
specifier._prereleases = self._prereleases
|
| 808 |
+
else:
|
| 809 |
+
raise ValueError(
|
| 810 |
+
"Cannot combine SpecifierSets with True and False prerelease "
|
| 811 |
+
"overrides."
|
| 812 |
+
)
|
| 813 |
+
|
| 814 |
+
return specifier
|
| 815 |
+
|
| 816 |
+
def __eq__(self, other: object) -> bool:
|
| 817 |
+
"""Whether or not the two SpecifierSet-like objects are equal.
|
| 818 |
+
|
| 819 |
+
:param other: The other object to check against.
|
| 820 |
+
|
| 821 |
+
The value of :attr:`prereleases` is ignored.
|
| 822 |
+
|
| 823 |
+
>>> SpecifierSet(">=1.0.0,!=1.0.1") == SpecifierSet(">=1.0.0,!=1.0.1")
|
| 824 |
+
True
|
| 825 |
+
>>> (SpecifierSet(">=1.0.0,!=1.0.1", prereleases=False) ==
|
| 826 |
+
... SpecifierSet(">=1.0.0,!=1.0.1", prereleases=True))
|
| 827 |
+
True
|
| 828 |
+
>>> SpecifierSet(">=1.0.0,!=1.0.1") == ">=1.0.0,!=1.0.1"
|
| 829 |
+
True
|
| 830 |
+
>>> SpecifierSet(">=1.0.0,!=1.0.1") == SpecifierSet(">=1.0.0")
|
| 831 |
+
False
|
| 832 |
+
>>> SpecifierSet(">=1.0.0,!=1.0.1") == SpecifierSet(">=1.0.0,!=1.0.2")
|
| 833 |
+
False
|
| 834 |
+
"""
|
| 835 |
+
if isinstance(other, (str, Specifier)):
|
| 836 |
+
other = SpecifierSet(str(other))
|
| 837 |
+
elif not isinstance(other, SpecifierSet):
|
| 838 |
+
return NotImplemented
|
| 839 |
+
|
| 840 |
+
return self._specs == other._specs
|
| 841 |
+
|
| 842 |
+
def __len__(self) -> int:
|
| 843 |
+
"""Returns the number of specifiers in this specifier set."""
|
| 844 |
+
return len(self._specs)
|
| 845 |
+
|
| 846 |
+
def __iter__(self) -> Iterator[Specifier]:
|
| 847 |
+
"""
|
| 848 |
+
Returns an iterator over all the underlying :class:`Specifier` instances
|
| 849 |
+
in this specifier set.
|
| 850 |
+
|
| 851 |
+
>>> sorted(SpecifierSet(">=1.0.0,!=1.0.1"), key=str)
|
| 852 |
+
[<Specifier('!=1.0.1')>, <Specifier('>=1.0.0')>]
|
| 853 |
+
"""
|
| 854 |
+
return iter(self._specs)
|
| 855 |
+
|
| 856 |
+
def __contains__(self, item: UnparsedVersion) -> bool:
|
| 857 |
+
"""Return whether or not the item is contained in this specifier.
|
| 858 |
+
|
| 859 |
+
:param item: The item to check for.
|
| 860 |
+
|
| 861 |
+
This is used for the ``in`` operator and behaves the same as
|
| 862 |
+
:meth:`contains` with no ``prereleases`` argument passed.
|
| 863 |
+
|
| 864 |
+
>>> "1.2.3" in SpecifierSet(">=1.0.0,!=1.0.1")
|
| 865 |
+
True
|
| 866 |
+
>>> Version("1.2.3") in SpecifierSet(">=1.0.0,!=1.0.1")
|
| 867 |
+
True
|
| 868 |
+
>>> "1.0.1" in SpecifierSet(">=1.0.0,!=1.0.1")
|
| 869 |
+
False
|
| 870 |
+
>>> "1.3.0a1" in SpecifierSet(">=1.0.0,!=1.0.1")
|
| 871 |
+
False
|
| 872 |
+
>>> "1.3.0a1" in SpecifierSet(">=1.0.0,!=1.0.1", prereleases=True)
|
| 873 |
+
True
|
| 874 |
+
"""
|
| 875 |
+
return self.contains(item)
|
| 876 |
+
|
| 877 |
+
def contains(
|
| 878 |
+
self,
|
| 879 |
+
item: UnparsedVersion,
|
| 880 |
+
prereleases: Optional[bool] = None,
|
| 881 |
+
installed: Optional[bool] = None,
|
| 882 |
+
) -> bool:
|
| 883 |
+
"""Return whether or not the item is contained in this SpecifierSet.
|
| 884 |
+
|
| 885 |
+
:param item:
|
| 886 |
+
The item to check for, which can be a version string or a
|
| 887 |
+
:class:`Version` instance.
|
| 888 |
+
:param prereleases:
|
| 889 |
+
Whether or not to match prereleases with this SpecifierSet. If set to
|
| 890 |
+
``None`` (the default), it uses :attr:`prereleases` to determine
|
| 891 |
+
whether or not prereleases are allowed.
|
| 892 |
+
|
| 893 |
+
>>> SpecifierSet(">=1.0.0,!=1.0.1").contains("1.2.3")
|
| 894 |
+
True
|
| 895 |
+
>>> SpecifierSet(">=1.0.0,!=1.0.1").contains(Version("1.2.3"))
|
| 896 |
+
True
|
| 897 |
+
>>> SpecifierSet(">=1.0.0,!=1.0.1").contains("1.0.1")
|
| 898 |
+
False
|
| 899 |
+
>>> SpecifierSet(">=1.0.0,!=1.0.1").contains("1.3.0a1")
|
| 900 |
+
False
|
| 901 |
+
>>> SpecifierSet(">=1.0.0,!=1.0.1", prereleases=True).contains("1.3.0a1")
|
| 902 |
+
True
|
| 903 |
+
>>> SpecifierSet(">=1.0.0,!=1.0.1").contains("1.3.0a1", prereleases=True)
|
| 904 |
+
True
|
| 905 |
+
"""
|
| 906 |
+
# Ensure that our item is a Version instance.
|
| 907 |
+
if not isinstance(item, Version):
|
| 908 |
+
item = Version(item)
|
| 909 |
+
|
| 910 |
+
# Determine if we're forcing a prerelease or not, if we're not forcing
|
| 911 |
+
# one for this particular filter call, then we'll use whatever the
|
| 912 |
+
# SpecifierSet thinks for whether or not we should support prereleases.
|
| 913 |
+
if prereleases is None:
|
| 914 |
+
prereleases = self.prereleases
|
| 915 |
+
|
| 916 |
+
# We can determine if we're going to allow pre-releases by looking to
|
| 917 |
+
# see if any of the underlying items supports them. If none of them do
|
| 918 |
+
# and this item is a pre-release then we do not allow it and we can
|
| 919 |
+
# short circuit that here.
|
| 920 |
+
# Note: This means that 1.0.dev1 would not be contained in something
|
| 921 |
+
# like >=1.0.devabc however it would be in >=1.0.debabc,>0.0.dev0
|
| 922 |
+
if not prereleases and item.is_prerelease:
|
| 923 |
+
return False
|
| 924 |
+
|
| 925 |
+
if installed and item.is_prerelease:
|
| 926 |
+
item = Version(item.base_version)
|
| 927 |
+
|
| 928 |
+
# We simply dispatch to the underlying specs here to make sure that the
|
| 929 |
+
# given version is contained within all of them.
|
| 930 |
+
# Note: This use of all() here means that an empty set of specifiers
|
| 931 |
+
# will always return True, this is an explicit design decision.
|
| 932 |
+
return all(s.contains(item, prereleases=prereleases) for s in self._specs)
|
| 933 |
+
|
| 934 |
+
def filter(
|
| 935 |
+
self, iterable: Iterable[UnparsedVersionVar], prereleases: Optional[bool] = None
|
| 936 |
+
) -> Iterator[UnparsedVersionVar]:
|
| 937 |
+
"""Filter items in the given iterable, that match the specifiers in this set.
|
| 938 |
+
|
| 939 |
+
:param iterable:
|
| 940 |
+
An iterable that can contain version strings and :class:`Version` instances.
|
| 941 |
+
The items in the iterable will be filtered according to the specifier.
|
| 942 |
+
:param prereleases:
|
| 943 |
+
Whether or not to allow prereleases in the returned iterator. If set to
|
| 944 |
+
``None`` (the default), it will be intelligently decide whether to allow
|
| 945 |
+
prereleases or not (based on the :attr:`prereleases` attribute, and
|
| 946 |
+
whether the only versions matching are prereleases).
|
| 947 |
+
|
| 948 |
+
This method is smarter than just ``filter(SpecifierSet(...).contains, [...])``
|
| 949 |
+
because it implements the rule from :pep:`440` that a prerelease item
|
| 950 |
+
SHOULD be accepted if no other versions match the given specifier.
|
| 951 |
+
|
| 952 |
+
>>> list(SpecifierSet(">=1.2.3").filter(["1.2", "1.3", "1.5a1"]))
|
| 953 |
+
['1.3']
|
| 954 |
+
>>> list(SpecifierSet(">=1.2.3").filter(["1.2", "1.3", Version("1.4")]))
|
| 955 |
+
['1.3', <Version('1.4')>]
|
| 956 |
+
>>> list(SpecifierSet(">=1.2.3").filter(["1.2", "1.5a1"]))
|
| 957 |
+
[]
|
| 958 |
+
>>> list(SpecifierSet(">=1.2.3").filter(["1.3", "1.5a1"], prereleases=True))
|
| 959 |
+
['1.3', '1.5a1']
|
| 960 |
+
>>> list(SpecifierSet(">=1.2.3", prereleases=True).filter(["1.3", "1.5a1"]))
|
| 961 |
+
['1.3', '1.5a1']
|
| 962 |
+
|
| 963 |
+
An "empty" SpecifierSet will filter items based on the presence of prerelease
|
| 964 |
+
versions in the set.
|
| 965 |
+
|
| 966 |
+
>>> list(SpecifierSet("").filter(["1.3", "1.5a1"]))
|
| 967 |
+
['1.3']
|
| 968 |
+
>>> list(SpecifierSet("").filter(["1.5a1"]))
|
| 969 |
+
['1.5a1']
|
| 970 |
+
>>> list(SpecifierSet("", prereleases=True).filter(["1.3", "1.5a1"]))
|
| 971 |
+
['1.3', '1.5a1']
|
| 972 |
+
>>> list(SpecifierSet("").filter(["1.3", "1.5a1"], prereleases=True))
|
| 973 |
+
['1.3', '1.5a1']
|
| 974 |
+
"""
|
| 975 |
+
# Determine if we're forcing a prerelease or not, if we're not forcing
|
| 976 |
+
# one for this particular filter call, then we'll use whatever the
|
| 977 |
+
# SpecifierSet thinks for whether or not we should support prereleases.
|
| 978 |
+
if prereleases is None:
|
| 979 |
+
prereleases = self.prereleases
|
| 980 |
+
|
| 981 |
+
# If we have any specifiers, then we want to wrap our iterable in the
|
| 982 |
+
# filter method for each one, this will act as a logical AND amongst
|
| 983 |
+
# each specifier.
|
| 984 |
+
if self._specs:
|
| 985 |
+
for spec in self._specs:
|
| 986 |
+
iterable = spec.filter(iterable, prereleases=bool(prereleases))
|
| 987 |
+
return iter(iterable)
|
| 988 |
+
# If we do not have any specifiers, then we need to have a rough filter
|
| 989 |
+
# which will filter out any pre-releases, unless there are no final
|
| 990 |
+
# releases.
|
| 991 |
+
else:
|
| 992 |
+
filtered: List[UnparsedVersionVar] = []
|
| 993 |
+
found_prereleases: List[UnparsedVersionVar] = []
|
| 994 |
+
|
| 995 |
+
for item in iterable:
|
| 996 |
+
parsed_version = _coerce_version(item)
|
| 997 |
+
|
| 998 |
+
# Store any item which is a pre-release for later unless we've
|
| 999 |
+
# already found a final version or we are accepting prereleases
|
| 1000 |
+
if parsed_version.is_prerelease and not prereleases:
|
| 1001 |
+
if not filtered:
|
| 1002 |
+
found_prereleases.append(item)
|
| 1003 |
+
else:
|
| 1004 |
+
filtered.append(item)
|
| 1005 |
+
|
| 1006 |
+
# If we've found no items except for pre-releases, then we'll go
|
| 1007 |
+
# ahead and use the pre-releases
|
| 1008 |
+
if not filtered and found_prereleases and prereleases is None:
|
| 1009 |
+
return iter(found_prereleases)
|
| 1010 |
+
|
| 1011 |
+
return iter(filtered)
|
code/LaDi-RL-old-qwen-cod/LaDi-RL-old-qwen-cod/venv/lib64/python3.10/site-packages/setuptools/_vendor/wheel/vendored/packaging/tags.py
ADDED
|
@@ -0,0 +1,571 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# This file is dual licensed under the terms of the Apache License, Version
|
| 2 |
+
# 2.0, and the BSD License. See the LICENSE file in the root of this repository
|
| 3 |
+
# for complete details.
|
| 4 |
+
|
| 5 |
+
import logging
|
| 6 |
+
import platform
|
| 7 |
+
import re
|
| 8 |
+
import struct
|
| 9 |
+
import subprocess
|
| 10 |
+
import sys
|
| 11 |
+
import sysconfig
|
| 12 |
+
from importlib.machinery import EXTENSION_SUFFIXES
|
| 13 |
+
from typing import (
|
| 14 |
+
Dict,
|
| 15 |
+
FrozenSet,
|
| 16 |
+
Iterable,
|
| 17 |
+
Iterator,
|
| 18 |
+
List,
|
| 19 |
+
Optional,
|
| 20 |
+
Sequence,
|
| 21 |
+
Tuple,
|
| 22 |
+
Union,
|
| 23 |
+
cast,
|
| 24 |
+
)
|
| 25 |
+
|
| 26 |
+
from . import _manylinux, _musllinux
|
| 27 |
+
|
| 28 |
+
logger = logging.getLogger(__name__)
|
| 29 |
+
|
| 30 |
+
PythonVersion = Sequence[int]
|
| 31 |
+
MacVersion = Tuple[int, int]
|
| 32 |
+
|
| 33 |
+
INTERPRETER_SHORT_NAMES: Dict[str, str] = {
|
| 34 |
+
"python": "py", # Generic.
|
| 35 |
+
"cpython": "cp",
|
| 36 |
+
"pypy": "pp",
|
| 37 |
+
"ironpython": "ip",
|
| 38 |
+
"jython": "jy",
|
| 39 |
+
}
|
| 40 |
+
|
| 41 |
+
|
| 42 |
+
_32_BIT_INTERPRETER = struct.calcsize("P") == 4
|
| 43 |
+
|
| 44 |
+
|
| 45 |
+
class Tag:
|
| 46 |
+
"""
|
| 47 |
+
A representation of the tag triple for a wheel.
|
| 48 |
+
|
| 49 |
+
Instances are considered immutable and thus are hashable. Equality checking
|
| 50 |
+
is also supported.
|
| 51 |
+
"""
|
| 52 |
+
|
| 53 |
+
__slots__ = ["_interpreter", "_abi", "_platform", "_hash"]
|
| 54 |
+
|
| 55 |
+
def __init__(self, interpreter: str, abi: str, platform: str) -> None:
|
| 56 |
+
self._interpreter = interpreter.lower()
|
| 57 |
+
self._abi = abi.lower()
|
| 58 |
+
self._platform = platform.lower()
|
| 59 |
+
# The __hash__ of every single element in a Set[Tag] will be evaluated each time
|
| 60 |
+
# that a set calls its `.disjoint()` method, which may be called hundreds of
|
| 61 |
+
# times when scanning a page of links for packages with tags matching that
|
| 62 |
+
# Set[Tag]. Pre-computing the value here produces significant speedups for
|
| 63 |
+
# downstream consumers.
|
| 64 |
+
self._hash = hash((self._interpreter, self._abi, self._platform))
|
| 65 |
+
|
| 66 |
+
@property
|
| 67 |
+
def interpreter(self) -> str:
|
| 68 |
+
return self._interpreter
|
| 69 |
+
|
| 70 |
+
@property
|
| 71 |
+
def abi(self) -> str:
|
| 72 |
+
return self._abi
|
| 73 |
+
|
| 74 |
+
@property
|
| 75 |
+
def platform(self) -> str:
|
| 76 |
+
return self._platform
|
| 77 |
+
|
| 78 |
+
def __eq__(self, other: object) -> bool:
|
| 79 |
+
if not isinstance(other, Tag):
|
| 80 |
+
return NotImplemented
|
| 81 |
+
|
| 82 |
+
return (
|
| 83 |
+
(self._hash == other._hash) # Short-circuit ASAP for perf reasons.
|
| 84 |
+
and (self._platform == other._platform)
|
| 85 |
+
and (self._abi == other._abi)
|
| 86 |
+
and (self._interpreter == other._interpreter)
|
| 87 |
+
)
|
| 88 |
+
|
| 89 |
+
def __hash__(self) -> int:
|
| 90 |
+
return self._hash
|
| 91 |
+
|
| 92 |
+
def __str__(self) -> str:
|
| 93 |
+
return f"{self._interpreter}-{self._abi}-{self._platform}"
|
| 94 |
+
|
| 95 |
+
def __repr__(self) -> str:
|
| 96 |
+
return f"<{self} @ {id(self)}>"
|
| 97 |
+
|
| 98 |
+
|
| 99 |
+
def parse_tag(tag: str) -> FrozenSet[Tag]:
|
| 100 |
+
"""
|
| 101 |
+
Parses the provided tag (e.g. `py3-none-any`) into a frozenset of Tag instances.
|
| 102 |
+
|
| 103 |
+
Returning a set is required due to the possibility that the tag is a
|
| 104 |
+
compressed tag set.
|
| 105 |
+
"""
|
| 106 |
+
tags = set()
|
| 107 |
+
interpreters, abis, platforms = tag.split("-")
|
| 108 |
+
for interpreter in interpreters.split("."):
|
| 109 |
+
for abi in abis.split("."):
|
| 110 |
+
for platform_ in platforms.split("."):
|
| 111 |
+
tags.add(Tag(interpreter, abi, platform_))
|
| 112 |
+
return frozenset(tags)
|
| 113 |
+
|
| 114 |
+
|
| 115 |
+
def _get_config_var(name: str, warn: bool = False) -> Union[int, str, None]:
|
| 116 |
+
value: Union[int, str, None] = sysconfig.get_config_var(name)
|
| 117 |
+
if value is None and warn:
|
| 118 |
+
logger.debug(
|
| 119 |
+
"Config variable '%s' is unset, Python ABI tag may be incorrect", name
|
| 120 |
+
)
|
| 121 |
+
return value
|
| 122 |
+
|
| 123 |
+
|
| 124 |
+
def _normalize_string(string: str) -> str:
|
| 125 |
+
return string.replace(".", "_").replace("-", "_").replace(" ", "_")
|
| 126 |
+
|
| 127 |
+
|
| 128 |
+
def _is_threaded_cpython(abis: List[str]) -> bool:
|
| 129 |
+
"""
|
| 130 |
+
Determine if the ABI corresponds to a threaded (`--disable-gil`) build.
|
| 131 |
+
|
| 132 |
+
The threaded builds are indicated by a "t" in the abiflags.
|
| 133 |
+
"""
|
| 134 |
+
if len(abis) == 0:
|
| 135 |
+
return False
|
| 136 |
+
# expect e.g., cp313
|
| 137 |
+
m = re.match(r"cp\d+(.*)", abis[0])
|
| 138 |
+
if not m:
|
| 139 |
+
return False
|
| 140 |
+
abiflags = m.group(1)
|
| 141 |
+
return "t" in abiflags
|
| 142 |
+
|
| 143 |
+
|
| 144 |
+
def _abi3_applies(python_version: PythonVersion, threading: bool) -> bool:
|
| 145 |
+
"""
|
| 146 |
+
Determine if the Python version supports abi3.
|
| 147 |
+
|
| 148 |
+
PEP 384 was first implemented in Python 3.2. The threaded (`--disable-gil`)
|
| 149 |
+
builds do not support abi3.
|
| 150 |
+
"""
|
| 151 |
+
return len(python_version) > 1 and tuple(python_version) >= (3, 2) and not threading
|
| 152 |
+
|
| 153 |
+
|
| 154 |
+
def _cpython_abis(py_version: PythonVersion, warn: bool = False) -> List[str]:
|
| 155 |
+
py_version = tuple(py_version) # To allow for version comparison.
|
| 156 |
+
abis = []
|
| 157 |
+
version = _version_nodot(py_version[:2])
|
| 158 |
+
threading = debug = pymalloc = ucs4 = ""
|
| 159 |
+
with_debug = _get_config_var("Py_DEBUG", warn)
|
| 160 |
+
has_refcount = hasattr(sys, "gettotalrefcount")
|
| 161 |
+
# Windows doesn't set Py_DEBUG, so checking for support of debug-compiled
|
| 162 |
+
# extension modules is the best option.
|
| 163 |
+
# https://github.com/pypa/pip/issues/3383#issuecomment-173267692
|
| 164 |
+
has_ext = "_d.pyd" in EXTENSION_SUFFIXES
|
| 165 |
+
if with_debug or (with_debug is None and (has_refcount or has_ext)):
|
| 166 |
+
debug = "d"
|
| 167 |
+
if py_version >= (3, 13) and _get_config_var("Py_GIL_DISABLED", warn):
|
| 168 |
+
threading = "t"
|
| 169 |
+
if py_version < (3, 8):
|
| 170 |
+
with_pymalloc = _get_config_var("WITH_PYMALLOC", warn)
|
| 171 |
+
if with_pymalloc or with_pymalloc is None:
|
| 172 |
+
pymalloc = "m"
|
| 173 |
+
if py_version < (3, 3):
|
| 174 |
+
unicode_size = _get_config_var("Py_UNICODE_SIZE", warn)
|
| 175 |
+
if unicode_size == 4 or (
|
| 176 |
+
unicode_size is None and sys.maxunicode == 0x10FFFF
|
| 177 |
+
):
|
| 178 |
+
ucs4 = "u"
|
| 179 |
+
elif debug:
|
| 180 |
+
# Debug builds can also load "normal" extension modules.
|
| 181 |
+
# We can also assume no UCS-4 or pymalloc requirement.
|
| 182 |
+
abis.append(f"cp{version}{threading}")
|
| 183 |
+
abis.insert(0, f"cp{version}{threading}{debug}{pymalloc}{ucs4}")
|
| 184 |
+
return abis
|
| 185 |
+
|
| 186 |
+
|
| 187 |
+
def cpython_tags(
|
| 188 |
+
python_version: Optional[PythonVersion] = None,
|
| 189 |
+
abis: Optional[Iterable[str]] = None,
|
| 190 |
+
platforms: Optional[Iterable[str]] = None,
|
| 191 |
+
*,
|
| 192 |
+
warn: bool = False,
|
| 193 |
+
) -> Iterator[Tag]:
|
| 194 |
+
"""
|
| 195 |
+
Yields the tags for a CPython interpreter.
|
| 196 |
+
|
| 197 |
+
The tags consist of:
|
| 198 |
+
- cp<python_version>-<abi>-<platform>
|
| 199 |
+
- cp<python_version>-abi3-<platform>
|
| 200 |
+
- cp<python_version>-none-<platform>
|
| 201 |
+
- cp<less than python_version>-abi3-<platform> # Older Python versions down to 3.2.
|
| 202 |
+
|
| 203 |
+
If python_version only specifies a major version then user-provided ABIs and
|
| 204 |
+
the 'none' ABItag will be used.
|
| 205 |
+
|
| 206 |
+
If 'abi3' or 'none' are specified in 'abis' then they will be yielded at
|
| 207 |
+
their normal position and not at the beginning.
|
| 208 |
+
"""
|
| 209 |
+
if not python_version:
|
| 210 |
+
python_version = sys.version_info[:2]
|
| 211 |
+
|
| 212 |
+
interpreter = f"cp{_version_nodot(python_version[:2])}"
|
| 213 |
+
|
| 214 |
+
if abis is None:
|
| 215 |
+
if len(python_version) > 1:
|
| 216 |
+
abis = _cpython_abis(python_version, warn)
|
| 217 |
+
else:
|
| 218 |
+
abis = []
|
| 219 |
+
abis = list(abis)
|
| 220 |
+
# 'abi3' and 'none' are explicitly handled later.
|
| 221 |
+
for explicit_abi in ("abi3", "none"):
|
| 222 |
+
try:
|
| 223 |
+
abis.remove(explicit_abi)
|
| 224 |
+
except ValueError:
|
| 225 |
+
pass
|
| 226 |
+
|
| 227 |
+
platforms = list(platforms or platform_tags())
|
| 228 |
+
for abi in abis:
|
| 229 |
+
for platform_ in platforms:
|
| 230 |
+
yield Tag(interpreter, abi, platform_)
|
| 231 |
+
|
| 232 |
+
threading = _is_threaded_cpython(abis)
|
| 233 |
+
use_abi3 = _abi3_applies(python_version, threading)
|
| 234 |
+
if use_abi3:
|
| 235 |
+
yield from (Tag(interpreter, "abi3", platform_) for platform_ in platforms)
|
| 236 |
+
yield from (Tag(interpreter, "none", platform_) for platform_ in platforms)
|
| 237 |
+
|
| 238 |
+
if use_abi3:
|
| 239 |
+
for minor_version in range(python_version[1] - 1, 1, -1):
|
| 240 |
+
for platform_ in platforms:
|
| 241 |
+
interpreter = "cp{version}".format(
|
| 242 |
+
version=_version_nodot((python_version[0], minor_version))
|
| 243 |
+
)
|
| 244 |
+
yield Tag(interpreter, "abi3", platform_)
|
| 245 |
+
|
| 246 |
+
|
| 247 |
+
def _generic_abi() -> List[str]:
|
| 248 |
+
"""
|
| 249 |
+
Return the ABI tag based on EXT_SUFFIX.
|
| 250 |
+
"""
|
| 251 |
+
# The following are examples of `EXT_SUFFIX`.
|
| 252 |
+
# We want to keep the parts which are related to the ABI and remove the
|
| 253 |
+
# parts which are related to the platform:
|
| 254 |
+
# - linux: '.cpython-310-x86_64-linux-gnu.so' => cp310
|
| 255 |
+
# - mac: '.cpython-310-darwin.so' => cp310
|
| 256 |
+
# - win: '.cp310-win_amd64.pyd' => cp310
|
| 257 |
+
# - win: '.pyd' => cp37 (uses _cpython_abis())
|
| 258 |
+
# - pypy: '.pypy38-pp73-x86_64-linux-gnu.so' => pypy38_pp73
|
| 259 |
+
# - graalpy: '.graalpy-38-native-x86_64-darwin.dylib'
|
| 260 |
+
# => graalpy_38_native
|
| 261 |
+
|
| 262 |
+
ext_suffix = _get_config_var("EXT_SUFFIX", warn=True)
|
| 263 |
+
if not isinstance(ext_suffix, str) or ext_suffix[0] != ".":
|
| 264 |
+
raise SystemError("invalid sysconfig.get_config_var('EXT_SUFFIX')")
|
| 265 |
+
parts = ext_suffix.split(".")
|
| 266 |
+
if len(parts) < 3:
|
| 267 |
+
# CPython3.7 and earlier uses ".pyd" on Windows.
|
| 268 |
+
return _cpython_abis(sys.version_info[:2])
|
| 269 |
+
soabi = parts[1]
|
| 270 |
+
if soabi.startswith("cpython"):
|
| 271 |
+
# non-windows
|
| 272 |
+
abi = "cp" + soabi.split("-")[1]
|
| 273 |
+
elif soabi.startswith("cp"):
|
| 274 |
+
# windows
|
| 275 |
+
abi = soabi.split("-")[0]
|
| 276 |
+
elif soabi.startswith("pypy"):
|
| 277 |
+
abi = "-".join(soabi.split("-")[:2])
|
| 278 |
+
elif soabi.startswith("graalpy"):
|
| 279 |
+
abi = "-".join(soabi.split("-")[:3])
|
| 280 |
+
elif soabi:
|
| 281 |
+
# pyston, ironpython, others?
|
| 282 |
+
abi = soabi
|
| 283 |
+
else:
|
| 284 |
+
return []
|
| 285 |
+
return [_normalize_string(abi)]
|
| 286 |
+
|
| 287 |
+
|
| 288 |
+
def generic_tags(
|
| 289 |
+
interpreter: Optional[str] = None,
|
| 290 |
+
abis: Optional[Iterable[str]] = None,
|
| 291 |
+
platforms: Optional[Iterable[str]] = None,
|
| 292 |
+
*,
|
| 293 |
+
warn: bool = False,
|
| 294 |
+
) -> Iterator[Tag]:
|
| 295 |
+
"""
|
| 296 |
+
Yields the tags for a generic interpreter.
|
| 297 |
+
|
| 298 |
+
The tags consist of:
|
| 299 |
+
- <interpreter>-<abi>-<platform>
|
| 300 |
+
|
| 301 |
+
The "none" ABI will be added if it was not explicitly provided.
|
| 302 |
+
"""
|
| 303 |
+
if not interpreter:
|
| 304 |
+
interp_name = interpreter_name()
|
| 305 |
+
interp_version = interpreter_version(warn=warn)
|
| 306 |
+
interpreter = "".join([interp_name, interp_version])
|
| 307 |
+
if abis is None:
|
| 308 |
+
abis = _generic_abi()
|
| 309 |
+
else:
|
| 310 |
+
abis = list(abis)
|
| 311 |
+
platforms = list(platforms or platform_tags())
|
| 312 |
+
if "none" not in abis:
|
| 313 |
+
abis.append("none")
|
| 314 |
+
for abi in abis:
|
| 315 |
+
for platform_ in platforms:
|
| 316 |
+
yield Tag(interpreter, abi, platform_)
|
| 317 |
+
|
| 318 |
+
|
| 319 |
+
def _py_interpreter_range(py_version: PythonVersion) -> Iterator[str]:
|
| 320 |
+
"""
|
| 321 |
+
Yields Python versions in descending order.
|
| 322 |
+
|
| 323 |
+
After the latest version, the major-only version will be yielded, and then
|
| 324 |
+
all previous versions of that major version.
|
| 325 |
+
"""
|
| 326 |
+
if len(py_version) > 1:
|
| 327 |
+
yield f"py{_version_nodot(py_version[:2])}"
|
| 328 |
+
yield f"py{py_version[0]}"
|
| 329 |
+
if len(py_version) > 1:
|
| 330 |
+
for minor in range(py_version[1] - 1, -1, -1):
|
| 331 |
+
yield f"py{_version_nodot((py_version[0], minor))}"
|
| 332 |
+
|
| 333 |
+
|
| 334 |
+
def compatible_tags(
|
| 335 |
+
python_version: Optional[PythonVersion] = None,
|
| 336 |
+
interpreter: Optional[str] = None,
|
| 337 |
+
platforms: Optional[Iterable[str]] = None,
|
| 338 |
+
) -> Iterator[Tag]:
|
| 339 |
+
"""
|
| 340 |
+
Yields the sequence of tags that are compatible with a specific version of Python.
|
| 341 |
+
|
| 342 |
+
The tags consist of:
|
| 343 |
+
- py*-none-<platform>
|
| 344 |
+
- <interpreter>-none-any # ... if `interpreter` is provided.
|
| 345 |
+
- py*-none-any
|
| 346 |
+
"""
|
| 347 |
+
if not python_version:
|
| 348 |
+
python_version = sys.version_info[:2]
|
| 349 |
+
platforms = list(platforms or platform_tags())
|
| 350 |
+
for version in _py_interpreter_range(python_version):
|
| 351 |
+
for platform_ in platforms:
|
| 352 |
+
yield Tag(version, "none", platform_)
|
| 353 |
+
if interpreter:
|
| 354 |
+
yield Tag(interpreter, "none", "any")
|
| 355 |
+
for version in _py_interpreter_range(python_version):
|
| 356 |
+
yield Tag(version, "none", "any")
|
| 357 |
+
|
| 358 |
+
|
| 359 |
+
def _mac_arch(arch: str, is_32bit: bool = _32_BIT_INTERPRETER) -> str:
|
| 360 |
+
if not is_32bit:
|
| 361 |
+
return arch
|
| 362 |
+
|
| 363 |
+
if arch.startswith("ppc"):
|
| 364 |
+
return "ppc"
|
| 365 |
+
|
| 366 |
+
return "i386"
|
| 367 |
+
|
| 368 |
+
|
| 369 |
+
def _mac_binary_formats(version: MacVersion, cpu_arch: str) -> List[str]:
|
| 370 |
+
formats = [cpu_arch]
|
| 371 |
+
if cpu_arch == "x86_64":
|
| 372 |
+
if version < (10, 4):
|
| 373 |
+
return []
|
| 374 |
+
formats.extend(["intel", "fat64", "fat32"])
|
| 375 |
+
|
| 376 |
+
elif cpu_arch == "i386":
|
| 377 |
+
if version < (10, 4):
|
| 378 |
+
return []
|
| 379 |
+
formats.extend(["intel", "fat32", "fat"])
|
| 380 |
+
|
| 381 |
+
elif cpu_arch == "ppc64":
|
| 382 |
+
# TODO: Need to care about 32-bit PPC for ppc64 through 10.2?
|
| 383 |
+
if version > (10, 5) or version < (10, 4):
|
| 384 |
+
return []
|
| 385 |
+
formats.append("fat64")
|
| 386 |
+
|
| 387 |
+
elif cpu_arch == "ppc":
|
| 388 |
+
if version > (10, 6):
|
| 389 |
+
return []
|
| 390 |
+
formats.extend(["fat32", "fat"])
|
| 391 |
+
|
| 392 |
+
if cpu_arch in {"arm64", "x86_64"}:
|
| 393 |
+
formats.append("universal2")
|
| 394 |
+
|
| 395 |
+
if cpu_arch in {"x86_64", "i386", "ppc64", "ppc", "intel"}:
|
| 396 |
+
formats.append("universal")
|
| 397 |
+
|
| 398 |
+
return formats
|
| 399 |
+
|
| 400 |
+
|
| 401 |
+
def mac_platforms(
|
| 402 |
+
version: Optional[MacVersion] = None, arch: Optional[str] = None
|
| 403 |
+
) -> Iterator[str]:
|
| 404 |
+
"""
|
| 405 |
+
Yields the platform tags for a macOS system.
|
| 406 |
+
|
| 407 |
+
The `version` parameter is a two-item tuple specifying the macOS version to
|
| 408 |
+
generate platform tags for. The `arch` parameter is the CPU architecture to
|
| 409 |
+
generate platform tags for. Both parameters default to the appropriate value
|
| 410 |
+
for the current system.
|
| 411 |
+
"""
|
| 412 |
+
version_str, _, cpu_arch = platform.mac_ver()
|
| 413 |
+
if version is None:
|
| 414 |
+
version = cast("MacVersion", tuple(map(int, version_str.split(".")[:2])))
|
| 415 |
+
if version == (10, 16):
|
| 416 |
+
# When built against an older macOS SDK, Python will report macOS 10.16
|
| 417 |
+
# instead of the real version.
|
| 418 |
+
version_str = subprocess.run(
|
| 419 |
+
[
|
| 420 |
+
sys.executable,
|
| 421 |
+
"-sS",
|
| 422 |
+
"-c",
|
| 423 |
+
"import platform; print(platform.mac_ver()[0])",
|
| 424 |
+
],
|
| 425 |
+
check=True,
|
| 426 |
+
env={"SYSTEM_VERSION_COMPAT": "0"},
|
| 427 |
+
stdout=subprocess.PIPE,
|
| 428 |
+
text=True,
|
| 429 |
+
).stdout
|
| 430 |
+
version = cast("MacVersion", tuple(map(int, version_str.split(".")[:2])))
|
| 431 |
+
else:
|
| 432 |
+
version = version
|
| 433 |
+
if arch is None:
|
| 434 |
+
arch = _mac_arch(cpu_arch)
|
| 435 |
+
else:
|
| 436 |
+
arch = arch
|
| 437 |
+
|
| 438 |
+
if (10, 0) <= version and version < (11, 0):
|
| 439 |
+
# Prior to Mac OS 11, each yearly release of Mac OS bumped the
|
| 440 |
+
# "minor" version number. The major version was always 10.
|
| 441 |
+
for minor_version in range(version[1], -1, -1):
|
| 442 |
+
compat_version = 10, minor_version
|
| 443 |
+
binary_formats = _mac_binary_formats(compat_version, arch)
|
| 444 |
+
for binary_format in binary_formats:
|
| 445 |
+
yield "macosx_{major}_{minor}_{binary_format}".format(
|
| 446 |
+
major=10, minor=minor_version, binary_format=binary_format
|
| 447 |
+
)
|
| 448 |
+
|
| 449 |
+
if version >= (11, 0):
|
| 450 |
+
# Starting with Mac OS 11, each yearly release bumps the major version
|
| 451 |
+
# number. The minor versions are now the midyear updates.
|
| 452 |
+
for major_version in range(version[0], 10, -1):
|
| 453 |
+
compat_version = major_version, 0
|
| 454 |
+
binary_formats = _mac_binary_formats(compat_version, arch)
|
| 455 |
+
for binary_format in binary_formats:
|
| 456 |
+
yield "macosx_{major}_{minor}_{binary_format}".format(
|
| 457 |
+
major=major_version, minor=0, binary_format=binary_format
|
| 458 |
+
)
|
| 459 |
+
|
| 460 |
+
if version >= (11, 0):
|
| 461 |
+
# Mac OS 11 on x86_64 is compatible with binaries from previous releases.
|
| 462 |
+
# Arm64 support was introduced in 11.0, so no Arm binaries from previous
|
| 463 |
+
# releases exist.
|
| 464 |
+
#
|
| 465 |
+
# However, the "universal2" binary format can have a
|
| 466 |
+
# macOS version earlier than 11.0 when the x86_64 part of the binary supports
|
| 467 |
+
# that version of macOS.
|
| 468 |
+
if arch == "x86_64":
|
| 469 |
+
for minor_version in range(16, 3, -1):
|
| 470 |
+
compat_version = 10, minor_version
|
| 471 |
+
binary_formats = _mac_binary_formats(compat_version, arch)
|
| 472 |
+
for binary_format in binary_formats:
|
| 473 |
+
yield "macosx_{major}_{minor}_{binary_format}".format(
|
| 474 |
+
major=compat_version[0],
|
| 475 |
+
minor=compat_version[1],
|
| 476 |
+
binary_format=binary_format,
|
| 477 |
+
)
|
| 478 |
+
else:
|
| 479 |
+
for minor_version in range(16, 3, -1):
|
| 480 |
+
compat_version = 10, minor_version
|
| 481 |
+
binary_format = "universal2"
|
| 482 |
+
yield "macosx_{major}_{minor}_{binary_format}".format(
|
| 483 |
+
major=compat_version[0],
|
| 484 |
+
minor=compat_version[1],
|
| 485 |
+
binary_format=binary_format,
|
| 486 |
+
)
|
| 487 |
+
|
| 488 |
+
|
| 489 |
+
def _linux_platforms(is_32bit: bool = _32_BIT_INTERPRETER) -> Iterator[str]:
|
| 490 |
+
linux = _normalize_string(sysconfig.get_platform())
|
| 491 |
+
if not linux.startswith("linux_"):
|
| 492 |
+
# we should never be here, just yield the sysconfig one and return
|
| 493 |
+
yield linux
|
| 494 |
+
return
|
| 495 |
+
if is_32bit:
|
| 496 |
+
if linux == "linux_x86_64":
|
| 497 |
+
linux = "linux_i686"
|
| 498 |
+
elif linux == "linux_aarch64":
|
| 499 |
+
linux = "linux_armv8l"
|
| 500 |
+
_, arch = linux.split("_", 1)
|
| 501 |
+
archs = {"armv8l": ["armv8l", "armv7l"]}.get(arch, [arch])
|
| 502 |
+
yield from _manylinux.platform_tags(archs)
|
| 503 |
+
yield from _musllinux.platform_tags(archs)
|
| 504 |
+
for arch in archs:
|
| 505 |
+
yield f"linux_{arch}"
|
| 506 |
+
|
| 507 |
+
|
| 508 |
+
def _generic_platforms() -> Iterator[str]:
|
| 509 |
+
yield _normalize_string(sysconfig.get_platform())
|
| 510 |
+
|
| 511 |
+
|
| 512 |
+
def platform_tags() -> Iterator[str]:
|
| 513 |
+
"""
|
| 514 |
+
Provides the platform tags for this installation.
|
| 515 |
+
"""
|
| 516 |
+
if platform.system() == "Darwin":
|
| 517 |
+
return mac_platforms()
|
| 518 |
+
elif platform.system() == "Linux":
|
| 519 |
+
return _linux_platforms()
|
| 520 |
+
else:
|
| 521 |
+
return _generic_platforms()
|
| 522 |
+
|
| 523 |
+
|
| 524 |
+
def interpreter_name() -> str:
|
| 525 |
+
"""
|
| 526 |
+
Returns the name of the running interpreter.
|
| 527 |
+
|
| 528 |
+
Some implementations have a reserved, two-letter abbreviation which will
|
| 529 |
+
be returned when appropriate.
|
| 530 |
+
"""
|
| 531 |
+
name = sys.implementation.name
|
| 532 |
+
return INTERPRETER_SHORT_NAMES.get(name) or name
|
| 533 |
+
|
| 534 |
+
|
| 535 |
+
def interpreter_version(*, warn: bool = False) -> str:
|
| 536 |
+
"""
|
| 537 |
+
Returns the version of the running interpreter.
|
| 538 |
+
"""
|
| 539 |
+
version = _get_config_var("py_version_nodot", warn=warn)
|
| 540 |
+
if version:
|
| 541 |
+
version = str(version)
|
| 542 |
+
else:
|
| 543 |
+
version = _version_nodot(sys.version_info[:2])
|
| 544 |
+
return version
|
| 545 |
+
|
| 546 |
+
|
| 547 |
+
def _version_nodot(version: PythonVersion) -> str:
|
| 548 |
+
return "".join(map(str, version))
|
| 549 |
+
|
| 550 |
+
|
| 551 |
+
def sys_tags(*, warn: bool = False) -> Iterator[Tag]:
|
| 552 |
+
"""
|
| 553 |
+
Returns the sequence of tag triples for the running interpreter.
|
| 554 |
+
|
| 555 |
+
The order of the sequence corresponds to priority order for the
|
| 556 |
+
interpreter, from most to least important.
|
| 557 |
+
"""
|
| 558 |
+
|
| 559 |
+
interp_name = interpreter_name()
|
| 560 |
+
if interp_name == "cp":
|
| 561 |
+
yield from cpython_tags(warn=warn)
|
| 562 |
+
else:
|
| 563 |
+
yield from generic_tags()
|
| 564 |
+
|
| 565 |
+
if interp_name == "pp":
|
| 566 |
+
interp = "pp3"
|
| 567 |
+
elif interp_name == "cp":
|
| 568 |
+
interp = "cp" + interpreter_version(warn=warn)
|
| 569 |
+
else:
|
| 570 |
+
interp = None
|
| 571 |
+
yield from compatible_tags(interpreter=interp)
|
code/LaDi-RL-old-qwen-cod/LaDi-RL-old-qwen-cod/venv/lib64/python3.10/site-packages/setuptools/_vendor/wheel/vendored/packaging/utils.py
ADDED
|
@@ -0,0 +1,172 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# This file is dual licensed under the terms of the Apache License, Version
|
| 2 |
+
# 2.0, and the BSD License. See the LICENSE file in the root of this repository
|
| 3 |
+
# for complete details.
|
| 4 |
+
|
| 5 |
+
import re
|
| 6 |
+
from typing import FrozenSet, NewType, Tuple, Union, cast
|
| 7 |
+
|
| 8 |
+
from .tags import Tag, parse_tag
|
| 9 |
+
from .version import InvalidVersion, Version
|
| 10 |
+
|
| 11 |
+
BuildTag = Union[Tuple[()], Tuple[int, str]]
|
| 12 |
+
NormalizedName = NewType("NormalizedName", str)
|
| 13 |
+
|
| 14 |
+
|
| 15 |
+
class InvalidName(ValueError):
|
| 16 |
+
"""
|
| 17 |
+
An invalid distribution name; users should refer to the packaging user guide.
|
| 18 |
+
"""
|
| 19 |
+
|
| 20 |
+
|
| 21 |
+
class InvalidWheelFilename(ValueError):
|
| 22 |
+
"""
|
| 23 |
+
An invalid wheel filename was found, users should refer to PEP 427.
|
| 24 |
+
"""
|
| 25 |
+
|
| 26 |
+
|
| 27 |
+
class InvalidSdistFilename(ValueError):
|
| 28 |
+
"""
|
| 29 |
+
An invalid sdist filename was found, users should refer to the packaging user guide.
|
| 30 |
+
"""
|
| 31 |
+
|
| 32 |
+
|
| 33 |
+
# Core metadata spec for `Name`
|
| 34 |
+
_validate_regex = re.compile(
|
| 35 |
+
r"^([A-Z0-9]|[A-Z0-9][A-Z0-9._-]*[A-Z0-9])$", re.IGNORECASE
|
| 36 |
+
)
|
| 37 |
+
_canonicalize_regex = re.compile(r"[-_.]+")
|
| 38 |
+
_normalized_regex = re.compile(r"^([a-z0-9]|[a-z0-9]([a-z0-9-](?!--))*[a-z0-9])$")
|
| 39 |
+
# PEP 427: The build number must start with a digit.
|
| 40 |
+
_build_tag_regex = re.compile(r"(\d+)(.*)")
|
| 41 |
+
|
| 42 |
+
|
| 43 |
+
def canonicalize_name(name: str, *, validate: bool = False) -> NormalizedName:
|
| 44 |
+
if validate and not _validate_regex.match(name):
|
| 45 |
+
raise InvalidName(f"name is invalid: {name!r}")
|
| 46 |
+
# This is taken from PEP 503.
|
| 47 |
+
value = _canonicalize_regex.sub("-", name).lower()
|
| 48 |
+
return cast(NormalizedName, value)
|
| 49 |
+
|
| 50 |
+
|
| 51 |
+
def is_normalized_name(name: str) -> bool:
|
| 52 |
+
return _normalized_regex.match(name) is not None
|
| 53 |
+
|
| 54 |
+
|
| 55 |
+
def canonicalize_version(
|
| 56 |
+
version: Union[Version, str], *, strip_trailing_zero: bool = True
|
| 57 |
+
) -> str:
|
| 58 |
+
"""
|
| 59 |
+
This is very similar to Version.__str__, but has one subtle difference
|
| 60 |
+
with the way it handles the release segment.
|
| 61 |
+
"""
|
| 62 |
+
if isinstance(version, str):
|
| 63 |
+
try:
|
| 64 |
+
parsed = Version(version)
|
| 65 |
+
except InvalidVersion:
|
| 66 |
+
# Legacy versions cannot be normalized
|
| 67 |
+
return version
|
| 68 |
+
else:
|
| 69 |
+
parsed = version
|
| 70 |
+
|
| 71 |
+
parts = []
|
| 72 |
+
|
| 73 |
+
# Epoch
|
| 74 |
+
if parsed.epoch != 0:
|
| 75 |
+
parts.append(f"{parsed.epoch}!")
|
| 76 |
+
|
| 77 |
+
# Release segment
|
| 78 |
+
release_segment = ".".join(str(x) for x in parsed.release)
|
| 79 |
+
if strip_trailing_zero:
|
| 80 |
+
# NB: This strips trailing '.0's to normalize
|
| 81 |
+
release_segment = re.sub(r"(\.0)+$", "", release_segment)
|
| 82 |
+
parts.append(release_segment)
|
| 83 |
+
|
| 84 |
+
# Pre-release
|
| 85 |
+
if parsed.pre is not None:
|
| 86 |
+
parts.append("".join(str(x) for x in parsed.pre))
|
| 87 |
+
|
| 88 |
+
# Post-release
|
| 89 |
+
if parsed.post is not None:
|
| 90 |
+
parts.append(f".post{parsed.post}")
|
| 91 |
+
|
| 92 |
+
# Development release
|
| 93 |
+
if parsed.dev is not None:
|
| 94 |
+
parts.append(f".dev{parsed.dev}")
|
| 95 |
+
|
| 96 |
+
# Local version segment
|
| 97 |
+
if parsed.local is not None:
|
| 98 |
+
parts.append(f"+{parsed.local}")
|
| 99 |
+
|
| 100 |
+
return "".join(parts)
|
| 101 |
+
|
| 102 |
+
|
| 103 |
+
def parse_wheel_filename(
|
| 104 |
+
filename: str,
|
| 105 |
+
) -> Tuple[NormalizedName, Version, BuildTag, FrozenSet[Tag]]:
|
| 106 |
+
if not filename.endswith(".whl"):
|
| 107 |
+
raise InvalidWheelFilename(
|
| 108 |
+
f"Invalid wheel filename (extension must be '.whl'): {filename}"
|
| 109 |
+
)
|
| 110 |
+
|
| 111 |
+
filename = filename[:-4]
|
| 112 |
+
dashes = filename.count("-")
|
| 113 |
+
if dashes not in (4, 5):
|
| 114 |
+
raise InvalidWheelFilename(
|
| 115 |
+
f"Invalid wheel filename (wrong number of parts): {filename}"
|
| 116 |
+
)
|
| 117 |
+
|
| 118 |
+
parts = filename.split("-", dashes - 2)
|
| 119 |
+
name_part = parts[0]
|
| 120 |
+
# See PEP 427 for the rules on escaping the project name.
|
| 121 |
+
if "__" in name_part or re.match(r"^[\w\d._]*$", name_part, re.UNICODE) is None:
|
| 122 |
+
raise InvalidWheelFilename(f"Invalid project name: {filename}")
|
| 123 |
+
name = canonicalize_name(name_part)
|
| 124 |
+
|
| 125 |
+
try:
|
| 126 |
+
version = Version(parts[1])
|
| 127 |
+
except InvalidVersion as e:
|
| 128 |
+
raise InvalidWheelFilename(
|
| 129 |
+
f"Invalid wheel filename (invalid version): {filename}"
|
| 130 |
+
) from e
|
| 131 |
+
|
| 132 |
+
if dashes == 5:
|
| 133 |
+
build_part = parts[2]
|
| 134 |
+
build_match = _build_tag_regex.match(build_part)
|
| 135 |
+
if build_match is None:
|
| 136 |
+
raise InvalidWheelFilename(
|
| 137 |
+
f"Invalid build number: {build_part} in '{filename}'"
|
| 138 |
+
)
|
| 139 |
+
build = cast(BuildTag, (int(build_match.group(1)), build_match.group(2)))
|
| 140 |
+
else:
|
| 141 |
+
build = ()
|
| 142 |
+
tags = parse_tag(parts[-1])
|
| 143 |
+
return (name, version, build, tags)
|
| 144 |
+
|
| 145 |
+
|
| 146 |
+
def parse_sdist_filename(filename: str) -> Tuple[NormalizedName, Version]:
|
| 147 |
+
if filename.endswith(".tar.gz"):
|
| 148 |
+
file_stem = filename[: -len(".tar.gz")]
|
| 149 |
+
elif filename.endswith(".zip"):
|
| 150 |
+
file_stem = filename[: -len(".zip")]
|
| 151 |
+
else:
|
| 152 |
+
raise InvalidSdistFilename(
|
| 153 |
+
f"Invalid sdist filename (extension must be '.tar.gz' or '.zip'):"
|
| 154 |
+
f" {filename}"
|
| 155 |
+
)
|
| 156 |
+
|
| 157 |
+
# We are requiring a PEP 440 version, which cannot contain dashes,
|
| 158 |
+
# so we split on the last dash.
|
| 159 |
+
name_part, sep, version_part = file_stem.rpartition("-")
|
| 160 |
+
if not sep:
|
| 161 |
+
raise InvalidSdistFilename(f"Invalid sdist filename: {filename}")
|
| 162 |
+
|
| 163 |
+
name = canonicalize_name(name_part)
|
| 164 |
+
|
| 165 |
+
try:
|
| 166 |
+
version = Version(version_part)
|
| 167 |
+
except InvalidVersion as e:
|
| 168 |
+
raise InvalidSdistFilename(
|
| 169 |
+
f"Invalid sdist filename (invalid version): {filename}"
|
| 170 |
+
) from e
|
| 171 |
+
|
| 172 |
+
return (name, version)
|
code/LaDi-RL-old-qwen-cod/LaDi-RL-old-qwen-cod/venv/lib64/python3.10/site-packages/setuptools/_vendor/wheel/vendored/packaging/version.py
ADDED
|
@@ -0,0 +1,561 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# This file is dual licensed under the terms of the Apache License, Version
|
| 2 |
+
# 2.0, and the BSD License. See the LICENSE file in the root of this repository
|
| 3 |
+
# for complete details.
|
| 4 |
+
"""
|
| 5 |
+
.. testsetup::
|
| 6 |
+
|
| 7 |
+
from packaging.version import parse, Version
|
| 8 |
+
"""
|
| 9 |
+
|
| 10 |
+
import itertools
|
| 11 |
+
import re
|
| 12 |
+
from typing import Any, Callable, NamedTuple, Optional, SupportsInt, Tuple, Union
|
| 13 |
+
|
| 14 |
+
from ._structures import Infinity, InfinityType, NegativeInfinity, NegativeInfinityType
|
| 15 |
+
|
| 16 |
+
__all__ = ["VERSION_PATTERN", "parse", "Version", "InvalidVersion"]
|
| 17 |
+
|
| 18 |
+
LocalType = Tuple[Union[int, str], ...]
|
| 19 |
+
|
| 20 |
+
CmpPrePostDevType = Union[InfinityType, NegativeInfinityType, Tuple[str, int]]
|
| 21 |
+
CmpLocalType = Union[
|
| 22 |
+
NegativeInfinityType,
|
| 23 |
+
Tuple[Union[Tuple[int, str], Tuple[NegativeInfinityType, Union[int, str]]], ...],
|
| 24 |
+
]
|
| 25 |
+
CmpKey = Tuple[
|
| 26 |
+
int,
|
| 27 |
+
Tuple[int, ...],
|
| 28 |
+
CmpPrePostDevType,
|
| 29 |
+
CmpPrePostDevType,
|
| 30 |
+
CmpPrePostDevType,
|
| 31 |
+
CmpLocalType,
|
| 32 |
+
]
|
| 33 |
+
VersionComparisonMethod = Callable[[CmpKey, CmpKey], bool]
|
| 34 |
+
|
| 35 |
+
|
| 36 |
+
class _Version(NamedTuple):
|
| 37 |
+
epoch: int
|
| 38 |
+
release: Tuple[int, ...]
|
| 39 |
+
dev: Optional[Tuple[str, int]]
|
| 40 |
+
pre: Optional[Tuple[str, int]]
|
| 41 |
+
post: Optional[Tuple[str, int]]
|
| 42 |
+
local: Optional[LocalType]
|
| 43 |
+
|
| 44 |
+
|
| 45 |
+
def parse(version: str) -> "Version":
|
| 46 |
+
"""Parse the given version string.
|
| 47 |
+
|
| 48 |
+
>>> parse('1.0.dev1')
|
| 49 |
+
<Version('1.0.dev1')>
|
| 50 |
+
|
| 51 |
+
:param version: The version string to parse.
|
| 52 |
+
:raises InvalidVersion: When the version string is not a valid version.
|
| 53 |
+
"""
|
| 54 |
+
return Version(version)
|
| 55 |
+
|
| 56 |
+
|
| 57 |
+
class InvalidVersion(ValueError):
|
| 58 |
+
"""Raised when a version string is not a valid version.
|
| 59 |
+
|
| 60 |
+
>>> Version("invalid")
|
| 61 |
+
Traceback (most recent call last):
|
| 62 |
+
...
|
| 63 |
+
packaging.version.InvalidVersion: Invalid version: 'invalid'
|
| 64 |
+
"""
|
| 65 |
+
|
| 66 |
+
|
| 67 |
+
class _BaseVersion:
|
| 68 |
+
_key: Tuple[Any, ...]
|
| 69 |
+
|
| 70 |
+
def __hash__(self) -> int:
|
| 71 |
+
return hash(self._key)
|
| 72 |
+
|
| 73 |
+
# Please keep the duplicated `isinstance` check
|
| 74 |
+
# in the six comparisons hereunder
|
| 75 |
+
# unless you find a way to avoid adding overhead function calls.
|
| 76 |
+
def __lt__(self, other: "_BaseVersion") -> bool:
|
| 77 |
+
if not isinstance(other, _BaseVersion):
|
| 78 |
+
return NotImplemented
|
| 79 |
+
|
| 80 |
+
return self._key < other._key
|
| 81 |
+
|
| 82 |
+
def __le__(self, other: "_BaseVersion") -> bool:
|
| 83 |
+
if not isinstance(other, _BaseVersion):
|
| 84 |
+
return NotImplemented
|
| 85 |
+
|
| 86 |
+
return self._key <= other._key
|
| 87 |
+
|
| 88 |
+
def __eq__(self, other: object) -> bool:
|
| 89 |
+
if not isinstance(other, _BaseVersion):
|
| 90 |
+
return NotImplemented
|
| 91 |
+
|
| 92 |
+
return self._key == other._key
|
| 93 |
+
|
| 94 |
+
def __ge__(self, other: "_BaseVersion") -> bool:
|
| 95 |
+
if not isinstance(other, _BaseVersion):
|
| 96 |
+
return NotImplemented
|
| 97 |
+
|
| 98 |
+
return self._key >= other._key
|
| 99 |
+
|
| 100 |
+
def __gt__(self, other: "_BaseVersion") -> bool:
|
| 101 |
+
if not isinstance(other, _BaseVersion):
|
| 102 |
+
return NotImplemented
|
| 103 |
+
|
| 104 |
+
return self._key > other._key
|
| 105 |
+
|
| 106 |
+
def __ne__(self, other: object) -> bool:
|
| 107 |
+
if not isinstance(other, _BaseVersion):
|
| 108 |
+
return NotImplemented
|
| 109 |
+
|
| 110 |
+
return self._key != other._key
|
| 111 |
+
|
| 112 |
+
|
| 113 |
+
# Deliberately not anchored to the start and end of the string, to make it
|
| 114 |
+
# easier for 3rd party code to reuse
|
| 115 |
+
_VERSION_PATTERN = r"""
|
| 116 |
+
v?
|
| 117 |
+
(?:
|
| 118 |
+
(?:(?P<epoch>[0-9]+)!)? # epoch
|
| 119 |
+
(?P<release>[0-9]+(?:\.[0-9]+)*) # release segment
|
| 120 |
+
(?P<pre> # pre-release
|
| 121 |
+
[-_\.]?
|
| 122 |
+
(?P<pre_l>alpha|a|beta|b|preview|pre|c|rc)
|
| 123 |
+
[-_\.]?
|
| 124 |
+
(?P<pre_n>[0-9]+)?
|
| 125 |
+
)?
|
| 126 |
+
(?P<post> # post release
|
| 127 |
+
(?:-(?P<post_n1>[0-9]+))
|
| 128 |
+
|
|
| 129 |
+
(?:
|
| 130 |
+
[-_\.]?
|
| 131 |
+
(?P<post_l>post|rev|r)
|
| 132 |
+
[-_\.]?
|
| 133 |
+
(?P<post_n2>[0-9]+)?
|
| 134 |
+
)
|
| 135 |
+
)?
|
| 136 |
+
(?P<dev> # dev release
|
| 137 |
+
[-_\.]?
|
| 138 |
+
(?P<dev_l>dev)
|
| 139 |
+
[-_\.]?
|
| 140 |
+
(?P<dev_n>[0-9]+)?
|
| 141 |
+
)?
|
| 142 |
+
)
|
| 143 |
+
(?:\+(?P<local>[a-z0-9]+(?:[-_\.][a-z0-9]+)*))? # local version
|
| 144 |
+
"""
|
| 145 |
+
|
| 146 |
+
VERSION_PATTERN = _VERSION_PATTERN
|
| 147 |
+
"""
|
| 148 |
+
A string containing the regular expression used to match a valid version.
|
| 149 |
+
|
| 150 |
+
The pattern is not anchored at either end, and is intended for embedding in larger
|
| 151 |
+
expressions (for example, matching a version number as part of a file name). The
|
| 152 |
+
regular expression should be compiled with the ``re.VERBOSE`` and ``re.IGNORECASE``
|
| 153 |
+
flags set.
|
| 154 |
+
|
| 155 |
+
:meta hide-value:
|
| 156 |
+
"""
|
| 157 |
+
|
| 158 |
+
|
| 159 |
+
class Version(_BaseVersion):
|
| 160 |
+
"""This class abstracts handling of a project's versions.
|
| 161 |
+
|
| 162 |
+
A :class:`Version` instance is comparison aware and can be compared and
|
| 163 |
+
sorted using the standard Python interfaces.
|
| 164 |
+
|
| 165 |
+
>>> v1 = Version("1.0a5")
|
| 166 |
+
>>> v2 = Version("1.0")
|
| 167 |
+
>>> v1
|
| 168 |
+
<Version('1.0a5')>
|
| 169 |
+
>>> v2
|
| 170 |
+
<Version('1.0')>
|
| 171 |
+
>>> v1 < v2
|
| 172 |
+
True
|
| 173 |
+
>>> v1 == v2
|
| 174 |
+
False
|
| 175 |
+
>>> v1 > v2
|
| 176 |
+
False
|
| 177 |
+
>>> v1 >= v2
|
| 178 |
+
False
|
| 179 |
+
>>> v1 <= v2
|
| 180 |
+
True
|
| 181 |
+
"""
|
| 182 |
+
|
| 183 |
+
_regex = re.compile(r"^\s*" + VERSION_PATTERN + r"\s*$", re.VERBOSE | re.IGNORECASE)
|
| 184 |
+
_key: CmpKey
|
| 185 |
+
|
| 186 |
+
def __init__(self, version: str) -> None:
|
| 187 |
+
"""Initialize a Version object.
|
| 188 |
+
|
| 189 |
+
:param version:
|
| 190 |
+
The string representation of a version which will be parsed and normalized
|
| 191 |
+
before use.
|
| 192 |
+
:raises InvalidVersion:
|
| 193 |
+
If the ``version`` does not conform to PEP 440 in any way then this
|
| 194 |
+
exception will be raised.
|
| 195 |
+
"""
|
| 196 |
+
|
| 197 |
+
# Validate the version and parse it into pieces
|
| 198 |
+
match = self._regex.search(version)
|
| 199 |
+
if not match:
|
| 200 |
+
raise InvalidVersion(f"Invalid version: '{version}'")
|
| 201 |
+
|
| 202 |
+
# Store the parsed out pieces of the version
|
| 203 |
+
self._version = _Version(
|
| 204 |
+
epoch=int(match.group("epoch")) if match.group("epoch") else 0,
|
| 205 |
+
release=tuple(int(i) for i in match.group("release").split(".")),
|
| 206 |
+
pre=_parse_letter_version(match.group("pre_l"), match.group("pre_n")),
|
| 207 |
+
post=_parse_letter_version(
|
| 208 |
+
match.group("post_l"), match.group("post_n1") or match.group("post_n2")
|
| 209 |
+
),
|
| 210 |
+
dev=_parse_letter_version(match.group("dev_l"), match.group("dev_n")),
|
| 211 |
+
local=_parse_local_version(match.group("local")),
|
| 212 |
+
)
|
| 213 |
+
|
| 214 |
+
# Generate a key which will be used for sorting
|
| 215 |
+
self._key = _cmpkey(
|
| 216 |
+
self._version.epoch,
|
| 217 |
+
self._version.release,
|
| 218 |
+
self._version.pre,
|
| 219 |
+
self._version.post,
|
| 220 |
+
self._version.dev,
|
| 221 |
+
self._version.local,
|
| 222 |
+
)
|
| 223 |
+
|
| 224 |
+
def __repr__(self) -> str:
|
| 225 |
+
"""A representation of the Version that shows all internal state.
|
| 226 |
+
|
| 227 |
+
>>> Version('1.0.0')
|
| 228 |
+
<Version('1.0.0')>
|
| 229 |
+
"""
|
| 230 |
+
return f"<Version('{self}')>"
|
| 231 |
+
|
| 232 |
+
def __str__(self) -> str:
|
| 233 |
+
"""A string representation of the version that can be rounded-tripped.
|
| 234 |
+
|
| 235 |
+
>>> str(Version("1.0a5"))
|
| 236 |
+
'1.0a5'
|
| 237 |
+
"""
|
| 238 |
+
parts = []
|
| 239 |
+
|
| 240 |
+
# Epoch
|
| 241 |
+
if self.epoch != 0:
|
| 242 |
+
parts.append(f"{self.epoch}!")
|
| 243 |
+
|
| 244 |
+
# Release segment
|
| 245 |
+
parts.append(".".join(str(x) for x in self.release))
|
| 246 |
+
|
| 247 |
+
# Pre-release
|
| 248 |
+
if self.pre is not None:
|
| 249 |
+
parts.append("".join(str(x) for x in self.pre))
|
| 250 |
+
|
| 251 |
+
# Post-release
|
| 252 |
+
if self.post is not None:
|
| 253 |
+
parts.append(f".post{self.post}")
|
| 254 |
+
|
| 255 |
+
# Development release
|
| 256 |
+
if self.dev is not None:
|
| 257 |
+
parts.append(f".dev{self.dev}")
|
| 258 |
+
|
| 259 |
+
# Local version segment
|
| 260 |
+
if self.local is not None:
|
| 261 |
+
parts.append(f"+{self.local}")
|
| 262 |
+
|
| 263 |
+
return "".join(parts)
|
| 264 |
+
|
| 265 |
+
@property
|
| 266 |
+
def epoch(self) -> int:
|
| 267 |
+
"""The epoch of the version.
|
| 268 |
+
|
| 269 |
+
>>> Version("2.0.0").epoch
|
| 270 |
+
0
|
| 271 |
+
>>> Version("1!2.0.0").epoch
|
| 272 |
+
1
|
| 273 |
+
"""
|
| 274 |
+
return self._version.epoch
|
| 275 |
+
|
| 276 |
+
@property
|
| 277 |
+
def release(self) -> Tuple[int, ...]:
|
| 278 |
+
"""The components of the "release" segment of the version.
|
| 279 |
+
|
| 280 |
+
>>> Version("1.2.3").release
|
| 281 |
+
(1, 2, 3)
|
| 282 |
+
>>> Version("2.0.0").release
|
| 283 |
+
(2, 0, 0)
|
| 284 |
+
>>> Version("1!2.0.0.post0").release
|
| 285 |
+
(2, 0, 0)
|
| 286 |
+
|
| 287 |
+
Includes trailing zeroes but not the epoch or any pre-release / development /
|
| 288 |
+
post-release suffixes.
|
| 289 |
+
"""
|
| 290 |
+
return self._version.release
|
| 291 |
+
|
| 292 |
+
@property
|
| 293 |
+
def pre(self) -> Optional[Tuple[str, int]]:
|
| 294 |
+
"""The pre-release segment of the version.
|
| 295 |
+
|
| 296 |
+
>>> print(Version("1.2.3").pre)
|
| 297 |
+
None
|
| 298 |
+
>>> Version("1.2.3a1").pre
|
| 299 |
+
('a', 1)
|
| 300 |
+
>>> Version("1.2.3b1").pre
|
| 301 |
+
('b', 1)
|
| 302 |
+
>>> Version("1.2.3rc1").pre
|
| 303 |
+
('rc', 1)
|
| 304 |
+
"""
|
| 305 |
+
return self._version.pre
|
| 306 |
+
|
| 307 |
+
@property
|
| 308 |
+
def post(self) -> Optional[int]:
|
| 309 |
+
"""The post-release number of the version.
|
| 310 |
+
|
| 311 |
+
>>> print(Version("1.2.3").post)
|
| 312 |
+
None
|
| 313 |
+
>>> Version("1.2.3.post1").post
|
| 314 |
+
1
|
| 315 |
+
"""
|
| 316 |
+
return self._version.post[1] if self._version.post else None
|
| 317 |
+
|
| 318 |
+
@property
|
| 319 |
+
def dev(self) -> Optional[int]:
|
| 320 |
+
"""The development number of the version.
|
| 321 |
+
|
| 322 |
+
>>> print(Version("1.2.3").dev)
|
| 323 |
+
None
|
| 324 |
+
>>> Version("1.2.3.dev1").dev
|
| 325 |
+
1
|
| 326 |
+
"""
|
| 327 |
+
return self._version.dev[1] if self._version.dev else None
|
| 328 |
+
|
| 329 |
+
@property
|
| 330 |
+
def local(self) -> Optional[str]:
|
| 331 |
+
"""The local version segment of the version.
|
| 332 |
+
|
| 333 |
+
>>> print(Version("1.2.3").local)
|
| 334 |
+
None
|
| 335 |
+
>>> Version("1.2.3+abc").local
|
| 336 |
+
'abc'
|
| 337 |
+
"""
|
| 338 |
+
if self._version.local:
|
| 339 |
+
return ".".join(str(x) for x in self._version.local)
|
| 340 |
+
else:
|
| 341 |
+
return None
|
| 342 |
+
|
| 343 |
+
@property
|
| 344 |
+
def public(self) -> str:
|
| 345 |
+
"""The public portion of the version.
|
| 346 |
+
|
| 347 |
+
>>> Version("1.2.3").public
|
| 348 |
+
'1.2.3'
|
| 349 |
+
>>> Version("1.2.3+abc").public
|
| 350 |
+
'1.2.3'
|
| 351 |
+
>>> Version("1.2.3+abc.dev1").public
|
| 352 |
+
'1.2.3'
|
| 353 |
+
"""
|
| 354 |
+
return str(self).split("+", 1)[0]
|
| 355 |
+
|
| 356 |
+
@property
|
| 357 |
+
def base_version(self) -> str:
|
| 358 |
+
"""The "base version" of the version.
|
| 359 |
+
|
| 360 |
+
>>> Version("1.2.3").base_version
|
| 361 |
+
'1.2.3'
|
| 362 |
+
>>> Version("1.2.3+abc").base_version
|
| 363 |
+
'1.2.3'
|
| 364 |
+
>>> Version("1!1.2.3+abc.dev1").base_version
|
| 365 |
+
'1!1.2.3'
|
| 366 |
+
|
| 367 |
+
The "base version" is the public version of the project without any pre or post
|
| 368 |
+
release markers.
|
| 369 |
+
"""
|
| 370 |
+
parts = []
|
| 371 |
+
|
| 372 |
+
# Epoch
|
| 373 |
+
if self.epoch != 0:
|
| 374 |
+
parts.append(f"{self.epoch}!")
|
| 375 |
+
|
| 376 |
+
# Release segment
|
| 377 |
+
parts.append(".".join(str(x) for x in self.release))
|
| 378 |
+
|
| 379 |
+
return "".join(parts)
|
| 380 |
+
|
| 381 |
+
@property
|
| 382 |
+
def is_prerelease(self) -> bool:
|
| 383 |
+
"""Whether this version is a pre-release.
|
| 384 |
+
|
| 385 |
+
>>> Version("1.2.3").is_prerelease
|
| 386 |
+
False
|
| 387 |
+
>>> Version("1.2.3a1").is_prerelease
|
| 388 |
+
True
|
| 389 |
+
>>> Version("1.2.3b1").is_prerelease
|
| 390 |
+
True
|
| 391 |
+
>>> Version("1.2.3rc1").is_prerelease
|
| 392 |
+
True
|
| 393 |
+
>>> Version("1.2.3dev1").is_prerelease
|
| 394 |
+
True
|
| 395 |
+
"""
|
| 396 |
+
return self.dev is not None or self.pre is not None
|
| 397 |
+
|
| 398 |
+
@property
|
| 399 |
+
def is_postrelease(self) -> bool:
|
| 400 |
+
"""Whether this version is a post-release.
|
| 401 |
+
|
| 402 |
+
>>> Version("1.2.3").is_postrelease
|
| 403 |
+
False
|
| 404 |
+
>>> Version("1.2.3.post1").is_postrelease
|
| 405 |
+
True
|
| 406 |
+
"""
|
| 407 |
+
return self.post is not None
|
| 408 |
+
|
| 409 |
+
@property
|
| 410 |
+
def is_devrelease(self) -> bool:
|
| 411 |
+
"""Whether this version is a development release.
|
| 412 |
+
|
| 413 |
+
>>> Version("1.2.3").is_devrelease
|
| 414 |
+
False
|
| 415 |
+
>>> Version("1.2.3.dev1").is_devrelease
|
| 416 |
+
True
|
| 417 |
+
"""
|
| 418 |
+
return self.dev is not None
|
| 419 |
+
|
| 420 |
+
@property
|
| 421 |
+
def major(self) -> int:
|
| 422 |
+
"""The first item of :attr:`release` or ``0`` if unavailable.
|
| 423 |
+
|
| 424 |
+
>>> Version("1.2.3").major
|
| 425 |
+
1
|
| 426 |
+
"""
|
| 427 |
+
return self.release[0] if len(self.release) >= 1 else 0
|
| 428 |
+
|
| 429 |
+
@property
|
| 430 |
+
def minor(self) -> int:
|
| 431 |
+
"""The second item of :attr:`release` or ``0`` if unavailable.
|
| 432 |
+
|
| 433 |
+
>>> Version("1.2.3").minor
|
| 434 |
+
2
|
| 435 |
+
>>> Version("1").minor
|
| 436 |
+
0
|
| 437 |
+
"""
|
| 438 |
+
return self.release[1] if len(self.release) >= 2 else 0
|
| 439 |
+
|
| 440 |
+
@property
|
| 441 |
+
def micro(self) -> int:
|
| 442 |
+
"""The third item of :attr:`release` or ``0`` if unavailable.
|
| 443 |
+
|
| 444 |
+
>>> Version("1.2.3").micro
|
| 445 |
+
3
|
| 446 |
+
>>> Version("1").micro
|
| 447 |
+
0
|
| 448 |
+
"""
|
| 449 |
+
return self.release[2] if len(self.release) >= 3 else 0
|
| 450 |
+
|
| 451 |
+
|
| 452 |
+
def _parse_letter_version(
|
| 453 |
+
letter: Optional[str], number: Union[str, bytes, SupportsInt, None]
|
| 454 |
+
) -> Optional[Tuple[str, int]]:
|
| 455 |
+
if letter:
|
| 456 |
+
# We consider there to be an implicit 0 in a pre-release if there is
|
| 457 |
+
# not a numeral associated with it.
|
| 458 |
+
if number is None:
|
| 459 |
+
number = 0
|
| 460 |
+
|
| 461 |
+
# We normalize any letters to their lower case form
|
| 462 |
+
letter = letter.lower()
|
| 463 |
+
|
| 464 |
+
# We consider some words to be alternate spellings of other words and
|
| 465 |
+
# in those cases we want to normalize the spellings to our preferred
|
| 466 |
+
# spelling.
|
| 467 |
+
if letter == "alpha":
|
| 468 |
+
letter = "a"
|
| 469 |
+
elif letter == "beta":
|
| 470 |
+
letter = "b"
|
| 471 |
+
elif letter in ["c", "pre", "preview"]:
|
| 472 |
+
letter = "rc"
|
| 473 |
+
elif letter in ["rev", "r"]:
|
| 474 |
+
letter = "post"
|
| 475 |
+
|
| 476 |
+
return letter, int(number)
|
| 477 |
+
if not letter and number:
|
| 478 |
+
# We assume if we are given a number, but we are not given a letter
|
| 479 |
+
# then this is using the implicit post release syntax (e.g. 1.0-1)
|
| 480 |
+
letter = "post"
|
| 481 |
+
|
| 482 |
+
return letter, int(number)
|
| 483 |
+
|
| 484 |
+
return None
|
| 485 |
+
|
| 486 |
+
|
| 487 |
+
_local_version_separators = re.compile(r"[\._-]")
|
| 488 |
+
|
| 489 |
+
|
| 490 |
+
def _parse_local_version(local: Optional[str]) -> Optional[LocalType]:
|
| 491 |
+
"""
|
| 492 |
+
Takes a string like abc.1.twelve and turns it into ("abc", 1, "twelve").
|
| 493 |
+
"""
|
| 494 |
+
if local is not None:
|
| 495 |
+
return tuple(
|
| 496 |
+
part.lower() if not part.isdigit() else int(part)
|
| 497 |
+
for part in _local_version_separators.split(local)
|
| 498 |
+
)
|
| 499 |
+
return None
|
| 500 |
+
|
| 501 |
+
|
| 502 |
+
def _cmpkey(
|
| 503 |
+
epoch: int,
|
| 504 |
+
release: Tuple[int, ...],
|
| 505 |
+
pre: Optional[Tuple[str, int]],
|
| 506 |
+
post: Optional[Tuple[str, int]],
|
| 507 |
+
dev: Optional[Tuple[str, int]],
|
| 508 |
+
local: Optional[LocalType],
|
| 509 |
+
) -> CmpKey:
|
| 510 |
+
# When we compare a release version, we want to compare it with all of the
|
| 511 |
+
# trailing zeros removed. So we'll use a reverse the list, drop all the now
|
| 512 |
+
# leading zeros until we come to something non zero, then take the rest
|
| 513 |
+
# re-reverse it back into the correct order and make it a tuple and use
|
| 514 |
+
# that for our sorting key.
|
| 515 |
+
_release = tuple(
|
| 516 |
+
reversed(list(itertools.dropwhile(lambda x: x == 0, reversed(release))))
|
| 517 |
+
)
|
| 518 |
+
|
| 519 |
+
# We need to "trick" the sorting algorithm to put 1.0.dev0 before 1.0a0.
|
| 520 |
+
# We'll do this by abusing the pre segment, but we _only_ want to do this
|
| 521 |
+
# if there is not a pre or a post segment. If we have one of those then
|
| 522 |
+
# the normal sorting rules will handle this case correctly.
|
| 523 |
+
if pre is None and post is None and dev is not None:
|
| 524 |
+
_pre: CmpPrePostDevType = NegativeInfinity
|
| 525 |
+
# Versions without a pre-release (except as noted above) should sort after
|
| 526 |
+
# those with one.
|
| 527 |
+
elif pre is None:
|
| 528 |
+
_pre = Infinity
|
| 529 |
+
else:
|
| 530 |
+
_pre = pre
|
| 531 |
+
|
| 532 |
+
# Versions without a post segment should sort before those with one.
|
| 533 |
+
if post is None:
|
| 534 |
+
_post: CmpPrePostDevType = NegativeInfinity
|
| 535 |
+
|
| 536 |
+
else:
|
| 537 |
+
_post = post
|
| 538 |
+
|
| 539 |
+
# Versions without a development segment should sort after those with one.
|
| 540 |
+
if dev is None:
|
| 541 |
+
_dev: CmpPrePostDevType = Infinity
|
| 542 |
+
|
| 543 |
+
else:
|
| 544 |
+
_dev = dev
|
| 545 |
+
|
| 546 |
+
if local is None:
|
| 547 |
+
# Versions without a local segment should sort before those with one.
|
| 548 |
+
_local: CmpLocalType = NegativeInfinity
|
| 549 |
+
else:
|
| 550 |
+
# Versions with a local segment need that segment parsed to implement
|
| 551 |
+
# the sorting rules in PEP440.
|
| 552 |
+
# - Alpha numeric segments sort before numeric segments
|
| 553 |
+
# - Alpha numeric segments sort lexicographically
|
| 554 |
+
# - Numeric segments sort numerically
|
| 555 |
+
# - Shorter versions sort before longer versions when the prefixes
|
| 556 |
+
# match exactly
|
| 557 |
+
_local = tuple(
|
| 558 |
+
(i, "") if isinstance(i, int) else (NegativeInfinity, i) for i in local
|
| 559 |
+
)
|
| 560 |
+
|
| 561 |
+
return epoch, _release, _pre, _post, _dev, _local
|
code/LaDi-RL-old-qwen-cod/LaDi-RL-old-qwen-cod/venv/lib64/python3.10/site-packages/setuptools/_vendor/zipp-3.19.2.dist-info/INSTALLER
ADDED
|
@@ -0,0 +1 @@
|
|
|
|
|
|
|
| 1 |
+
pip
|
code/LaDi-RL-old-qwen-cod/LaDi-RL-old-qwen-cod/venv/lib64/python3.10/site-packages/setuptools/_vendor/zipp-3.19.2.dist-info/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.
|
code/LaDi-RL-old-qwen-cod/LaDi-RL-old-qwen-cod/venv/lib64/python3.10/site-packages/setuptools/_vendor/zipp-3.19.2.dist-info/METADATA
ADDED
|
@@ -0,0 +1,102 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
Metadata-Version: 2.1
|
| 2 |
+
Name: zipp
|
| 3 |
+
Version: 3.19.2
|
| 4 |
+
Summary: Backport of pathlib-compatible object wrapper for zip files
|
| 5 |
+
Author-email: "Jason R. Coombs" <jaraco@jaraco.com>
|
| 6 |
+
Project-URL: Homepage, https://github.com/jaraco/zipp
|
| 7 |
+
Classifier: Development Status :: 5 - Production/Stable
|
| 8 |
+
Classifier: Intended Audience :: Developers
|
| 9 |
+
Classifier: License :: OSI Approved :: MIT License
|
| 10 |
+
Classifier: Programming Language :: Python :: 3
|
| 11 |
+
Classifier: Programming Language :: Python :: 3 :: Only
|
| 12 |
+
Requires-Python: >=3.8
|
| 13 |
+
Description-Content-Type: text/x-rst
|
| 14 |
+
License-File: LICENSE
|
| 15 |
+
Provides-Extra: doc
|
| 16 |
+
Requires-Dist: sphinx >=3.5 ; extra == 'doc'
|
| 17 |
+
Requires-Dist: jaraco.packaging >=9.3 ; extra == 'doc'
|
| 18 |
+
Requires-Dist: rst.linker >=1.9 ; extra == 'doc'
|
| 19 |
+
Requires-Dist: furo ; extra == 'doc'
|
| 20 |
+
Requires-Dist: sphinx-lint ; extra == 'doc'
|
| 21 |
+
Requires-Dist: jaraco.tidelift >=1.4 ; extra == 'doc'
|
| 22 |
+
Provides-Extra: test
|
| 23 |
+
Requires-Dist: pytest !=8.1.*,>=6 ; extra == 'test'
|
| 24 |
+
Requires-Dist: pytest-checkdocs >=2.4 ; extra == 'test'
|
| 25 |
+
Requires-Dist: pytest-cov ; extra == 'test'
|
| 26 |
+
Requires-Dist: pytest-mypy ; extra == 'test'
|
| 27 |
+
Requires-Dist: pytest-enabler >=2.2 ; extra == 'test'
|
| 28 |
+
Requires-Dist: pytest-ruff >=0.2.1 ; extra == 'test'
|
| 29 |
+
Requires-Dist: jaraco.itertools ; extra == 'test'
|
| 30 |
+
Requires-Dist: jaraco.functools ; extra == 'test'
|
| 31 |
+
Requires-Dist: more-itertools ; extra == 'test'
|
| 32 |
+
Requires-Dist: big-O ; extra == 'test'
|
| 33 |
+
Requires-Dist: pytest-ignore-flaky ; extra == 'test'
|
| 34 |
+
Requires-Dist: jaraco.test ; extra == 'test'
|
| 35 |
+
Requires-Dist: importlib-resources ; (python_version < "3.9") and extra == 'test'
|
| 36 |
+
|
| 37 |
+
.. image:: https://img.shields.io/pypi/v/zipp.svg
|
| 38 |
+
:target: https://pypi.org/project/zipp
|
| 39 |
+
|
| 40 |
+
.. image:: https://img.shields.io/pypi/pyversions/zipp.svg
|
| 41 |
+
|
| 42 |
+
.. image:: https://github.com/jaraco/zipp/actions/workflows/main.yml/badge.svg
|
| 43 |
+
:target: https://github.com/jaraco/zipp/actions?query=workflow%3A%22tests%22
|
| 44 |
+
:alt: tests
|
| 45 |
+
|
| 46 |
+
.. image:: https://img.shields.io/endpoint?url=https://raw.githubusercontent.com/charliermarsh/ruff/main/assets/badge/v2.json
|
| 47 |
+
:target: https://github.com/astral-sh/ruff
|
| 48 |
+
:alt: Ruff
|
| 49 |
+
|
| 50 |
+
.. .. image:: https://readthedocs.org/projects/PROJECT_RTD/badge/?version=latest
|
| 51 |
+
.. :target: https://PROJECT_RTD.readthedocs.io/en/latest/?badge=latest
|
| 52 |
+
|
| 53 |
+
.. image:: https://img.shields.io/badge/skeleton-2024-informational
|
| 54 |
+
:target: https://blog.jaraco.com/skeleton
|
| 55 |
+
|
| 56 |
+
.. image:: https://tidelift.com/badges/package/pypi/zipp
|
| 57 |
+
:target: https://tidelift.com/subscription/pkg/pypi-zipp?utm_source=pypi-zipp&utm_medium=readme
|
| 58 |
+
|
| 59 |
+
|
| 60 |
+
A pathlib-compatible Zipfile object wrapper. Official backport of the standard library
|
| 61 |
+
`Path object <https://docs.python.org/3.8/library/zipfile.html#path-objects>`_.
|
| 62 |
+
|
| 63 |
+
|
| 64 |
+
Compatibility
|
| 65 |
+
=============
|
| 66 |
+
|
| 67 |
+
New features are introduced in this third-party library and later merged
|
| 68 |
+
into CPython. The following table indicates which versions of this library
|
| 69 |
+
were contributed to different versions in the standard library:
|
| 70 |
+
|
| 71 |
+
.. list-table::
|
| 72 |
+
:header-rows: 1
|
| 73 |
+
|
| 74 |
+
* - zipp
|
| 75 |
+
- stdlib
|
| 76 |
+
* - 3.18
|
| 77 |
+
- 3.13
|
| 78 |
+
* - 3.16
|
| 79 |
+
- 3.12
|
| 80 |
+
* - 3.5
|
| 81 |
+
- 3.11
|
| 82 |
+
* - 3.2
|
| 83 |
+
- 3.10
|
| 84 |
+
* - 3.3 ??
|
| 85 |
+
- 3.9
|
| 86 |
+
* - 1.0
|
| 87 |
+
- 3.8
|
| 88 |
+
|
| 89 |
+
|
| 90 |
+
Usage
|
| 91 |
+
=====
|
| 92 |
+
|
| 93 |
+
Use ``zipp.Path`` in place of ``zipfile.Path`` on any Python.
|
| 94 |
+
|
| 95 |
+
For Enterprise
|
| 96 |
+
==============
|
| 97 |
+
|
| 98 |
+
Available as part of the Tidelift Subscription.
|
| 99 |
+
|
| 100 |
+
This project 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.
|
| 101 |
+
|
| 102 |
+
`Learn more <https://tidelift.com/subscription/pkg/pypi-zipp?utm_source=pypi-zipp&utm_medium=referral&utm_campaign=github>`_.
|
code/LaDi-RL-old-qwen-cod/LaDi-RL-old-qwen-cod/venv/lib64/python3.10/site-packages/setuptools/_vendor/zipp-3.19.2.dist-info/RECORD
ADDED
|
@@ -0,0 +1,15 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
zipp-3.19.2.dist-info/INSTALLER,sha256=zuuue4knoyJ-UwPPXg8fezS7VCrXJQrAP7zeNuwvFQg,4
|
| 2 |
+
zipp-3.19.2.dist-info/LICENSE,sha256=htoPAa6uRjSKPD1GUZXcHOzN55956HdppkuNoEsqR0E,1023
|
| 3 |
+
zipp-3.19.2.dist-info/METADATA,sha256=UIrk_kMIHGSwsKKChYizqMw0MMZpPRZ2ZiVpQAsN_bE,3575
|
| 4 |
+
zipp-3.19.2.dist-info/RECORD,,
|
| 5 |
+
zipp-3.19.2.dist-info/REQUESTED,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
| 6 |
+
zipp-3.19.2.dist-info/WHEEL,sha256=GJ7t_kWBFywbagK5eo9IoUwLW6oyOeTKmQ-9iHFVNxQ,92
|
| 7 |
+
zipp-3.19.2.dist-info/top_level.txt,sha256=iAbdoSHfaGqBfVb2XuR9JqSQHCoOsOtG6y9C_LSpqFw,5
|
| 8 |
+
zipp/__init__.py,sha256=QuI1g00G4fRAcGt-HqbV0oWIkmSgedCGGYsHHYzNa8A,13412
|
| 9 |
+
zipp/__pycache__/__init__.cpython-312.pyc,,
|
| 10 |
+
zipp/__pycache__/glob.cpython-312.pyc,,
|
| 11 |
+
zipp/compat/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
| 12 |
+
zipp/compat/__pycache__/__init__.cpython-312.pyc,,
|
| 13 |
+
zipp/compat/__pycache__/py310.cpython-312.pyc,,
|
| 14 |
+
zipp/compat/py310.py,sha256=eZpkW0zRtunkhEh8jjX3gCGe22emoKCBJw72Zt4RkhA,219
|
| 15 |
+
zipp/glob.py,sha256=etWpnfEoRyfUvrUsi6sTiGmErvPwe6HzY6pT8jg_lUI,3082
|
code/LaDi-RL-old-qwen-cod/LaDi-RL-old-qwen-cod/venv/lib64/python3.10/site-packages/setuptools/_vendor/zipp-3.19.2.dist-info/REQUESTED
ADDED
|
File without changes
|
code/LaDi-RL-old-qwen-cod/LaDi-RL-old-qwen-cod/venv/lib64/python3.10/site-packages/setuptools/_vendor/zipp-3.19.2.dist-info/WHEEL
ADDED
|
@@ -0,0 +1,5 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
Wheel-Version: 1.0
|
| 2 |
+
Generator: bdist_wheel (0.43.0)
|
| 3 |
+
Root-Is-Purelib: true
|
| 4 |
+
Tag: py3-none-any
|
| 5 |
+
|
code/LaDi-RL-old-qwen-cod/LaDi-RL-old-qwen-cod/venv/lib64/python3.10/site-packages/setuptools/_vendor/zipp-3.19.2.dist-info/top_level.txt
ADDED
|
@@ -0,0 +1 @@
|
|
|
|
|
|
|
| 1 |
+
zipp
|
code/LaDi-RL-old-qwen-cod/LaDi-RL-old-qwen-cod/venv/lib64/python3.10/site-packages/setuptools/_vendor/zipp/__init__.py
ADDED
|
@@ -0,0 +1,501 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
import io
|
| 2 |
+
import posixpath
|
| 3 |
+
import zipfile
|
| 4 |
+
import itertools
|
| 5 |
+
import contextlib
|
| 6 |
+
import pathlib
|
| 7 |
+
import re
|
| 8 |
+
import stat
|
| 9 |
+
import sys
|
| 10 |
+
|
| 11 |
+
from .compat.py310 import text_encoding
|
| 12 |
+
from .glob import Translator
|
| 13 |
+
|
| 14 |
+
|
| 15 |
+
__all__ = ['Path']
|
| 16 |
+
|
| 17 |
+
|
| 18 |
+
def _parents(path):
|
| 19 |
+
"""
|
| 20 |
+
Given a path with elements separated by
|
| 21 |
+
posixpath.sep, generate all parents of that path.
|
| 22 |
+
|
| 23 |
+
>>> list(_parents('b/d'))
|
| 24 |
+
['b']
|
| 25 |
+
>>> list(_parents('/b/d/'))
|
| 26 |
+
['/b']
|
| 27 |
+
>>> list(_parents('b/d/f/'))
|
| 28 |
+
['b/d', 'b']
|
| 29 |
+
>>> list(_parents('b'))
|
| 30 |
+
[]
|
| 31 |
+
>>> list(_parents(''))
|
| 32 |
+
[]
|
| 33 |
+
"""
|
| 34 |
+
return itertools.islice(_ancestry(path), 1, None)
|
| 35 |
+
|
| 36 |
+
|
| 37 |
+
def _ancestry(path):
|
| 38 |
+
"""
|
| 39 |
+
Given a path with elements separated by
|
| 40 |
+
posixpath.sep, generate all elements of that path
|
| 41 |
+
|
| 42 |
+
>>> list(_ancestry('b/d'))
|
| 43 |
+
['b/d', 'b']
|
| 44 |
+
>>> list(_ancestry('/b/d/'))
|
| 45 |
+
['/b/d', '/b']
|
| 46 |
+
>>> list(_ancestry('b/d/f/'))
|
| 47 |
+
['b/d/f', 'b/d', 'b']
|
| 48 |
+
>>> list(_ancestry('b'))
|
| 49 |
+
['b']
|
| 50 |
+
>>> list(_ancestry(''))
|
| 51 |
+
[]
|
| 52 |
+
"""
|
| 53 |
+
path = path.rstrip(posixpath.sep)
|
| 54 |
+
while path and path != posixpath.sep:
|
| 55 |
+
yield path
|
| 56 |
+
path, tail = posixpath.split(path)
|
| 57 |
+
|
| 58 |
+
|
| 59 |
+
_dedupe = dict.fromkeys
|
| 60 |
+
"""Deduplicate an iterable in original order"""
|
| 61 |
+
|
| 62 |
+
|
| 63 |
+
def _difference(minuend, subtrahend):
|
| 64 |
+
"""
|
| 65 |
+
Return items in minuend not in subtrahend, retaining order
|
| 66 |
+
with O(1) lookup.
|
| 67 |
+
"""
|
| 68 |
+
return itertools.filterfalse(set(subtrahend).__contains__, minuend)
|
| 69 |
+
|
| 70 |
+
|
| 71 |
+
class InitializedState:
|
| 72 |
+
"""
|
| 73 |
+
Mix-in to save the initialization state for pickling.
|
| 74 |
+
"""
|
| 75 |
+
|
| 76 |
+
def __init__(self, *args, **kwargs):
|
| 77 |
+
self.__args = args
|
| 78 |
+
self.__kwargs = kwargs
|
| 79 |
+
super().__init__(*args, **kwargs)
|
| 80 |
+
|
| 81 |
+
def __getstate__(self):
|
| 82 |
+
return self.__args, self.__kwargs
|
| 83 |
+
|
| 84 |
+
def __setstate__(self, state):
|
| 85 |
+
args, kwargs = state
|
| 86 |
+
super().__init__(*args, **kwargs)
|
| 87 |
+
|
| 88 |
+
|
| 89 |
+
class SanitizedNames:
|
| 90 |
+
"""
|
| 91 |
+
ZipFile mix-in to ensure names are sanitized.
|
| 92 |
+
"""
|
| 93 |
+
|
| 94 |
+
def namelist(self):
|
| 95 |
+
return list(map(self._sanitize, super().namelist()))
|
| 96 |
+
|
| 97 |
+
@staticmethod
|
| 98 |
+
def _sanitize(name):
|
| 99 |
+
r"""
|
| 100 |
+
Ensure a relative path with posix separators and no dot names.
|
| 101 |
+
|
| 102 |
+
Modeled after
|
| 103 |
+
https://github.com/python/cpython/blob/bcc1be39cb1d04ad9fc0bd1b9193d3972835a57c/Lib/zipfile/__init__.py#L1799-L1813
|
| 104 |
+
but provides consistent cross-platform behavior.
|
| 105 |
+
|
| 106 |
+
>>> san = SanitizedNames._sanitize
|
| 107 |
+
>>> san('/foo/bar')
|
| 108 |
+
'foo/bar'
|
| 109 |
+
>>> san('//foo.txt')
|
| 110 |
+
'foo.txt'
|
| 111 |
+
>>> san('foo/.././bar.txt')
|
| 112 |
+
'foo/bar.txt'
|
| 113 |
+
>>> san('foo../.bar.txt')
|
| 114 |
+
'foo../.bar.txt'
|
| 115 |
+
>>> san('\\foo\\bar.txt')
|
| 116 |
+
'foo/bar.txt'
|
| 117 |
+
>>> san('D:\\foo.txt')
|
| 118 |
+
'D/foo.txt'
|
| 119 |
+
>>> san('\\\\server\\share\\file.txt')
|
| 120 |
+
'server/share/file.txt'
|
| 121 |
+
>>> san('\\\\?\\GLOBALROOT\\Volume3')
|
| 122 |
+
'?/GLOBALROOT/Volume3'
|
| 123 |
+
>>> san('\\\\.\\PhysicalDrive1\\root')
|
| 124 |
+
'PhysicalDrive1/root'
|
| 125 |
+
|
| 126 |
+
Retain any trailing slash.
|
| 127 |
+
>>> san('abc/')
|
| 128 |
+
'abc/'
|
| 129 |
+
|
| 130 |
+
Raises a ValueError if the result is empty.
|
| 131 |
+
>>> san('../..')
|
| 132 |
+
Traceback (most recent call last):
|
| 133 |
+
...
|
| 134 |
+
ValueError: Empty filename
|
| 135 |
+
"""
|
| 136 |
+
|
| 137 |
+
def allowed(part):
|
| 138 |
+
return part and part not in {'..', '.'}
|
| 139 |
+
|
| 140 |
+
# Remove the drive letter.
|
| 141 |
+
# Don't use ntpath.splitdrive, because that also strips UNC paths
|
| 142 |
+
bare = re.sub('^([A-Z]):', r'\1', name, flags=re.IGNORECASE)
|
| 143 |
+
clean = bare.replace('\\', '/')
|
| 144 |
+
parts = clean.split('/')
|
| 145 |
+
joined = '/'.join(filter(allowed, parts))
|
| 146 |
+
if not joined:
|
| 147 |
+
raise ValueError("Empty filename")
|
| 148 |
+
return joined + '/' * name.endswith('/')
|
| 149 |
+
|
| 150 |
+
|
| 151 |
+
class CompleteDirs(InitializedState, SanitizedNames, zipfile.ZipFile):
|
| 152 |
+
"""
|
| 153 |
+
A ZipFile subclass that ensures that implied directories
|
| 154 |
+
are always included in the namelist.
|
| 155 |
+
|
| 156 |
+
>>> list(CompleteDirs._implied_dirs(['foo/bar.txt', 'foo/bar/baz.txt']))
|
| 157 |
+
['foo/', 'foo/bar/']
|
| 158 |
+
>>> list(CompleteDirs._implied_dirs(['foo/bar.txt', 'foo/bar/baz.txt', 'foo/bar/']))
|
| 159 |
+
['foo/']
|
| 160 |
+
"""
|
| 161 |
+
|
| 162 |
+
@staticmethod
|
| 163 |
+
def _implied_dirs(names):
|
| 164 |
+
parents = itertools.chain.from_iterable(map(_parents, names))
|
| 165 |
+
as_dirs = (p + posixpath.sep for p in parents)
|
| 166 |
+
return _dedupe(_difference(as_dirs, names))
|
| 167 |
+
|
| 168 |
+
def namelist(self):
|
| 169 |
+
names = super().namelist()
|
| 170 |
+
return names + list(self._implied_dirs(names))
|
| 171 |
+
|
| 172 |
+
def _name_set(self):
|
| 173 |
+
return set(self.namelist())
|
| 174 |
+
|
| 175 |
+
def resolve_dir(self, name):
|
| 176 |
+
"""
|
| 177 |
+
If the name represents a directory, return that name
|
| 178 |
+
as a directory (with the trailing slash).
|
| 179 |
+
"""
|
| 180 |
+
names = self._name_set()
|
| 181 |
+
dirname = name + '/'
|
| 182 |
+
dir_match = name not in names and dirname in names
|
| 183 |
+
return dirname if dir_match else name
|
| 184 |
+
|
| 185 |
+
def getinfo(self, name):
|
| 186 |
+
"""
|
| 187 |
+
Supplement getinfo for implied dirs.
|
| 188 |
+
"""
|
| 189 |
+
try:
|
| 190 |
+
return super().getinfo(name)
|
| 191 |
+
except KeyError:
|
| 192 |
+
if not name.endswith('/') or name not in self._name_set():
|
| 193 |
+
raise
|
| 194 |
+
return zipfile.ZipInfo(filename=name)
|
| 195 |
+
|
| 196 |
+
@classmethod
|
| 197 |
+
def make(cls, source):
|
| 198 |
+
"""
|
| 199 |
+
Given a source (filename or zipfile), return an
|
| 200 |
+
appropriate CompleteDirs subclass.
|
| 201 |
+
"""
|
| 202 |
+
if isinstance(source, CompleteDirs):
|
| 203 |
+
return source
|
| 204 |
+
|
| 205 |
+
if not isinstance(source, zipfile.ZipFile):
|
| 206 |
+
return cls(source)
|
| 207 |
+
|
| 208 |
+
# Only allow for FastLookup when supplied zipfile is read-only
|
| 209 |
+
if 'r' not in source.mode:
|
| 210 |
+
cls = CompleteDirs
|
| 211 |
+
|
| 212 |
+
source.__class__ = cls
|
| 213 |
+
return source
|
| 214 |
+
|
| 215 |
+
@classmethod
|
| 216 |
+
def inject(cls, zf: zipfile.ZipFile) -> zipfile.ZipFile:
|
| 217 |
+
"""
|
| 218 |
+
Given a writable zip file zf, inject directory entries for
|
| 219 |
+
any directories implied by the presence of children.
|
| 220 |
+
"""
|
| 221 |
+
for name in cls._implied_dirs(zf.namelist()):
|
| 222 |
+
zf.writestr(name, b"")
|
| 223 |
+
return zf
|
| 224 |
+
|
| 225 |
+
|
| 226 |
+
class FastLookup(CompleteDirs):
|
| 227 |
+
"""
|
| 228 |
+
ZipFile subclass to ensure implicit
|
| 229 |
+
dirs exist and are resolved rapidly.
|
| 230 |
+
"""
|
| 231 |
+
|
| 232 |
+
def namelist(self):
|
| 233 |
+
with contextlib.suppress(AttributeError):
|
| 234 |
+
return self.__names
|
| 235 |
+
self.__names = super().namelist()
|
| 236 |
+
return self.__names
|
| 237 |
+
|
| 238 |
+
def _name_set(self):
|
| 239 |
+
with contextlib.suppress(AttributeError):
|
| 240 |
+
return self.__lookup
|
| 241 |
+
self.__lookup = super()._name_set()
|
| 242 |
+
return self.__lookup
|
| 243 |
+
|
| 244 |
+
|
| 245 |
+
def _extract_text_encoding(encoding=None, *args, **kwargs):
|
| 246 |
+
# compute stack level so that the caller of the caller sees any warning.
|
| 247 |
+
is_pypy = sys.implementation.name == 'pypy'
|
| 248 |
+
stack_level = 3 + is_pypy
|
| 249 |
+
return text_encoding(encoding, stack_level), args, kwargs
|
| 250 |
+
|
| 251 |
+
|
| 252 |
+
class Path:
|
| 253 |
+
"""
|
| 254 |
+
A :class:`importlib.resources.abc.Traversable` interface for zip files.
|
| 255 |
+
|
| 256 |
+
Implements many of the features users enjoy from
|
| 257 |
+
:class:`pathlib.Path`.
|
| 258 |
+
|
| 259 |
+
Consider a zip file with this structure::
|
| 260 |
+
|
| 261 |
+
.
|
| 262 |
+
├── a.txt
|
| 263 |
+
└── b
|
| 264 |
+
├── c.txt
|
| 265 |
+
└── d
|
| 266 |
+
└── e.txt
|
| 267 |
+
|
| 268 |
+
>>> data = io.BytesIO()
|
| 269 |
+
>>> zf = zipfile.ZipFile(data, 'w')
|
| 270 |
+
>>> zf.writestr('a.txt', 'content of a')
|
| 271 |
+
>>> zf.writestr('b/c.txt', 'content of c')
|
| 272 |
+
>>> zf.writestr('b/d/e.txt', 'content of e')
|
| 273 |
+
>>> zf.filename = 'mem/abcde.zip'
|
| 274 |
+
|
| 275 |
+
Path accepts the zipfile object itself or a filename
|
| 276 |
+
|
| 277 |
+
>>> path = Path(zf)
|
| 278 |
+
|
| 279 |
+
From there, several path operations are available.
|
| 280 |
+
|
| 281 |
+
Directory iteration (including the zip file itself):
|
| 282 |
+
|
| 283 |
+
>>> a, b = path.iterdir()
|
| 284 |
+
>>> a
|
| 285 |
+
Path('mem/abcde.zip', 'a.txt')
|
| 286 |
+
>>> b
|
| 287 |
+
Path('mem/abcde.zip', 'b/')
|
| 288 |
+
|
| 289 |
+
name property:
|
| 290 |
+
|
| 291 |
+
>>> b.name
|
| 292 |
+
'b'
|
| 293 |
+
|
| 294 |
+
join with divide operator:
|
| 295 |
+
|
| 296 |
+
>>> c = b / 'c.txt'
|
| 297 |
+
>>> c
|
| 298 |
+
Path('mem/abcde.zip', 'b/c.txt')
|
| 299 |
+
>>> c.name
|
| 300 |
+
'c.txt'
|
| 301 |
+
|
| 302 |
+
Read text:
|
| 303 |
+
|
| 304 |
+
>>> c.read_text(encoding='utf-8')
|
| 305 |
+
'content of c'
|
| 306 |
+
|
| 307 |
+
existence:
|
| 308 |
+
|
| 309 |
+
>>> c.exists()
|
| 310 |
+
True
|
| 311 |
+
>>> (b / 'missing.txt').exists()
|
| 312 |
+
False
|
| 313 |
+
|
| 314 |
+
Coercion to string:
|
| 315 |
+
|
| 316 |
+
>>> import os
|
| 317 |
+
>>> str(c).replace(os.sep, posixpath.sep)
|
| 318 |
+
'mem/abcde.zip/b/c.txt'
|
| 319 |
+
|
| 320 |
+
At the root, ``name``, ``filename``, and ``parent``
|
| 321 |
+
resolve to the zipfile.
|
| 322 |
+
|
| 323 |
+
>>> str(path)
|
| 324 |
+
'mem/abcde.zip/'
|
| 325 |
+
>>> path.name
|
| 326 |
+
'abcde.zip'
|
| 327 |
+
>>> path.filename == pathlib.Path('mem/abcde.zip')
|
| 328 |
+
True
|
| 329 |
+
>>> str(path.parent)
|
| 330 |
+
'mem'
|
| 331 |
+
|
| 332 |
+
If the zipfile has no filename, such attributes are not
|
| 333 |
+
valid and accessing them will raise an Exception.
|
| 334 |
+
|
| 335 |
+
>>> zf.filename = None
|
| 336 |
+
>>> path.name
|
| 337 |
+
Traceback (most recent call last):
|
| 338 |
+
...
|
| 339 |
+
TypeError: ...
|
| 340 |
+
|
| 341 |
+
>>> path.filename
|
| 342 |
+
Traceback (most recent call last):
|
| 343 |
+
...
|
| 344 |
+
TypeError: ...
|
| 345 |
+
|
| 346 |
+
>>> path.parent
|
| 347 |
+
Traceback (most recent call last):
|
| 348 |
+
...
|
| 349 |
+
TypeError: ...
|
| 350 |
+
|
| 351 |
+
# workaround python/cpython#106763
|
| 352 |
+
>>> pass
|
| 353 |
+
"""
|
| 354 |
+
|
| 355 |
+
__repr = "{self.__class__.__name__}({self.root.filename!r}, {self.at!r})"
|
| 356 |
+
|
| 357 |
+
def __init__(self, root, at=""):
|
| 358 |
+
"""
|
| 359 |
+
Construct a Path from a ZipFile or filename.
|
| 360 |
+
|
| 361 |
+
Note: When the source is an existing ZipFile object,
|
| 362 |
+
its type (__class__) will be mutated to a
|
| 363 |
+
specialized type. If the caller wishes to retain the
|
| 364 |
+
original type, the caller should either create a
|
| 365 |
+
separate ZipFile object or pass a filename.
|
| 366 |
+
"""
|
| 367 |
+
self.root = FastLookup.make(root)
|
| 368 |
+
self.at = at
|
| 369 |
+
|
| 370 |
+
def __eq__(self, other):
|
| 371 |
+
"""
|
| 372 |
+
>>> Path(zipfile.ZipFile(io.BytesIO(), 'w')) == 'foo'
|
| 373 |
+
False
|
| 374 |
+
"""
|
| 375 |
+
if self.__class__ is not other.__class__:
|
| 376 |
+
return NotImplemented
|
| 377 |
+
return (self.root, self.at) == (other.root, other.at)
|
| 378 |
+
|
| 379 |
+
def __hash__(self):
|
| 380 |
+
return hash((self.root, self.at))
|
| 381 |
+
|
| 382 |
+
def open(self, mode='r', *args, pwd=None, **kwargs):
|
| 383 |
+
"""
|
| 384 |
+
Open this entry as text or binary following the semantics
|
| 385 |
+
of ``pathlib.Path.open()`` by passing arguments through
|
| 386 |
+
to io.TextIOWrapper().
|
| 387 |
+
"""
|
| 388 |
+
if self.is_dir():
|
| 389 |
+
raise IsADirectoryError(self)
|
| 390 |
+
zip_mode = mode[0]
|
| 391 |
+
if not self.exists() and zip_mode == 'r':
|
| 392 |
+
raise FileNotFoundError(self)
|
| 393 |
+
stream = self.root.open(self.at, zip_mode, pwd=pwd)
|
| 394 |
+
if 'b' in mode:
|
| 395 |
+
if args or kwargs:
|
| 396 |
+
raise ValueError("encoding args invalid for binary operation")
|
| 397 |
+
return stream
|
| 398 |
+
# Text mode:
|
| 399 |
+
encoding, args, kwargs = _extract_text_encoding(*args, **kwargs)
|
| 400 |
+
return io.TextIOWrapper(stream, encoding, *args, **kwargs)
|
| 401 |
+
|
| 402 |
+
def _base(self):
|
| 403 |
+
return pathlib.PurePosixPath(self.at or self.root.filename)
|
| 404 |
+
|
| 405 |
+
@property
|
| 406 |
+
def name(self):
|
| 407 |
+
return self._base().name
|
| 408 |
+
|
| 409 |
+
@property
|
| 410 |
+
def suffix(self):
|
| 411 |
+
return self._base().suffix
|
| 412 |
+
|
| 413 |
+
@property
|
| 414 |
+
def suffixes(self):
|
| 415 |
+
return self._base().suffixes
|
| 416 |
+
|
| 417 |
+
@property
|
| 418 |
+
def stem(self):
|
| 419 |
+
return self._base().stem
|
| 420 |
+
|
| 421 |
+
@property
|
| 422 |
+
def filename(self):
|
| 423 |
+
return pathlib.Path(self.root.filename).joinpath(self.at)
|
| 424 |
+
|
| 425 |
+
def read_text(self, *args, **kwargs):
|
| 426 |
+
encoding, args, kwargs = _extract_text_encoding(*args, **kwargs)
|
| 427 |
+
with self.open('r', encoding, *args, **kwargs) as strm:
|
| 428 |
+
return strm.read()
|
| 429 |
+
|
| 430 |
+
def read_bytes(self):
|
| 431 |
+
with self.open('rb') as strm:
|
| 432 |
+
return strm.read()
|
| 433 |
+
|
| 434 |
+
def _is_child(self, path):
|
| 435 |
+
return posixpath.dirname(path.at.rstrip("/")) == self.at.rstrip("/")
|
| 436 |
+
|
| 437 |
+
def _next(self, at):
|
| 438 |
+
return self.__class__(self.root, at)
|
| 439 |
+
|
| 440 |
+
def is_dir(self):
|
| 441 |
+
return not self.at or self.at.endswith("/")
|
| 442 |
+
|
| 443 |
+
def is_file(self):
|
| 444 |
+
return self.exists() and not self.is_dir()
|
| 445 |
+
|
| 446 |
+
def exists(self):
|
| 447 |
+
return self.at in self.root._name_set()
|
| 448 |
+
|
| 449 |
+
def iterdir(self):
|
| 450 |
+
if not self.is_dir():
|
| 451 |
+
raise ValueError("Can't listdir a file")
|
| 452 |
+
subs = map(self._next, self.root.namelist())
|
| 453 |
+
return filter(self._is_child, subs)
|
| 454 |
+
|
| 455 |
+
def match(self, path_pattern):
|
| 456 |
+
return pathlib.PurePosixPath(self.at).match(path_pattern)
|
| 457 |
+
|
| 458 |
+
def is_symlink(self):
|
| 459 |
+
"""
|
| 460 |
+
Return whether this path is a symlink.
|
| 461 |
+
"""
|
| 462 |
+
info = self.root.getinfo(self.at)
|
| 463 |
+
mode = info.external_attr >> 16
|
| 464 |
+
return stat.S_ISLNK(mode)
|
| 465 |
+
|
| 466 |
+
def glob(self, pattern):
|
| 467 |
+
if not pattern:
|
| 468 |
+
raise ValueError(f"Unacceptable pattern: {pattern!r}")
|
| 469 |
+
|
| 470 |
+
prefix = re.escape(self.at)
|
| 471 |
+
tr = Translator(seps='/')
|
| 472 |
+
matches = re.compile(prefix + tr.translate(pattern)).fullmatch
|
| 473 |
+
names = (data.filename for data in self.root.filelist)
|
| 474 |
+
return map(self._next, filter(matches, names))
|
| 475 |
+
|
| 476 |
+
def rglob(self, pattern):
|
| 477 |
+
return self.glob(f'**/{pattern}')
|
| 478 |
+
|
| 479 |
+
def relative_to(self, other, *extra):
|
| 480 |
+
return posixpath.relpath(str(self), str(other.joinpath(*extra)))
|
| 481 |
+
|
| 482 |
+
def __str__(self):
|
| 483 |
+
return posixpath.join(self.root.filename, self.at)
|
| 484 |
+
|
| 485 |
+
def __repr__(self):
|
| 486 |
+
return self.__repr.format(self=self)
|
| 487 |
+
|
| 488 |
+
def joinpath(self, *other):
|
| 489 |
+
next = posixpath.join(self.at, *other)
|
| 490 |
+
return self._next(self.root.resolve_dir(next))
|
| 491 |
+
|
| 492 |
+
__truediv__ = joinpath
|
| 493 |
+
|
| 494 |
+
@property
|
| 495 |
+
def parent(self):
|
| 496 |
+
if not self.at:
|
| 497 |
+
return self.filename.parent
|
| 498 |
+
parent_at = posixpath.dirname(self.at.rstrip('/'))
|
| 499 |
+
if parent_at:
|
| 500 |
+
parent_at += '/'
|
| 501 |
+
return self._next(parent_at)
|
code/LaDi-RL-old-qwen-cod/LaDi-RL-old-qwen-cod/venv/lib64/python3.10/site-packages/setuptools/_vendor/zipp/compat/__init__.py
ADDED
|
File without changes
|
code/LaDi-RL-old-qwen-cod/LaDi-RL-old-qwen-cod/venv/lib64/python3.10/site-packages/setuptools/_vendor/zipp/compat/py310.py
ADDED
|
@@ -0,0 +1,11 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
import sys
|
| 2 |
+
import io
|
| 3 |
+
|
| 4 |
+
|
| 5 |
+
def _text_encoding(encoding, stacklevel=2, /): # pragma: no cover
|
| 6 |
+
return encoding
|
| 7 |
+
|
| 8 |
+
|
| 9 |
+
text_encoding = (
|
| 10 |
+
io.text_encoding if sys.version_info > (3, 10) else _text_encoding # type: ignore
|
| 11 |
+
)
|
code/LaDi-RL-old-qwen-cod/LaDi-RL-old-qwen-cod/venv/lib64/python3.10/site-packages/setuptools/_vendor/zipp/glob.py
ADDED
|
@@ -0,0 +1,106 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
import os
|
| 2 |
+
import re
|
| 3 |
+
|
| 4 |
+
|
| 5 |
+
_default_seps = os.sep + str(os.altsep) * bool(os.altsep)
|
| 6 |
+
|
| 7 |
+
|
| 8 |
+
class Translator:
|
| 9 |
+
"""
|
| 10 |
+
>>> Translator('xyz')
|
| 11 |
+
Traceback (most recent call last):
|
| 12 |
+
...
|
| 13 |
+
AssertionError: Invalid separators
|
| 14 |
+
|
| 15 |
+
>>> Translator('')
|
| 16 |
+
Traceback (most recent call last):
|
| 17 |
+
...
|
| 18 |
+
AssertionError: Invalid separators
|
| 19 |
+
"""
|
| 20 |
+
|
| 21 |
+
seps: str
|
| 22 |
+
|
| 23 |
+
def __init__(self, seps: str = _default_seps):
|
| 24 |
+
assert seps and set(seps) <= set(_default_seps), "Invalid separators"
|
| 25 |
+
self.seps = seps
|
| 26 |
+
|
| 27 |
+
def translate(self, pattern):
|
| 28 |
+
"""
|
| 29 |
+
Given a glob pattern, produce a regex that matches it.
|
| 30 |
+
"""
|
| 31 |
+
return self.extend(self.translate_core(pattern))
|
| 32 |
+
|
| 33 |
+
def extend(self, pattern):
|
| 34 |
+
r"""
|
| 35 |
+
Extend regex for pattern-wide concerns.
|
| 36 |
+
|
| 37 |
+
Apply '(?s:)' to create a non-matching group that
|
| 38 |
+
matches newlines (valid on Unix).
|
| 39 |
+
|
| 40 |
+
Append '\Z' to imply fullmatch even when match is used.
|
| 41 |
+
"""
|
| 42 |
+
return rf'(?s:{pattern})\Z'
|
| 43 |
+
|
| 44 |
+
def translate_core(self, pattern):
|
| 45 |
+
r"""
|
| 46 |
+
Given a glob pattern, produce a regex that matches it.
|
| 47 |
+
|
| 48 |
+
>>> t = Translator()
|
| 49 |
+
>>> t.translate_core('*.txt').replace('\\\\', '')
|
| 50 |
+
'[^/]*\\.txt'
|
| 51 |
+
>>> t.translate_core('a?txt')
|
| 52 |
+
'a[^/]txt'
|
| 53 |
+
>>> t.translate_core('**/*').replace('\\\\', '')
|
| 54 |
+
'.*/[^/][^/]*'
|
| 55 |
+
"""
|
| 56 |
+
self.restrict_rglob(pattern)
|
| 57 |
+
return ''.join(map(self.replace, separate(self.star_not_empty(pattern))))
|
| 58 |
+
|
| 59 |
+
def replace(self, match):
|
| 60 |
+
"""
|
| 61 |
+
Perform the replacements for a match from :func:`separate`.
|
| 62 |
+
"""
|
| 63 |
+
return match.group('set') or (
|
| 64 |
+
re.escape(match.group(0))
|
| 65 |
+
.replace('\\*\\*', r'.*')
|
| 66 |
+
.replace('\\*', rf'[^{re.escape(self.seps)}]*')
|
| 67 |
+
.replace('\\?', r'[^/]')
|
| 68 |
+
)
|
| 69 |
+
|
| 70 |
+
def restrict_rglob(self, pattern):
|
| 71 |
+
"""
|
| 72 |
+
Raise ValueError if ** appears in anything but a full path segment.
|
| 73 |
+
|
| 74 |
+
>>> Translator().translate('**foo')
|
| 75 |
+
Traceback (most recent call last):
|
| 76 |
+
...
|
| 77 |
+
ValueError: ** must appear alone in a path segment
|
| 78 |
+
"""
|
| 79 |
+
seps_pattern = rf'[{re.escape(self.seps)}]+'
|
| 80 |
+
segments = re.split(seps_pattern, pattern)
|
| 81 |
+
if any('**' in segment and segment != '**' for segment in segments):
|
| 82 |
+
raise ValueError("** must appear alone in a path segment")
|
| 83 |
+
|
| 84 |
+
def star_not_empty(self, pattern):
|
| 85 |
+
"""
|
| 86 |
+
Ensure that * will not match an empty segment.
|
| 87 |
+
"""
|
| 88 |
+
|
| 89 |
+
def handle_segment(match):
|
| 90 |
+
segment = match.group(0)
|
| 91 |
+
return '?*' if segment == '*' else segment
|
| 92 |
+
|
| 93 |
+
not_seps_pattern = rf'[^{re.escape(self.seps)}]+'
|
| 94 |
+
return re.sub(not_seps_pattern, handle_segment, pattern)
|
| 95 |
+
|
| 96 |
+
|
| 97 |
+
def separate(pattern):
|
| 98 |
+
"""
|
| 99 |
+
Separate out character sets to avoid translating their contents.
|
| 100 |
+
|
| 101 |
+
>>> [m.group(0) for m in separate('*.txt')]
|
| 102 |
+
['*.txt']
|
| 103 |
+
>>> [m.group(0) for m in separate('a[?]txt')]
|
| 104 |
+
['a', '[?]', 'txt']
|
| 105 |
+
"""
|
| 106 |
+
return re.finditer(r'([^\[]+)|(?P<set>[\[].*?[\]])|([\[][^\]]*$)', pattern)
|
code/LaDi-RL-old-qwen-cod/LaDi-RL-old-qwen-cod/venv/lib64/python3.10/site-packages/setuptools/command/__init__.py
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# mypy: disable_error_code=call-overload
|
| 2 |
+
# pyright: reportCallIssue=false, reportArgumentType=false
|
| 3 |
+
# Can't disable on the exact line because distutils doesn't exists on Python 3.12
|
| 4 |
+
# and type-checkers aren't aware of distutils_hack,
|
| 5 |
+
# causing distutils.command.bdist.bdist.format_commands to be Any.
|
| 6 |
+
|
| 7 |
+
import sys
|
| 8 |
+
|
| 9 |
+
from distutils.command.bdist import bdist
|
| 10 |
+
|
| 11 |
+
if 'egg' not in bdist.format_commands:
|
| 12 |
+
try:
|
| 13 |
+
# format_commands is a dict in vendored distutils
|
| 14 |
+
# It used to be a list in older (stdlib) distutils
|
| 15 |
+
# We support both for backwards compatibility
|
| 16 |
+
bdist.format_commands['egg'] = ('bdist_egg', "Python .egg file")
|
| 17 |
+
except TypeError:
|
| 18 |
+
bdist.format_command['egg'] = ('bdist_egg', "Python .egg file")
|
| 19 |
+
bdist.format_commands.append('egg')
|
| 20 |
+
|
| 21 |
+
del bdist, sys
|
code/LaDi-RL-old-qwen-cod/LaDi-RL-old-qwen-cod/venv/lib64/python3.10/site-packages/setuptools/command/_requirestxt.py
ADDED
|
@@ -0,0 +1,131 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
"""Helper code used to generate ``requires.txt`` files in the egg-info directory.
|
| 2 |
+
|
| 3 |
+
The ``requires.txt`` file has an specific format:
|
| 4 |
+
- Environment markers need to be part of the section headers and
|
| 5 |
+
should not be part of the requirement spec itself.
|
| 6 |
+
|
| 7 |
+
See https://setuptools.pypa.io/en/latest/deprecated/python_eggs.html#requires-txt
|
| 8 |
+
"""
|
| 9 |
+
|
| 10 |
+
from __future__ import annotations
|
| 11 |
+
|
| 12 |
+
import io
|
| 13 |
+
from collections import defaultdict
|
| 14 |
+
from collections.abc import Mapping
|
| 15 |
+
from itertools import filterfalse
|
| 16 |
+
from typing import TypeVar
|
| 17 |
+
|
| 18 |
+
from jaraco.text import yield_lines
|
| 19 |
+
from packaging.requirements import Requirement
|
| 20 |
+
|
| 21 |
+
from .. import _reqs
|
| 22 |
+
from .._reqs import _StrOrIter
|
| 23 |
+
|
| 24 |
+
# dict can work as an ordered set
|
| 25 |
+
_T = TypeVar("_T")
|
| 26 |
+
_Ordered = dict[_T, None]
|
| 27 |
+
|
| 28 |
+
|
| 29 |
+
def _prepare(
|
| 30 |
+
install_requires: _StrOrIter, extras_require: Mapping[str, _StrOrIter]
|
| 31 |
+
) -> tuple[list[str], dict[str, list[str]]]:
|
| 32 |
+
"""Given values for ``install_requires`` and ``extras_require``
|
| 33 |
+
create modified versions in a way that can be written in ``requires.txt``
|
| 34 |
+
"""
|
| 35 |
+
extras = _convert_extras_requirements(extras_require)
|
| 36 |
+
return _move_install_requirements_markers(install_requires, extras)
|
| 37 |
+
|
| 38 |
+
|
| 39 |
+
def _convert_extras_requirements(
|
| 40 |
+
extras_require: Mapping[str, _StrOrIter],
|
| 41 |
+
) -> defaultdict[str, _Ordered[Requirement]]:
|
| 42 |
+
"""
|
| 43 |
+
Convert requirements in `extras_require` of the form
|
| 44 |
+
`"extra": ["barbazquux; {marker}"]` to
|
| 45 |
+
`"extra:{marker}": ["barbazquux"]`.
|
| 46 |
+
"""
|
| 47 |
+
output = defaultdict[str, _Ordered[Requirement]](dict)
|
| 48 |
+
for section, v in extras_require.items():
|
| 49 |
+
# Do not strip empty sections.
|
| 50 |
+
output[section]
|
| 51 |
+
for r in _reqs.parse(v):
|
| 52 |
+
output[section + _suffix_for(r)].setdefault(r)
|
| 53 |
+
|
| 54 |
+
return output
|
| 55 |
+
|
| 56 |
+
|
| 57 |
+
def _move_install_requirements_markers(
|
| 58 |
+
install_requires: _StrOrIter, extras_require: Mapping[str, _Ordered[Requirement]]
|
| 59 |
+
) -> tuple[list[str], dict[str, list[str]]]:
|
| 60 |
+
"""
|
| 61 |
+
The ``requires.txt`` file has an specific format:
|
| 62 |
+
- Environment markers need to be part of the section headers and
|
| 63 |
+
should not be part of the requirement spec itself.
|
| 64 |
+
|
| 65 |
+
Move requirements in ``install_requires`` that are using environment
|
| 66 |
+
markers ``extras_require``.
|
| 67 |
+
"""
|
| 68 |
+
|
| 69 |
+
# divide the install_requires into two sets, simple ones still
|
| 70 |
+
# handled by install_requires and more complex ones handled by extras_require.
|
| 71 |
+
|
| 72 |
+
inst_reqs = list(_reqs.parse(install_requires))
|
| 73 |
+
simple_reqs = filter(_no_marker, inst_reqs)
|
| 74 |
+
complex_reqs = filterfalse(_no_marker, inst_reqs)
|
| 75 |
+
simple_install_requires = list(map(str, simple_reqs))
|
| 76 |
+
|
| 77 |
+
for r in complex_reqs:
|
| 78 |
+
extras_require[':' + str(r.marker)].setdefault(r)
|
| 79 |
+
|
| 80 |
+
expanded_extras = dict(
|
| 81 |
+
# list(dict.fromkeys(...)) ensures a list of unique strings
|
| 82 |
+
(k, list(dict.fromkeys(str(r) for r in map(_clean_req, v))))
|
| 83 |
+
for k, v in extras_require.items()
|
| 84 |
+
)
|
| 85 |
+
|
| 86 |
+
return simple_install_requires, expanded_extras
|
| 87 |
+
|
| 88 |
+
|
| 89 |
+
def _suffix_for(req):
|
| 90 |
+
"""Return the 'extras_require' suffix for a given requirement."""
|
| 91 |
+
return ':' + str(req.marker) if req.marker else ''
|
| 92 |
+
|
| 93 |
+
|
| 94 |
+
def _clean_req(req):
|
| 95 |
+
"""Given a Requirement, remove environment markers and return it"""
|
| 96 |
+
r = Requirement(str(req)) # create a copy before modifying
|
| 97 |
+
r.marker = None
|
| 98 |
+
return r
|
| 99 |
+
|
| 100 |
+
|
| 101 |
+
def _no_marker(req):
|
| 102 |
+
return not req.marker
|
| 103 |
+
|
| 104 |
+
|
| 105 |
+
def _write_requirements(stream, reqs):
|
| 106 |
+
lines = yield_lines(reqs or ())
|
| 107 |
+
|
| 108 |
+
def append_cr(line):
|
| 109 |
+
return line + '\n'
|
| 110 |
+
|
| 111 |
+
lines = map(append_cr, lines)
|
| 112 |
+
stream.writelines(lines)
|
| 113 |
+
|
| 114 |
+
|
| 115 |
+
def write_requirements(cmd, basename, filename):
|
| 116 |
+
dist = cmd.distribution
|
| 117 |
+
data = io.StringIO()
|
| 118 |
+
install_requires, extras_require = _prepare(
|
| 119 |
+
dist.install_requires or (), dist.extras_require or {}
|
| 120 |
+
)
|
| 121 |
+
_write_requirements(data, install_requires)
|
| 122 |
+
for extra in sorted(extras_require):
|
| 123 |
+
data.write('\n[{extra}]\n'.format(**vars()))
|
| 124 |
+
_write_requirements(data, extras_require[extra])
|
| 125 |
+
cmd.write_or_delete_file("requirements", filename, data.getvalue())
|
| 126 |
+
|
| 127 |
+
|
| 128 |
+
def write_setup_requirements(cmd, basename, filename):
|
| 129 |
+
data = io.StringIO()
|
| 130 |
+
_write_requirements(data, cmd.distribution.setup_requires)
|
| 131 |
+
cmd.write_or_delete_file("setup-requirements", filename, data.getvalue())
|
code/LaDi-RL-old-qwen-cod/LaDi-RL-old-qwen-cod/venv/lib64/python3.10/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}}, self.dry_run)
|
| 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
|
code/LaDi-RL-old-qwen-cod/LaDi-RL-old-qwen-cod/venv/lib64/python3.10/site-packages/setuptools/command/bdist_egg.py
ADDED
|
@@ -0,0 +1,479 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|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
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 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 sysconfig import get_path, get_python_version
|
| 13 |
+
from types import CodeType
|
| 14 |
+
from typing import TYPE_CHECKING, Literal
|
| 15 |
+
|
| 16 |
+
from setuptools import Command
|
| 17 |
+
from setuptools.extension import Library
|
| 18 |
+
|
| 19 |
+
from .._path import StrPathT, ensure_directory
|
| 20 |
+
|
| 21 |
+
from distutils import log
|
| 22 |
+
from distutils.dir_util import mkpath, remove_tree
|
| 23 |
+
|
| 24 |
+
if TYPE_CHECKING:
|
| 25 |
+
from typing_extensions import TypeAlias
|
| 26 |
+
|
| 27 |
+
# Same as zipfile._ZipFileMode from typeshed
|
| 28 |
+
_ZipFileMode: TypeAlias = Literal["r", "w", "x", "a"]
|
| 29 |
+
|
| 30 |
+
|
| 31 |
+
def _get_purelib():
|
| 32 |
+
return get_path("purelib")
|
| 33 |
+
|
| 34 |
+
|
| 35 |
+
def strip_module(filename):
|
| 36 |
+
if '.' in filename:
|
| 37 |
+
filename = os.path.splitext(filename)[0]
|
| 38 |
+
if filename.endswith('module'):
|
| 39 |
+
filename = filename[:-6]
|
| 40 |
+
return filename
|
| 41 |
+
|
| 42 |
+
|
| 43 |
+
def sorted_walk(dir):
|
| 44 |
+
"""Do os.walk in a reproducible way,
|
| 45 |
+
independent of indeterministic filesystem readdir order
|
| 46 |
+
"""
|
| 47 |
+
for base, dirs, files in os.walk(dir):
|
| 48 |
+
dirs.sort()
|
| 49 |
+
files.sort()
|
| 50 |
+
yield base, dirs, files
|
| 51 |
+
|
| 52 |
+
|
| 53 |
+
def write_stub(resource, pyfile) -> None:
|
| 54 |
+
_stub_template = textwrap.dedent(
|
| 55 |
+
"""
|
| 56 |
+
def __bootstrap__():
|
| 57 |
+
global __bootstrap__, __loader__, __file__
|
| 58 |
+
import sys, pkg_resources, importlib.util
|
| 59 |
+
__file__ = pkg_resources.resource_filename(__name__, %r)
|
| 60 |
+
__loader__ = None; del __bootstrap__, __loader__
|
| 61 |
+
spec = importlib.util.spec_from_file_location(__name__,__file__)
|
| 62 |
+
mod = importlib.util.module_from_spec(spec)
|
| 63 |
+
spec.loader.exec_module(mod)
|
| 64 |
+
__bootstrap__()
|
| 65 |
+
"""
|
| 66 |
+
).lstrip()
|
| 67 |
+
with open(pyfile, 'w', encoding="utf-8") as f:
|
| 68 |
+
f.write(_stub_template % resource)
|
| 69 |
+
|
| 70 |
+
|
| 71 |
+
class bdist_egg(Command):
|
| 72 |
+
description = 'create an "egg" distribution'
|
| 73 |
+
|
| 74 |
+
user_options = [
|
| 75 |
+
('bdist-dir=', 'b', "temporary directory for creating the distribution"),
|
| 76 |
+
(
|
| 77 |
+
'plat-name=',
|
| 78 |
+
'p',
|
| 79 |
+
"platform name to embed in generated filenames "
|
| 80 |
+
"(by default uses `pkg_resources.get_build_platform()`)",
|
| 81 |
+
),
|
| 82 |
+
('exclude-source-files', None, "remove all .py files from the generated egg"),
|
| 83 |
+
(
|
| 84 |
+
'keep-temp',
|
| 85 |
+
'k',
|
| 86 |
+
"keep the pseudo-installation tree around after "
|
| 87 |
+
"creating the distribution archive",
|
| 88 |
+
),
|
| 89 |
+
('dist-dir=', 'd', "directory to put final built distributions in"),
|
| 90 |
+
('skip-build', None, "skip rebuilding everything (for testing/debugging)"),
|
| 91 |
+
]
|
| 92 |
+
|
| 93 |
+
boolean_options = ['keep-temp', 'skip-build', 'exclude-source-files']
|
| 94 |
+
|
| 95 |
+
def initialize_options(self):
|
| 96 |
+
self.bdist_dir = None
|
| 97 |
+
self.plat_name = None
|
| 98 |
+
self.keep_temp = False
|
| 99 |
+
self.dist_dir = None
|
| 100 |
+
self.skip_build = False
|
| 101 |
+
self.egg_output = None
|
| 102 |
+
self.exclude_source_files = None
|
| 103 |
+
|
| 104 |
+
def finalize_options(self) -> None:
|
| 105 |
+
ei_cmd = self.ei_cmd = self.get_finalized_command("egg_info")
|
| 106 |
+
self.egg_info = ei_cmd.egg_info
|
| 107 |
+
|
| 108 |
+
if self.bdist_dir is None:
|
| 109 |
+
bdist_base = self.get_finalized_command('bdist').bdist_base
|
| 110 |
+
self.bdist_dir = os.path.join(bdist_base, 'egg')
|
| 111 |
+
|
| 112 |
+
if self.plat_name is None:
|
| 113 |
+
from pkg_resources import get_build_platform
|
| 114 |
+
|
| 115 |
+
self.plat_name = get_build_platform()
|
| 116 |
+
|
| 117 |
+
self.set_undefined_options('bdist', ('dist_dir', 'dist_dir'))
|
| 118 |
+
|
| 119 |
+
if self.egg_output is None:
|
| 120 |
+
# Compute filename of the output egg
|
| 121 |
+
basename = ei_cmd._get_egg_basename(
|
| 122 |
+
py_version=get_python_version(),
|
| 123 |
+
platform=self.distribution.has_ext_modules() and self.plat_name,
|
| 124 |
+
)
|
| 125 |
+
|
| 126 |
+
self.egg_output = os.path.join(self.dist_dir, basename + '.egg')
|
| 127 |
+
|
| 128 |
+
def do_install_data(self) -> None:
|
| 129 |
+
# Hack for packages that install data to install's --install-lib
|
| 130 |
+
self.get_finalized_command('install').install_lib = self.bdist_dir
|
| 131 |
+
|
| 132 |
+
site_packages = os.path.normcase(os.path.realpath(_get_purelib()))
|
| 133 |
+
old, self.distribution.data_files = self.distribution.data_files, []
|
| 134 |
+
|
| 135 |
+
for item in old:
|
| 136 |
+
if isinstance(item, tuple) and len(item) == 2:
|
| 137 |
+
if os.path.isabs(item[0]):
|
| 138 |
+
realpath = os.path.realpath(item[0])
|
| 139 |
+
normalized = os.path.normcase(realpath)
|
| 140 |
+
if normalized == site_packages or normalized.startswith(
|
| 141 |
+
site_packages + os.sep
|
| 142 |
+
):
|
| 143 |
+
item = realpath[len(site_packages) + 1 :], item[1]
|
| 144 |
+
# XXX else: raise ???
|
| 145 |
+
self.distribution.data_files.append(item)
|
| 146 |
+
|
| 147 |
+
try:
|
| 148 |
+
log.info("installing package data to %s", self.bdist_dir)
|
| 149 |
+
self.call_command('install_data', force=False, root=None)
|
| 150 |
+
finally:
|
| 151 |
+
self.distribution.data_files = old
|
| 152 |
+
|
| 153 |
+
def get_outputs(self):
|
| 154 |
+
return [self.egg_output]
|
| 155 |
+
|
| 156 |
+
def call_command(self, cmdname, **kw):
|
| 157 |
+
"""Invoke reinitialized command `cmdname` with keyword args"""
|
| 158 |
+
for dirname in INSTALL_DIRECTORY_ATTRS:
|
| 159 |
+
kw.setdefault(dirname, self.bdist_dir)
|
| 160 |
+
kw.setdefault('skip_build', self.skip_build)
|
| 161 |
+
kw.setdefault('dry_run', self.dry_run)
|
| 162 |
+
cmd = self.reinitialize_command(cmdname, **kw)
|
| 163 |
+
self.run_command(cmdname)
|
| 164 |
+
return cmd
|
| 165 |
+
|
| 166 |
+
def run(self): # 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 |
+
if not self.dry_run:
|
| 189 |
+
write_stub(os.path.basename(ext_name), pyfile)
|
| 190 |
+
to_compile.append(pyfile)
|
| 191 |
+
ext_outputs[p] = ext_name.replace(os.sep, '/')
|
| 192 |
+
|
| 193 |
+
if to_compile:
|
| 194 |
+
cmd.byte_compile(to_compile)
|
| 195 |
+
if self.distribution.data_files:
|
| 196 |
+
self.do_install_data()
|
| 197 |
+
|
| 198 |
+
# Make the EGG-INFO directory
|
| 199 |
+
archive_root = self.bdist_dir
|
| 200 |
+
egg_info = os.path.join(archive_root, 'EGG-INFO')
|
| 201 |
+
self.mkpath(egg_info)
|
| 202 |
+
if self.distribution.scripts:
|
| 203 |
+
script_dir = os.path.join(egg_info, 'scripts')
|
| 204 |
+
log.info("installing scripts to %s", script_dir)
|
| 205 |
+
self.call_command('install_scripts', install_dir=script_dir, no_ep=True)
|
| 206 |
+
|
| 207 |
+
self.copy_metadata_to(egg_info)
|
| 208 |
+
native_libs = os.path.join(egg_info, "native_libs.txt")
|
| 209 |
+
if all_outputs:
|
| 210 |
+
log.info("writing %s", native_libs)
|
| 211 |
+
if not self.dry_run:
|
| 212 |
+
ensure_directory(native_libs)
|
| 213 |
+
with open(native_libs, 'wt', encoding="utf-8") as libs_file:
|
| 214 |
+
libs_file.write('\n'.join(all_outputs))
|
| 215 |
+
libs_file.write('\n')
|
| 216 |
+
elif os.path.isfile(native_libs):
|
| 217 |
+
log.info("removing %s", native_libs)
|
| 218 |
+
if not self.dry_run:
|
| 219 |
+
os.unlink(native_libs)
|
| 220 |
+
|
| 221 |
+
write_safety_flag(os.path.join(archive_root, 'EGG-INFO'), self.zip_safe())
|
| 222 |
+
|
| 223 |
+
if os.path.exists(os.path.join(self.egg_info, 'depends.txt')):
|
| 224 |
+
log.warn(
|
| 225 |
+
"WARNING: 'depends.txt' will not be used by setuptools 0.6!\n"
|
| 226 |
+
"Use the install_requires/extras_require setup() args instead."
|
| 227 |
+
)
|
| 228 |
+
|
| 229 |
+
if self.exclude_source_files:
|
| 230 |
+
self.zap_pyfiles()
|
| 231 |
+
|
| 232 |
+
# Make the archive
|
| 233 |
+
make_zipfile(
|
| 234 |
+
self.egg_output,
|
| 235 |
+
archive_root,
|
| 236 |
+
verbose=self.verbose,
|
| 237 |
+
dry_run=self.dry_run,
|
| 238 |
+
mode=self.gen_header(),
|
| 239 |
+
)
|
| 240 |
+
if not self.keep_temp:
|
| 241 |
+
remove_tree(self.bdist_dir, dry_run=self.dry_run)
|
| 242 |
+
|
| 243 |
+
# Add to 'Distribution.dist_files' so that the "upload" command works
|
| 244 |
+
getattr(self.distribution, 'dist_files', []).append((
|
| 245 |
+
'bdist_egg',
|
| 246 |
+
get_python_version(),
|
| 247 |
+
self.egg_output,
|
| 248 |
+
))
|
| 249 |
+
|
| 250 |
+
def zap_pyfiles(self):
|
| 251 |
+
log.info("Removing .py files from temporary directory")
|
| 252 |
+
for base, dirs, files in walk_egg(self.bdist_dir):
|
| 253 |
+
for name in files:
|
| 254 |
+
path = os.path.join(base, name)
|
| 255 |
+
|
| 256 |
+
if name.endswith('.py'):
|
| 257 |
+
log.debug("Deleting %s", path)
|
| 258 |
+
os.unlink(path)
|
| 259 |
+
|
| 260 |
+
if base.endswith('__pycache__'):
|
| 261 |
+
path_old = path
|
| 262 |
+
|
| 263 |
+
pattern = r'(?P<name>.+)\.(?P<magic>[^.]+)\.pyc'
|
| 264 |
+
m = re.match(pattern, name)
|
| 265 |
+
path_new = os.path.join(base, os.pardir, m.group('name') + '.pyc')
|
| 266 |
+
log.info(f"Renaming file from [{path_old}] to [{path_new}]")
|
| 267 |
+
try:
|
| 268 |
+
os.remove(path_new)
|
| 269 |
+
except OSError:
|
| 270 |
+
pass
|
| 271 |
+
os.rename(path_old, path_new)
|
| 272 |
+
|
| 273 |
+
def zip_safe(self):
|
| 274 |
+
safe = getattr(self.distribution, 'zip_safe', None)
|
| 275 |
+
if safe is not None:
|
| 276 |
+
return safe
|
| 277 |
+
log.warn("zip_safe flag not set; analyzing archive contents...")
|
| 278 |
+
return analyze_egg(self.bdist_dir, self.stubs)
|
| 279 |
+
|
| 280 |
+
def gen_header(self) -> Literal["w"]:
|
| 281 |
+
return 'w'
|
| 282 |
+
|
| 283 |
+
def copy_metadata_to(self, target_dir) -> None:
|
| 284 |
+
"Copy metadata (egg info) to the target_dir"
|
| 285 |
+
# normalize the path (so that a forward-slash in egg_info will
|
| 286 |
+
# match using startswith below)
|
| 287 |
+
norm_egg_info = os.path.normpath(self.egg_info)
|
| 288 |
+
prefix = os.path.join(norm_egg_info, '')
|
| 289 |
+
for path in self.ei_cmd.filelist.files:
|
| 290 |
+
if path.startswith(prefix):
|
| 291 |
+
target = os.path.join(target_dir, path[len(prefix) :])
|
| 292 |
+
ensure_directory(target)
|
| 293 |
+
self.copy_file(path, target)
|
| 294 |
+
|
| 295 |
+
def get_ext_outputs(self):
|
| 296 |
+
"""Get a list of relative paths to C extensions in the output distro"""
|
| 297 |
+
|
| 298 |
+
all_outputs = []
|
| 299 |
+
ext_outputs = []
|
| 300 |
+
|
| 301 |
+
paths = {self.bdist_dir: ''}
|
| 302 |
+
for base, dirs, files in sorted_walk(self.bdist_dir):
|
| 303 |
+
all_outputs.extend(
|
| 304 |
+
paths[base] + filename
|
| 305 |
+
for filename in files
|
| 306 |
+
if os.path.splitext(filename)[1].lower() in NATIVE_EXTENSIONS
|
| 307 |
+
)
|
| 308 |
+
for filename in dirs:
|
| 309 |
+
paths[os.path.join(base, filename)] = paths[base] + filename + '/'
|
| 310 |
+
|
| 311 |
+
if self.distribution.has_ext_modules():
|
| 312 |
+
build_cmd = self.get_finalized_command('build_ext')
|
| 313 |
+
for ext in build_cmd.extensions:
|
| 314 |
+
if isinstance(ext, Library):
|
| 315 |
+
continue
|
| 316 |
+
fullname = build_cmd.get_ext_fullname(ext.name)
|
| 317 |
+
filename = build_cmd.get_ext_filename(fullname)
|
| 318 |
+
if not os.path.basename(filename).startswith('dl-'):
|
| 319 |
+
if os.path.exists(os.path.join(self.bdist_dir, filename)):
|
| 320 |
+
ext_outputs.append(filename)
|
| 321 |
+
|
| 322 |
+
return all_outputs, ext_outputs
|
| 323 |
+
|
| 324 |
+
|
| 325 |
+
NATIVE_EXTENSIONS: dict[str, None] = dict.fromkeys('.dll .so .dylib .pyd'.split())
|
| 326 |
+
|
| 327 |
+
|
| 328 |
+
def walk_egg(egg_dir):
|
| 329 |
+
"""Walk an unpacked egg's contents, skipping the metadata directory"""
|
| 330 |
+
walker = sorted_walk(egg_dir)
|
| 331 |
+
base, dirs, files = next(walker)
|
| 332 |
+
if 'EGG-INFO' in dirs:
|
| 333 |
+
dirs.remove('EGG-INFO')
|
| 334 |
+
yield base, dirs, files
|
| 335 |
+
yield from walker
|
| 336 |
+
|
| 337 |
+
|
| 338 |
+
def analyze_egg(egg_dir, stubs):
|
| 339 |
+
# check for existing flag in EGG-INFO
|
| 340 |
+
for flag, fn in safety_flags.items():
|
| 341 |
+
if os.path.exists(os.path.join(egg_dir, 'EGG-INFO', fn)):
|
| 342 |
+
return flag
|
| 343 |
+
if not can_scan():
|
| 344 |
+
return False
|
| 345 |
+
safe = True
|
| 346 |
+
for base, dirs, files in walk_egg(egg_dir):
|
| 347 |
+
for name in files:
|
| 348 |
+
if name.endswith('.py') or name.endswith('.pyw'):
|
| 349 |
+
continue
|
| 350 |
+
elif name.endswith('.pyc') or name.endswith('.pyo'):
|
| 351 |
+
# always scan, even if we already know we're not safe
|
| 352 |
+
safe = scan_module(egg_dir, base, name, stubs) and safe
|
| 353 |
+
return safe
|
| 354 |
+
|
| 355 |
+
|
| 356 |
+
def write_safety_flag(egg_dir, safe) -> None:
|
| 357 |
+
# Write or remove zip safety flag file(s)
|
| 358 |
+
for flag, fn in safety_flags.items():
|
| 359 |
+
fn = os.path.join(egg_dir, fn)
|
| 360 |
+
if os.path.exists(fn):
|
| 361 |
+
if safe is None or bool(safe) != flag:
|
| 362 |
+
os.unlink(fn)
|
| 363 |
+
elif safe is not None and bool(safe) == flag:
|
| 364 |
+
with open(fn, 'wt', encoding="utf-8") as f:
|
| 365 |
+
f.write('\n')
|
| 366 |
+
|
| 367 |
+
|
| 368 |
+
safety_flags = {
|
| 369 |
+
True: 'zip-safe',
|
| 370 |
+
False: 'not-zip-safe',
|
| 371 |
+
}
|
| 372 |
+
|
| 373 |
+
|
| 374 |
+
def scan_module(egg_dir, base, name, stubs):
|
| 375 |
+
"""Check whether module possibly uses unsafe-for-zipfile stuff"""
|
| 376 |
+
|
| 377 |
+
filename = os.path.join(base, name)
|
| 378 |
+
if filename[:-1] in stubs:
|
| 379 |
+
return True # Extension module
|
| 380 |
+
pkg = base[len(egg_dir) + 1 :].replace(os.sep, '.')
|
| 381 |
+
module = pkg + (pkg and '.' or '') + os.path.splitext(name)[0]
|
| 382 |
+
skip = 16 # skip magic & reserved? & date & file size
|
| 383 |
+
f = open(filename, 'rb')
|
| 384 |
+
f.read(skip)
|
| 385 |
+
code = marshal.load(f)
|
| 386 |
+
f.close()
|
| 387 |
+
safe = True
|
| 388 |
+
symbols = dict.fromkeys(iter_symbols(code))
|
| 389 |
+
for bad in ['__file__', '__path__']:
|
| 390 |
+
if bad in symbols:
|
| 391 |
+
log.warn("%s: module references %s", module, bad)
|
| 392 |
+
safe = False
|
| 393 |
+
if 'inspect' in symbols:
|
| 394 |
+
for bad in [
|
| 395 |
+
'getsource',
|
| 396 |
+
'getabsfile',
|
| 397 |
+
'getfile',
|
| 398 |
+
'getsourcefile',
|
| 399 |
+
'getsourcelines',
|
| 400 |
+
'findsource',
|
| 401 |
+
'getcomments',
|
| 402 |
+
'getframeinfo',
|
| 403 |
+
'getinnerframes',
|
| 404 |
+
'getouterframes',
|
| 405 |
+
'stack',
|
| 406 |
+
'trace',
|
| 407 |
+
]:
|
| 408 |
+
if bad in symbols:
|
| 409 |
+
log.warn("%s: module MAY be using inspect.%s", module, bad)
|
| 410 |
+
safe = False
|
| 411 |
+
return safe
|
| 412 |
+
|
| 413 |
+
|
| 414 |
+
def iter_symbols(code):
|
| 415 |
+
"""Yield names and strings used by `code` and its nested code objects"""
|
| 416 |
+
yield from code.co_names
|
| 417 |
+
for const in code.co_consts:
|
| 418 |
+
if isinstance(const, str):
|
| 419 |
+
yield const
|
| 420 |
+
elif isinstance(const, CodeType):
|
| 421 |
+
yield from iter_symbols(const)
|
| 422 |
+
|
| 423 |
+
|
| 424 |
+
def can_scan() -> bool:
|
| 425 |
+
if not sys.platform.startswith('java') and sys.platform != 'cli':
|
| 426 |
+
# CPython, PyPy, etc.
|
| 427 |
+
return True
|
| 428 |
+
log.warn("Unable to analyze compiled code on this platform.")
|
| 429 |
+
log.warn(
|
| 430 |
+
"Please ask the author to include a 'zip_safe'"
|
| 431 |
+
" setting (either True or False) in the package's setup.py"
|
| 432 |
+
)
|
| 433 |
+
return False
|
| 434 |
+
|
| 435 |
+
|
| 436 |
+
# Attribute names of options for commands that might need to be convinced to
|
| 437 |
+
# install to the egg build directory
|
| 438 |
+
|
| 439 |
+
INSTALL_DIRECTORY_ATTRS = ['install_lib', 'install_dir', 'install_data', 'install_base']
|
| 440 |
+
|
| 441 |
+
|
| 442 |
+
def make_zipfile(
|
| 443 |
+
zip_filename: StrPathT,
|
| 444 |
+
base_dir,
|
| 445 |
+
verbose: bool = False,
|
| 446 |
+
dry_run: bool = False,
|
| 447 |
+
compress=True,
|
| 448 |
+
mode: _ZipFileMode = 'w',
|
| 449 |
+
) -> StrPathT:
|
| 450 |
+
"""Create a zip file from all the files under 'base_dir'. The output
|
| 451 |
+
zip file will be named 'base_dir' + ".zip". Uses either the "zipfile"
|
| 452 |
+
Python module (if available) or the InfoZIP "zip" utility (if installed
|
| 453 |
+
and found on the default search path). If neither tool is available,
|
| 454 |
+
raises DistutilsExecError. Returns the name of the output zip file.
|
| 455 |
+
"""
|
| 456 |
+
import zipfile
|
| 457 |
+
|
| 458 |
+
mkpath(os.path.dirname(zip_filename), dry_run=dry_run) # type: ignore[arg-type] # python/mypy#18075
|
| 459 |
+
log.info("creating '%s' and adding '%s' to it", zip_filename, base_dir)
|
| 460 |
+
|
| 461 |
+
def visit(z, dirname, names):
|
| 462 |
+
for name in names:
|
| 463 |
+
path = os.path.normpath(os.path.join(dirname, name))
|
| 464 |
+
if os.path.isfile(path):
|
| 465 |
+
p = path[len(base_dir) + 1 :]
|
| 466 |
+
if not dry_run:
|
| 467 |
+
z.write(path, p)
|
| 468 |
+
log.debug("adding '%s'", p)
|
| 469 |
+
|
| 470 |
+
compression = zipfile.ZIP_DEFLATED if compress else zipfile.ZIP_STORED
|
| 471 |
+
if not dry_run:
|
| 472 |
+
z = zipfile.ZipFile(zip_filename, mode, compression=compression)
|
| 473 |
+
for dirname, dirs, files in sorted_walk(base_dir):
|
| 474 |
+
visit(z, dirname, files)
|
| 475 |
+
z.close()
|
| 476 |
+
else:
|
| 477 |
+
for dirname, dirs, files in sorted_walk(base_dir):
|
| 478 |
+
visit(None, dirname, files)
|
| 479 |
+
return zip_filename
|
code/LaDi-RL-old-qwen-cod/LaDi-RL-old-qwen-cod/venv/lib64/python3.10/site-packages/setuptools/command/bdist_rpm.py
ADDED
|
@@ -0,0 +1,42 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
from ..dist import Distribution
|
| 2 |
+
from ..warnings import SetuptoolsDeprecationWarning
|
| 3 |
+
|
| 4 |
+
import distutils.command.bdist_rpm as orig
|
| 5 |
+
|
| 6 |
+
|
| 7 |
+
class bdist_rpm(orig.bdist_rpm):
|
| 8 |
+
"""
|
| 9 |
+
Override the default bdist_rpm behavior to do the following:
|
| 10 |
+
|
| 11 |
+
1. Run egg_info to ensure the name and version are properly calculated.
|
| 12 |
+
2. Always run 'install' using --single-version-externally-managed to
|
| 13 |
+
disable eggs in RPM distributions.
|
| 14 |
+
"""
|
| 15 |
+
|
| 16 |
+
distribution: Distribution # override distutils.dist.Distribution with setuptools.dist.Distribution
|
| 17 |
+
|
| 18 |
+
def run(self) -> None:
|
| 19 |
+
SetuptoolsDeprecationWarning.emit(
|
| 20 |
+
"Deprecated command",
|
| 21 |
+
"""
|
| 22 |
+
bdist_rpm is deprecated and will be removed in a future version.
|
| 23 |
+
Use bdist_wheel (wheel packages) instead.
|
| 24 |
+
""",
|
| 25 |
+
see_url="https://github.com/pypa/setuptools/issues/1988",
|
| 26 |
+
due_date=(2023, 10, 30), # Deprecation introduced in 22 Oct 2021.
|
| 27 |
+
)
|
| 28 |
+
|
| 29 |
+
# ensure distro name is up-to-date
|
| 30 |
+
self.run_command('egg_info')
|
| 31 |
+
|
| 32 |
+
orig.bdist_rpm.run(self)
|
| 33 |
+
|
| 34 |
+
def _make_spec_file(self):
|
| 35 |
+
spec = orig.bdist_rpm._make_spec_file(self)
|
| 36 |
+
return [
|
| 37 |
+
line.replace(
|
| 38 |
+
"setup.py install ",
|
| 39 |
+
"setup.py install --single-version-externally-managed ",
|
| 40 |
+
).replace("%setup", "%setup -n %{name}-%{unmangled_version}")
|
| 41 |
+
for line in spec
|
| 42 |
+
]
|
code/LaDi-RL-old-qwen-cod/LaDi-RL-old-qwen-cod/venv/lib64/python3.10/site-packages/setuptools/command/bdist_wheel.py
ADDED
|
@@ -0,0 +1,604 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|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| 10 |
+
import re
|
| 11 |
+
import shutil
|
| 12 |
+
import struct
|
| 13 |
+
import sys
|
| 14 |
+
import sysconfig
|
| 15 |
+
import warnings
|
| 16 |
+
from collections.abc import Iterable, Sequence
|
| 17 |
+
from email.generator import BytesGenerator
|
| 18 |
+
from glob import iglob
|
| 19 |
+
from typing import Literal, cast
|
| 20 |
+
from zipfile import ZIP_DEFLATED, ZIP_STORED
|
| 21 |
+
|
| 22 |
+
from packaging import tags, version as _packaging_version
|
| 23 |
+
from wheel.wheelfile import WheelFile
|
| 24 |
+
|
| 25 |
+
from .. import Command, __version__, _shutil
|
| 26 |
+
from .._core_metadata import _safe_license_file
|
| 27 |
+
from .._normalization import safer_name
|
| 28 |
+
from ..warnings import SetuptoolsDeprecationWarning
|
| 29 |
+
from .egg_info import egg_info as egg_info_cls
|
| 30 |
+
|
| 31 |
+
from distutils import log
|
| 32 |
+
|
| 33 |
+
|
| 34 |
+
def safe_version(version: str) -> str:
|
| 35 |
+
"""
|
| 36 |
+
Convert an arbitrary string to a standard version string
|
| 37 |
+
"""
|
| 38 |
+
try:
|
| 39 |
+
# normalize the version
|
| 40 |
+
return str(_packaging_version.Version(version))
|
| 41 |
+
except _packaging_version.InvalidVersion:
|
| 42 |
+
version = version.replace(" ", ".")
|
| 43 |
+
return re.sub("[^A-Za-z0-9.]+", "-", version)
|
| 44 |
+
|
| 45 |
+
|
| 46 |
+
setuptools_major_version = int(__version__.split(".")[0])
|
| 47 |
+
|
| 48 |
+
PY_LIMITED_API_PATTERN = r"cp3\d"
|
| 49 |
+
|
| 50 |
+
|
| 51 |
+
def _is_32bit_interpreter() -> bool:
|
| 52 |
+
return struct.calcsize("P") == 4
|
| 53 |
+
|
| 54 |
+
|
| 55 |
+
def python_tag() -> str:
|
| 56 |
+
return f"py{sys.version_info.major}"
|
| 57 |
+
|
| 58 |
+
|
| 59 |
+
def get_platform(archive_root: str | None) -> str:
|
| 60 |
+
"""Return our platform name 'win32', 'linux_x86_64'"""
|
| 61 |
+
result = sysconfig.get_platform()
|
| 62 |
+
if result.startswith("macosx") and archive_root is not None: # pragma: no cover
|
| 63 |
+
from wheel.macosx_libfile import calculate_macosx_platform_tag
|
| 64 |
+
|
| 65 |
+
result = calculate_macosx_platform_tag(archive_root, result)
|
| 66 |
+
elif _is_32bit_interpreter():
|
| 67 |
+
if result == "linux-x86_64":
|
| 68 |
+
# pip pull request #3497
|
| 69 |
+
result = "linux-i686"
|
| 70 |
+
elif result == "linux-aarch64":
|
| 71 |
+
# packaging pull request #234
|
| 72 |
+
# TODO armv8l, packaging pull request #690 => this did not land
|
| 73 |
+
# in pip/packaging yet
|
| 74 |
+
result = "linux-armv7l"
|
| 75 |
+
|
| 76 |
+
return result.replace("-", "_")
|
| 77 |
+
|
| 78 |
+
|
| 79 |
+
def get_flag(
|
| 80 |
+
var: str, fallback: bool, expected: bool = True, warn: bool = True
|
| 81 |
+
) -> bool:
|
| 82 |
+
"""Use a fallback value for determining SOABI flags if the needed config
|
| 83 |
+
var is unset or unavailable."""
|
| 84 |
+
val = sysconfig.get_config_var(var)
|
| 85 |
+
if val is None:
|
| 86 |
+
if warn:
|
| 87 |
+
warnings.warn(
|
| 88 |
+
f"Config variable '{var}' is unset, Python ABI tag may be incorrect",
|
| 89 |
+
RuntimeWarning,
|
| 90 |
+
stacklevel=2,
|
| 91 |
+
)
|
| 92 |
+
return fallback
|
| 93 |
+
return val == expected
|
| 94 |
+
|
| 95 |
+
|
| 96 |
+
def get_abi_tag() -> str | None:
|
| 97 |
+
"""Return the ABI tag based on SOABI (if available) or emulate SOABI (PyPy2)."""
|
| 98 |
+
soabi: str = sysconfig.get_config_var("SOABI")
|
| 99 |
+
impl = tags.interpreter_name()
|
| 100 |
+
if not soabi and impl in ("cp", "pp") and hasattr(sys, "maxunicode"):
|
| 101 |
+
d = ""
|
| 102 |
+
u = ""
|
| 103 |
+
if get_flag("Py_DEBUG", hasattr(sys, "gettotalrefcount"), warn=(impl == "cp")):
|
| 104 |
+
d = "d"
|
| 105 |
+
|
| 106 |
+
abi = f"{impl}{tags.interpreter_version()}{d}{u}"
|
| 107 |
+
elif soabi and impl == "cp" and soabi.startswith("cpython"):
|
| 108 |
+
# non-Windows
|
| 109 |
+
abi = "cp" + soabi.split("-")[1]
|
| 110 |
+
elif soabi and impl == "cp" and soabi.startswith("cp"):
|
| 111 |
+
# Windows
|
| 112 |
+
abi = soabi.split("-")[0]
|
| 113 |
+
if hasattr(sys, "gettotalrefcount"):
|
| 114 |
+
# using debug build; append "d" flag
|
| 115 |
+
abi += "d"
|
| 116 |
+
elif soabi and impl == "pp":
|
| 117 |
+
# we want something like pypy36-pp73
|
| 118 |
+
abi = "-".join(soabi.split("-")[:2])
|
| 119 |
+
abi = abi.replace(".", "_").replace("-", "_")
|
| 120 |
+
elif soabi and impl == "graalpy":
|
| 121 |
+
abi = "-".join(soabi.split("-")[:3])
|
| 122 |
+
abi = abi.replace(".", "_").replace("-", "_")
|
| 123 |
+
elif soabi:
|
| 124 |
+
abi = soabi.replace(".", "_").replace("-", "_")
|
| 125 |
+
else:
|
| 126 |
+
abi = None
|
| 127 |
+
|
| 128 |
+
return abi
|
| 129 |
+
|
| 130 |
+
|
| 131 |
+
def safer_version(version: str) -> str:
|
| 132 |
+
return safe_version(version).replace("-", "_")
|
| 133 |
+
|
| 134 |
+
|
| 135 |
+
class bdist_wheel(Command):
|
| 136 |
+
description = "create a wheel distribution"
|
| 137 |
+
|
| 138 |
+
supported_compressions = {
|
| 139 |
+
"stored": ZIP_STORED,
|
| 140 |
+
"deflated": ZIP_DEFLATED,
|
| 141 |
+
}
|
| 142 |
+
|
| 143 |
+
user_options = [
|
| 144 |
+
("bdist-dir=", "b", "temporary directory for creating the distribution"),
|
| 145 |
+
(
|
| 146 |
+
"plat-name=",
|
| 147 |
+
"p",
|
| 148 |
+
"platform name to embed in generated filenames "
|
| 149 |
+
f"[default: {get_platform(None)}]",
|
| 150 |
+
),
|
| 151 |
+
(
|
| 152 |
+
"keep-temp",
|
| 153 |
+
"k",
|
| 154 |
+
"keep the pseudo-installation tree around after "
|
| 155 |
+
"creating the distribution archive",
|
| 156 |
+
),
|
| 157 |
+
("dist-dir=", "d", "directory to put final built distributions in"),
|
| 158 |
+
("skip-build", None, "skip rebuilding everything (for testing/debugging)"),
|
| 159 |
+
(
|
| 160 |
+
"relative",
|
| 161 |
+
None,
|
| 162 |
+
"build the archive using relative paths [default: false]",
|
| 163 |
+
),
|
| 164 |
+
(
|
| 165 |
+
"owner=",
|
| 166 |
+
"u",
|
| 167 |
+
"Owner name used when creating a tar file [default: current user]",
|
| 168 |
+
),
|
| 169 |
+
(
|
| 170 |
+
"group=",
|
| 171 |
+
"g",
|
| 172 |
+
"Group name used when creating a tar file [default: current group]",
|
| 173 |
+
),
|
| 174 |
+
("universal", None, "*DEPRECATED* make a universal wheel [default: false]"),
|
| 175 |
+
(
|
| 176 |
+
"compression=",
|
| 177 |
+
None,
|
| 178 |
+
f"zipfile compression (one of: {', '.join(supported_compressions)}) [default: 'deflated']",
|
| 179 |
+
),
|
| 180 |
+
(
|
| 181 |
+
"python-tag=",
|
| 182 |
+
None,
|
| 183 |
+
f"Python implementation compatibility tag [default: '{python_tag()}']",
|
| 184 |
+
),
|
| 185 |
+
(
|
| 186 |
+
"build-number=",
|
| 187 |
+
None,
|
| 188 |
+
"Build number for this particular version. "
|
| 189 |
+
"As specified in PEP-0427, this must start with a digit. "
|
| 190 |
+
"[default: None]",
|
| 191 |
+
),
|
| 192 |
+
(
|
| 193 |
+
"py-limited-api=",
|
| 194 |
+
None,
|
| 195 |
+
"Python tag (cp32|cp33|cpNN) for abi3 wheel tag [default: false]",
|
| 196 |
+
),
|
| 197 |
+
(
|
| 198 |
+
"dist-info-dir=",
|
| 199 |
+
None,
|
| 200 |
+
"directory where a pre-generated dist-info can be found (e.g. as a "
|
| 201 |
+
"result of calling the PEP517 'prepare_metadata_for_build_wheel' "
|
| 202 |
+
"method)",
|
| 203 |
+
),
|
| 204 |
+
]
|
| 205 |
+
|
| 206 |
+
boolean_options = ["keep-temp", "skip-build", "relative", "universal"]
|
| 207 |
+
|
| 208 |
+
def initialize_options(self) -> None:
|
| 209 |
+
self.bdist_dir: str | None = None
|
| 210 |
+
self.data_dir = ""
|
| 211 |
+
self.plat_name: str | None = None
|
| 212 |
+
self.plat_tag: str | None = None
|
| 213 |
+
self.format = "zip"
|
| 214 |
+
self.keep_temp = False
|
| 215 |
+
self.dist_dir: str | None = None
|
| 216 |
+
self.dist_info_dir = None
|
| 217 |
+
self.egginfo_dir: str | None = None
|
| 218 |
+
self.root_is_pure: bool | None = None
|
| 219 |
+
self.skip_build = False
|
| 220 |
+
self.relative = False
|
| 221 |
+
self.owner = None
|
| 222 |
+
self.group = None
|
| 223 |
+
self.universal = False
|
| 224 |
+
self.compression: str | int = "deflated"
|
| 225 |
+
self.python_tag = python_tag()
|
| 226 |
+
self.build_number: str | None = None
|
| 227 |
+
self.py_limited_api: str | Literal[False] = False
|
| 228 |
+
self.plat_name_supplied = False
|
| 229 |
+
|
| 230 |
+
def finalize_options(self) -> None:
|
| 231 |
+
if not self.bdist_dir:
|
| 232 |
+
bdist_base = self.get_finalized_command("bdist").bdist_base
|
| 233 |
+
self.bdist_dir = os.path.join(bdist_base, "wheel")
|
| 234 |
+
|
| 235 |
+
if self.dist_info_dir is None:
|
| 236 |
+
egg_info = cast(egg_info_cls, self.distribution.get_command_obj("egg_info"))
|
| 237 |
+
egg_info.ensure_finalized() # needed for correct `wheel_dist_name`
|
| 238 |
+
|
| 239 |
+
self.data_dir = self.wheel_dist_name + ".data"
|
| 240 |
+
self.plat_name_supplied = bool(self.plat_name)
|
| 241 |
+
|
| 242 |
+
need_options = ("dist_dir", "plat_name", "skip_build")
|
| 243 |
+
|
| 244 |
+
self.set_undefined_options("bdist", *zip(need_options, need_options))
|
| 245 |
+
|
| 246 |
+
self.root_is_pure = not (
|
| 247 |
+
self.distribution.has_ext_modules() or self.distribution.has_c_libraries()
|
| 248 |
+
)
|
| 249 |
+
|
| 250 |
+
self._validate_py_limited_api()
|
| 251 |
+
|
| 252 |
+
# Support legacy [wheel] section for setting universal
|
| 253 |
+
wheel = self.distribution.get_option_dict("wheel")
|
| 254 |
+
if "universal" in wheel: # pragma: no cover
|
| 255 |
+
# please don't define this in your global configs
|
| 256 |
+
log.warn("The [wheel] section is deprecated. Use [bdist_wheel] instead.")
|
| 257 |
+
val = wheel["universal"][1].strip()
|
| 258 |
+
if val.lower() in ("1", "true", "yes"):
|
| 259 |
+
self.universal = True
|
| 260 |
+
|
| 261 |
+
if self.universal:
|
| 262 |
+
SetuptoolsDeprecationWarning.emit(
|
| 263 |
+
"bdist_wheel.universal is deprecated",
|
| 264 |
+
"""
|
| 265 |
+
With Python 2.7 end-of-life, support for building universal wheels
|
| 266 |
+
(i.e., wheels that support both Python 2 and Python 3)
|
| 267 |
+
is being obviated.
|
| 268 |
+
Please discontinue using this option, or if you still need it,
|
| 269 |
+
file an issue with pypa/setuptools describing your use case.
|
| 270 |
+
""",
|
| 271 |
+
due_date=(2025, 8, 30), # Introduced in 2024-08-30
|
| 272 |
+
)
|
| 273 |
+
|
| 274 |
+
if self.build_number is not None and not self.build_number[:1].isdigit():
|
| 275 |
+
raise ValueError("Build tag (build-number) must start with a digit.")
|
| 276 |
+
|
| 277 |
+
def _validate_py_limited_api(self) -> None:
|
| 278 |
+
if not self.py_limited_api:
|
| 279 |
+
return
|
| 280 |
+
|
| 281 |
+
if not re.match(PY_LIMITED_API_PATTERN, self.py_limited_api):
|
| 282 |
+
raise ValueError(f"py-limited-api must match '{PY_LIMITED_API_PATTERN}'")
|
| 283 |
+
|
| 284 |
+
if sysconfig.get_config_var("Py_GIL_DISABLED"):
|
| 285 |
+
raise ValueError(
|
| 286 |
+
f"`py_limited_api={self.py_limited_api!r}` not supported. "
|
| 287 |
+
"`Py_LIMITED_API` is currently incompatible with "
|
| 288 |
+
"`Py_GIL_DISABLED`."
|
| 289 |
+
"See https://github.com/python/cpython/issues/111506."
|
| 290 |
+
)
|
| 291 |
+
|
| 292 |
+
@property
|
| 293 |
+
def wheel_dist_name(self) -> str:
|
| 294 |
+
"""Return distribution full name with - replaced with _"""
|
| 295 |
+
components = [
|
| 296 |
+
safer_name(self.distribution.get_name()),
|
| 297 |
+
safer_version(self.distribution.get_version()),
|
| 298 |
+
]
|
| 299 |
+
if self.build_number:
|
| 300 |
+
components.append(self.build_number)
|
| 301 |
+
return "-".join(components)
|
| 302 |
+
|
| 303 |
+
def get_tag(self) -> tuple[str, str, str]:
|
| 304 |
+
# bdist sets self.plat_name if unset, we should only use it for purepy
|
| 305 |
+
# wheels if the user supplied it.
|
| 306 |
+
if self.plat_name_supplied and self.plat_name:
|
| 307 |
+
plat_name = self.plat_name
|
| 308 |
+
elif self.root_is_pure:
|
| 309 |
+
plat_name = "any"
|
| 310 |
+
else:
|
| 311 |
+
# macosx contains system version in platform name so need special handle
|
| 312 |
+
if self.plat_name and not self.plat_name.startswith("macosx"):
|
| 313 |
+
plat_name = self.plat_name
|
| 314 |
+
else:
|
| 315 |
+
# on macosx always limit the platform name to comply with any
|
| 316 |
+
# c-extension modules in bdist_dir, since the user can specify
|
| 317 |
+
# a higher MACOSX_DEPLOYMENT_TARGET via tools like CMake
|
| 318 |
+
|
| 319 |
+
# on other platforms, and on macosx if there are no c-extension
|
| 320 |
+
# modules, use the default platform name.
|
| 321 |
+
plat_name = get_platform(self.bdist_dir)
|
| 322 |
+
|
| 323 |
+
if _is_32bit_interpreter():
|
| 324 |
+
if plat_name in ("linux-x86_64", "linux_x86_64"):
|
| 325 |
+
plat_name = "linux_i686"
|
| 326 |
+
if plat_name in ("linux-aarch64", "linux_aarch64"):
|
| 327 |
+
# TODO armv8l, packaging pull request #690 => this did not land
|
| 328 |
+
# in pip/packaging yet
|
| 329 |
+
plat_name = "linux_armv7l"
|
| 330 |
+
|
| 331 |
+
plat_name = (
|
| 332 |
+
plat_name.lower().replace("-", "_").replace(".", "_").replace(" ", "_")
|
| 333 |
+
)
|
| 334 |
+
|
| 335 |
+
if self.root_is_pure:
|
| 336 |
+
if self.universal:
|
| 337 |
+
impl = "py2.py3"
|
| 338 |
+
else:
|
| 339 |
+
impl = self.python_tag
|
| 340 |
+
tag = (impl, "none", plat_name)
|
| 341 |
+
else:
|
| 342 |
+
impl_name = tags.interpreter_name()
|
| 343 |
+
impl_ver = tags.interpreter_version()
|
| 344 |
+
impl = impl_name + impl_ver
|
| 345 |
+
# We don't work on CPython 3.1, 3.0.
|
| 346 |
+
if self.py_limited_api and (impl_name + impl_ver).startswith("cp3"):
|
| 347 |
+
impl = self.py_limited_api
|
| 348 |
+
abi_tag = "abi3"
|
| 349 |
+
else:
|
| 350 |
+
abi_tag = str(get_abi_tag()).lower()
|
| 351 |
+
tag = (impl, abi_tag, plat_name)
|
| 352 |
+
# issue gh-374: allow overriding plat_name
|
| 353 |
+
supported_tags = [
|
| 354 |
+
(t.interpreter, t.abi, plat_name) for t in tags.sys_tags()
|
| 355 |
+
]
|
| 356 |
+
assert tag in supported_tags, (
|
| 357 |
+
f"would build wheel with unsupported tag {tag}"
|
| 358 |
+
)
|
| 359 |
+
return tag
|
| 360 |
+
|
| 361 |
+
def run(self):
|
| 362 |
+
build_scripts = self.reinitialize_command("build_scripts")
|
| 363 |
+
build_scripts.executable = "python"
|
| 364 |
+
build_scripts.force = True
|
| 365 |
+
|
| 366 |
+
build_ext = self.reinitialize_command("build_ext")
|
| 367 |
+
build_ext.inplace = False
|
| 368 |
+
|
| 369 |
+
if not self.skip_build:
|
| 370 |
+
self.run_command("build")
|
| 371 |
+
|
| 372 |
+
install = self.reinitialize_command("install", reinit_subcommands=True)
|
| 373 |
+
install.root = self.bdist_dir
|
| 374 |
+
install.compile = False
|
| 375 |
+
install.skip_build = self.skip_build
|
| 376 |
+
install.warn_dir = False
|
| 377 |
+
|
| 378 |
+
# A wheel without setuptools scripts is more cross-platform.
|
| 379 |
+
# Use the (undocumented) `no_ep` option to setuptools'
|
| 380 |
+
# install_scripts command to avoid creating entry point scripts.
|
| 381 |
+
install_scripts = self.reinitialize_command("install_scripts")
|
| 382 |
+
install_scripts.no_ep = True
|
| 383 |
+
|
| 384 |
+
# Use a custom scheme for the archive, because we have to decide
|
| 385 |
+
# at installation time which scheme to use.
|
| 386 |
+
for key in ("headers", "scripts", "data", "purelib", "platlib"):
|
| 387 |
+
setattr(install, "install_" + key, os.path.join(self.data_dir, key))
|
| 388 |
+
|
| 389 |
+
basedir_observed = ""
|
| 390 |
+
|
| 391 |
+
if os.name == "nt":
|
| 392 |
+
# win32 barfs if any of these are ''; could be '.'?
|
| 393 |
+
# (distutils.command.install:change_roots bug)
|
| 394 |
+
basedir_observed = os.path.normpath(os.path.join(self.data_dir, ".."))
|
| 395 |
+
self.install_libbase = self.install_lib = basedir_observed
|
| 396 |
+
|
| 397 |
+
setattr(
|
| 398 |
+
install,
|
| 399 |
+
"install_purelib" if self.root_is_pure else "install_platlib",
|
| 400 |
+
basedir_observed,
|
| 401 |
+
)
|
| 402 |
+
|
| 403 |
+
log.info(f"installing to {self.bdist_dir}")
|
| 404 |
+
|
| 405 |
+
self.run_command("install")
|
| 406 |
+
|
| 407 |
+
impl_tag, abi_tag, plat_tag = self.get_tag()
|
| 408 |
+
archive_basename = f"{self.wheel_dist_name}-{impl_tag}-{abi_tag}-{plat_tag}"
|
| 409 |
+
if not self.relative:
|
| 410 |
+
archive_root = self.bdist_dir
|
| 411 |
+
else:
|
| 412 |
+
archive_root = os.path.join(
|
| 413 |
+
self.bdist_dir, self._ensure_relative(install.install_base)
|
| 414 |
+
)
|
| 415 |
+
|
| 416 |
+
self.set_undefined_options("install_egg_info", ("target", "egginfo_dir"))
|
| 417 |
+
distinfo_dirname = (
|
| 418 |
+
f"{safer_name(self.distribution.get_name())}-"
|
| 419 |
+
f"{safer_version(self.distribution.get_version())}.dist-info"
|
| 420 |
+
)
|
| 421 |
+
distinfo_dir = os.path.join(self.bdist_dir, distinfo_dirname)
|
| 422 |
+
if self.dist_info_dir:
|
| 423 |
+
# Use the given dist-info directly.
|
| 424 |
+
log.debug(f"reusing {self.dist_info_dir}")
|
| 425 |
+
shutil.copytree(self.dist_info_dir, distinfo_dir)
|
| 426 |
+
# Egg info is still generated, so remove it now to avoid it getting
|
| 427 |
+
# copied into the wheel.
|
| 428 |
+
_shutil.rmtree(self.egginfo_dir)
|
| 429 |
+
else:
|
| 430 |
+
# Convert the generated egg-info into dist-info.
|
| 431 |
+
self.egg2dist(self.egginfo_dir, distinfo_dir)
|
| 432 |
+
|
| 433 |
+
self.write_wheelfile(distinfo_dir)
|
| 434 |
+
|
| 435 |
+
# Make the archive
|
| 436 |
+
if not os.path.exists(self.dist_dir):
|
| 437 |
+
os.makedirs(self.dist_dir)
|
| 438 |
+
|
| 439 |
+
wheel_path = os.path.join(self.dist_dir, archive_basename + ".whl")
|
| 440 |
+
with WheelFile(wheel_path, "w", self._zip_compression()) as wf:
|
| 441 |
+
wf.write_files(archive_root)
|
| 442 |
+
|
| 443 |
+
# Add to 'Distribution.dist_files' so that the "upload" command works
|
| 444 |
+
getattr(self.distribution, "dist_files", []).append((
|
| 445 |
+
"bdist_wheel",
|
| 446 |
+
f"{sys.version_info.major}.{sys.version_info.minor}",
|
| 447 |
+
wheel_path,
|
| 448 |
+
))
|
| 449 |
+
|
| 450 |
+
if not self.keep_temp:
|
| 451 |
+
log.info(f"removing {self.bdist_dir}")
|
| 452 |
+
if not self.dry_run:
|
| 453 |
+
_shutil.rmtree(self.bdist_dir)
|
| 454 |
+
|
| 455 |
+
def write_wheelfile(
|
| 456 |
+
self, wheelfile_base: str, generator: str = f"setuptools ({__version__})"
|
| 457 |
+
) -> None:
|
| 458 |
+
from email.message import Message
|
| 459 |
+
|
| 460 |
+
msg = Message()
|
| 461 |
+
msg["Wheel-Version"] = "1.0" # of the spec
|
| 462 |
+
msg["Generator"] = generator
|
| 463 |
+
msg["Root-Is-Purelib"] = str(self.root_is_pure).lower()
|
| 464 |
+
if self.build_number is not None:
|
| 465 |
+
msg["Build"] = self.build_number
|
| 466 |
+
|
| 467 |
+
# Doesn't work for bdist_wininst
|
| 468 |
+
impl_tag, abi_tag, plat_tag = self.get_tag()
|
| 469 |
+
for impl in impl_tag.split("."):
|
| 470 |
+
for abi in abi_tag.split("."):
|
| 471 |
+
for plat in plat_tag.split("."):
|
| 472 |
+
msg["Tag"] = "-".join((impl, abi, plat))
|
| 473 |
+
|
| 474 |
+
wheelfile_path = os.path.join(wheelfile_base, "WHEEL")
|
| 475 |
+
log.info(f"creating {wheelfile_path}")
|
| 476 |
+
with open(wheelfile_path, "wb") as f:
|
| 477 |
+
BytesGenerator(f, maxheaderlen=0).flatten(msg)
|
| 478 |
+
|
| 479 |
+
def _ensure_relative(self, path: str) -> str:
|
| 480 |
+
# copied from dir_util, deleted
|
| 481 |
+
drive, path = os.path.splitdrive(path)
|
| 482 |
+
if path[0:1] == os.sep:
|
| 483 |
+
path = drive + path[1:]
|
| 484 |
+
return path
|
| 485 |
+
|
| 486 |
+
@property
|
| 487 |
+
def license_paths(self) -> Iterable[str]:
|
| 488 |
+
if setuptools_major_version >= 57:
|
| 489 |
+
# Setuptools has resolved any patterns to actual file names
|
| 490 |
+
return self.distribution.metadata.license_files or ()
|
| 491 |
+
|
| 492 |
+
files = set[str]()
|
| 493 |
+
metadata = self.distribution.get_option_dict("metadata")
|
| 494 |
+
if setuptools_major_version >= 42:
|
| 495 |
+
# Setuptools recognizes the license_files option but does not do globbing
|
| 496 |
+
patterns = cast(Sequence[str], self.distribution.metadata.license_files)
|
| 497 |
+
else:
|
| 498 |
+
# Prior to those, wheel is entirely responsible for handling license files
|
| 499 |
+
if "license_files" in metadata:
|
| 500 |
+
patterns = metadata["license_files"][1].split()
|
| 501 |
+
else:
|
| 502 |
+
patterns = ()
|
| 503 |
+
|
| 504 |
+
if "license_file" in metadata:
|
| 505 |
+
warnings.warn(
|
| 506 |
+
'The "license_file" option is deprecated. Use "license_files" instead.',
|
| 507 |
+
DeprecationWarning,
|
| 508 |
+
stacklevel=2,
|
| 509 |
+
)
|
| 510 |
+
files.add(metadata["license_file"][1])
|
| 511 |
+
|
| 512 |
+
if not files and not patterns and not isinstance(patterns, list):
|
| 513 |
+
patterns = ("LICEN[CS]E*", "COPYING*", "NOTICE*", "AUTHORS*")
|
| 514 |
+
|
| 515 |
+
for pattern in patterns:
|
| 516 |
+
for path in iglob(pattern):
|
| 517 |
+
if path.endswith("~"):
|
| 518 |
+
log.debug(
|
| 519 |
+
f'ignoring license file "{path}" as it looks like a backup'
|
| 520 |
+
)
|
| 521 |
+
continue
|
| 522 |
+
|
| 523 |
+
if path not in files and os.path.isfile(path):
|
| 524 |
+
log.info(
|
| 525 |
+
f'adding license file "{path}" (matched pattern "{pattern}")'
|
| 526 |
+
)
|
| 527 |
+
files.add(path)
|
| 528 |
+
|
| 529 |
+
return files
|
| 530 |
+
|
| 531 |
+
def egg2dist(self, egginfo_path: str, distinfo_path: str) -> None:
|
| 532 |
+
"""Convert an .egg-info directory into a .dist-info directory"""
|
| 533 |
+
|
| 534 |
+
def adios(p: str) -> None:
|
| 535 |
+
"""Appropriately delete directory, file or link."""
|
| 536 |
+
if os.path.exists(p) and not os.path.islink(p) and os.path.isdir(p):
|
| 537 |
+
_shutil.rmtree(p)
|
| 538 |
+
elif os.path.exists(p):
|
| 539 |
+
os.unlink(p)
|
| 540 |
+
|
| 541 |
+
adios(distinfo_path)
|
| 542 |
+
|
| 543 |
+
if not os.path.exists(egginfo_path):
|
| 544 |
+
# There is no egg-info. This is probably because the egg-info
|
| 545 |
+
# file/directory is not named matching the distribution name used
|
| 546 |
+
# to name the archive file. Check for this case and report
|
| 547 |
+
# accordingly.
|
| 548 |
+
import glob
|
| 549 |
+
|
| 550 |
+
pat = os.path.join(os.path.dirname(egginfo_path), "*.egg-info")
|
| 551 |
+
possible = glob.glob(pat)
|
| 552 |
+
err = f"Egg metadata expected at {egginfo_path} but not found"
|
| 553 |
+
if possible:
|
| 554 |
+
alt = os.path.basename(possible[0])
|
| 555 |
+
err += f" ({alt} found - possible misnamed archive file?)"
|
| 556 |
+
|
| 557 |
+
raise ValueError(err)
|
| 558 |
+
|
| 559 |
+
# .egg-info is a directory
|
| 560 |
+
pkginfo_path = os.path.join(egginfo_path, "PKG-INFO")
|
| 561 |
+
|
| 562 |
+
# ignore common egg metadata that is useless to wheel
|
| 563 |
+
shutil.copytree(
|
| 564 |
+
egginfo_path,
|
| 565 |
+
distinfo_path,
|
| 566 |
+
ignore=lambda x, y: {
|
| 567 |
+
"PKG-INFO",
|
| 568 |
+
"requires.txt",
|
| 569 |
+
"SOURCES.txt",
|
| 570 |
+
"not-zip-safe",
|
| 571 |
+
},
|
| 572 |
+
)
|
| 573 |
+
|
| 574 |
+
# delete dependency_links if it is only whitespace
|
| 575 |
+
dependency_links_path = os.path.join(distinfo_path, "dependency_links.txt")
|
| 576 |
+
with open(dependency_links_path, encoding="utf-8") as dependency_links_file:
|
| 577 |
+
dependency_links = dependency_links_file.read().strip()
|
| 578 |
+
if not dependency_links:
|
| 579 |
+
adios(dependency_links_path)
|
| 580 |
+
|
| 581 |
+
metadata_path = os.path.join(distinfo_path, "METADATA")
|
| 582 |
+
shutil.copy(pkginfo_path, metadata_path)
|
| 583 |
+
|
| 584 |
+
licenses_folder_path = os.path.join(distinfo_path, "licenses")
|
| 585 |
+
for license_path in self.license_paths:
|
| 586 |
+
safe_path = _safe_license_file(license_path)
|
| 587 |
+
dist_info_license_path = os.path.join(licenses_folder_path, safe_path)
|
| 588 |
+
os.makedirs(os.path.dirname(dist_info_license_path), exist_ok=True)
|
| 589 |
+
shutil.copy(license_path, dist_info_license_path)
|
| 590 |
+
|
| 591 |
+
adios(egginfo_path)
|
| 592 |
+
|
| 593 |
+
def _zip_compression(self) -> int:
|
| 594 |
+
if (
|
| 595 |
+
isinstance(self.compression, int)
|
| 596 |
+
and self.compression in self.supported_compressions.values()
|
| 597 |
+
):
|
| 598 |
+
return self.compression
|
| 599 |
+
|
| 600 |
+
compression = self.supported_compressions.get(str(self.compression))
|
| 601 |
+
if compression is not None:
|
| 602 |
+
return compression
|
| 603 |
+
|
| 604 |
+
raise ValueError(f"Unsupported compression: {self.compression!r}")
|
code/LaDi-RL-old-qwen-cod/LaDi-RL-old-qwen-cod/venv/lib64/python3.10/site-packages/setuptools/command/build.py
ADDED
|
@@ -0,0 +1,135 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
from __future__ import annotations
|
| 2 |
+
|
| 3 |
+
from typing import Protocol
|
| 4 |
+
|
| 5 |
+
from ..dist import Distribution
|
| 6 |
+
|
| 7 |
+
from distutils.command.build import build as _build
|
| 8 |
+
|
| 9 |
+
_ORIGINAL_SUBCOMMANDS = {"build_py", "build_clib", "build_ext", "build_scripts"}
|
| 10 |
+
|
| 11 |
+
|
| 12 |
+
class build(_build):
|
| 13 |
+
distribution: Distribution # override distutils.dist.Distribution with setuptools.dist.Distribution
|
| 14 |
+
|
| 15 |
+
# copy to avoid sharing the object with parent class
|
| 16 |
+
sub_commands = _build.sub_commands[:]
|
| 17 |
+
|
| 18 |
+
|
| 19 |
+
class SubCommand(Protocol):
|
| 20 |
+
"""In order to support editable installations (see :pep:`660`) all
|
| 21 |
+
build subcommands **SHOULD** implement this protocol. They also **MUST** inherit
|
| 22 |
+
from ``setuptools.Command``.
|
| 23 |
+
|
| 24 |
+
When creating an :pep:`editable wheel <660>`, ``setuptools`` will try to evaluate
|
| 25 |
+
custom ``build`` subcommands using the following procedure:
|
| 26 |
+
|
| 27 |
+
1. ``setuptools`` will set the ``editable_mode`` attribute to ``True``
|
| 28 |
+
2. ``setuptools`` will execute the ``run()`` command.
|
| 29 |
+
|
| 30 |
+
.. important::
|
| 31 |
+
Subcommands **SHOULD** take advantage of ``editable_mode=True`` to adequate
|
| 32 |
+
its behaviour or perform optimisations.
|
| 33 |
+
|
| 34 |
+
For example, if a subcommand doesn't need to generate an extra file and
|
| 35 |
+
all it does is to copy a source file into the build directory,
|
| 36 |
+
``run()`` **SHOULD** simply "early return".
|
| 37 |
+
|
| 38 |
+
Similarly, if the subcommand creates files that would be placed alongside
|
| 39 |
+
Python files in the final distribution, during an editable install
|
| 40 |
+
the command **SHOULD** generate these files "in place" (i.e. write them to
|
| 41 |
+
the original source directory, instead of using the build directory).
|
| 42 |
+
Note that ``get_output_mapping()`` should reflect that and include mappings
|
| 43 |
+
for "in place" builds accordingly.
|
| 44 |
+
|
| 45 |
+
3. ``setuptools`` use any knowledge it can derive from the return values of
|
| 46 |
+
``get_outputs()`` and ``get_output_mapping()`` to create an editable wheel.
|
| 47 |
+
When relevant ``setuptools`` **MAY** attempt to use file links based on the value
|
| 48 |
+
of ``get_output_mapping()``. Alternatively, ``setuptools`` **MAY** attempt to use
|
| 49 |
+
:doc:`import hooks <python:reference/import>` to redirect any attempt to import
|
| 50 |
+
to the directory with the original source code and other files built in place.
|
| 51 |
+
|
| 52 |
+
Please note that custom sub-commands **SHOULD NOT** rely on ``run()`` being
|
| 53 |
+
executed (or not) to provide correct return values for ``get_outputs()``,
|
| 54 |
+
``get_output_mapping()`` or ``get_source_files()``. The ``get_*`` methods should
|
| 55 |
+
work independently of ``run()``.
|
| 56 |
+
"""
|
| 57 |
+
|
| 58 |
+
editable_mode: bool = False
|
| 59 |
+
"""Boolean flag that will be set to ``True`` when setuptools is used for an
|
| 60 |
+
editable installation (see :pep:`660`).
|
| 61 |
+
Implementations **SHOULD** explicitly set the default value of this attribute to
|
| 62 |
+
``False``.
|
| 63 |
+
When subcommands run, they can use this flag to perform optimizations or change
|
| 64 |
+
their behaviour accordingly.
|
| 65 |
+
"""
|
| 66 |
+
|
| 67 |
+
build_lib: str
|
| 68 |
+
"""String representing the directory where the build artifacts should be stored,
|
| 69 |
+
e.g. ``build/lib``.
|
| 70 |
+
For example, if a distribution wants to provide a Python module named ``pkg.mod``,
|
| 71 |
+
then a corresponding file should be written to ``{build_lib}/package/module.py``.
|
| 72 |
+
A way of thinking about this is that the files saved under ``build_lib``
|
| 73 |
+
would be eventually copied to one of the directories in :obj:`site.PREFIXES`
|
| 74 |
+
upon installation.
|
| 75 |
+
|
| 76 |
+
A command that produces platform-independent files (e.g. compiling text templates
|
| 77 |
+
into Python functions), **CAN** initialize ``build_lib`` by copying its value from
|
| 78 |
+
the ``build_py`` command. On the other hand, a command that produces
|
| 79 |
+
platform-specific files **CAN** initialize ``build_lib`` by copying its value from
|
| 80 |
+
the ``build_ext`` command. In general this is done inside the ``finalize_options``
|
| 81 |
+
method with the help of the ``set_undefined_options`` command::
|
| 82 |
+
|
| 83 |
+
def finalize_options(self):
|
| 84 |
+
self.set_undefined_options("build_py", ("build_lib", "build_lib"))
|
| 85 |
+
...
|
| 86 |
+
"""
|
| 87 |
+
|
| 88 |
+
def initialize_options(self) -> None:
|
| 89 |
+
"""(Required by the original :class:`setuptools.Command` interface)"""
|
| 90 |
+
...
|
| 91 |
+
|
| 92 |
+
def finalize_options(self) -> None:
|
| 93 |
+
"""(Required by the original :class:`setuptools.Command` interface)"""
|
| 94 |
+
...
|
| 95 |
+
|
| 96 |
+
def run(self) -> None:
|
| 97 |
+
"""(Required by the original :class:`setuptools.Command` interface)"""
|
| 98 |
+
...
|
| 99 |
+
|
| 100 |
+
def get_source_files(self) -> list[str]:
|
| 101 |
+
"""
|
| 102 |
+
Return a list of all files that are used by the command to create the expected
|
| 103 |
+
outputs.
|
| 104 |
+
For example, if your build command transpiles Java files into Python, you should
|
| 105 |
+
list here all the Java files.
|
| 106 |
+
The primary purpose of this function is to help populating the ``sdist``
|
| 107 |
+
with all the files necessary to build the distribution.
|
| 108 |
+
All files should be strings relative to the project root directory.
|
| 109 |
+
"""
|
| 110 |
+
...
|
| 111 |
+
|
| 112 |
+
def get_outputs(self) -> list[str]:
|
| 113 |
+
"""
|
| 114 |
+
Return a list of files intended for distribution as they would have been
|
| 115 |
+
produced by the build.
|
| 116 |
+
These files should be strings in the form of
|
| 117 |
+
``"{build_lib}/destination/file/path"``.
|
| 118 |
+
|
| 119 |
+
.. note::
|
| 120 |
+
The return value of ``get_output()`` should include all files used as keys
|
| 121 |
+
in ``get_output_mapping()`` plus files that are generated during the build
|
| 122 |
+
and don't correspond to any source file already present in the project.
|
| 123 |
+
"""
|
| 124 |
+
...
|
| 125 |
+
|
| 126 |
+
def get_output_mapping(self) -> dict[str, str]:
|
| 127 |
+
"""
|
| 128 |
+
Return a mapping between destination files as they would be produced by the
|
| 129 |
+
build (dict keys) into the respective existing (source) files (dict values).
|
| 130 |
+
Existing (source) files should be represented as strings relative to the project
|
| 131 |
+
root directory.
|
| 132 |
+
Destination files should be strings in the form of
|
| 133 |
+
``"{build_lib}/destination/file/path"``.
|
| 134 |
+
"""
|
| 135 |
+
...
|
code/LaDi-RL-old-qwen-cod/LaDi-RL-old-qwen-cod/venv/lib64/python3.10/site-packages/setuptools/command/build_clib.py
ADDED
|
@@ -0,0 +1,103 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
from ..dist import Distribution
|
| 2 |
+
from ..modified import newer_pairwise_group
|
| 3 |
+
|
| 4 |
+
import distutils.command.build_clib as orig
|
| 5 |
+
from distutils import log
|
| 6 |
+
from distutils.errors import DistutilsSetupError
|
| 7 |
+
|
| 8 |
+
|
| 9 |
+
class build_clib(orig.build_clib):
|
| 10 |
+
"""
|
| 11 |
+
Override the default build_clib behaviour to do the following:
|
| 12 |
+
|
| 13 |
+
1. Implement a rudimentary timestamp-based dependency system
|
| 14 |
+
so 'compile()' doesn't run every time.
|
| 15 |
+
2. Add more keys to the 'build_info' dictionary:
|
| 16 |
+
* obj_deps - specify dependencies for each object compiled.
|
| 17 |
+
this should be a dictionary mapping a key
|
| 18 |
+
with the source filename to a list of
|
| 19 |
+
dependencies. Use an empty string for global
|
| 20 |
+
dependencies.
|
| 21 |
+
* cflags - specify a list of additional flags to pass to
|
| 22 |
+
the compiler.
|
| 23 |
+
"""
|
| 24 |
+
|
| 25 |
+
distribution: Distribution # override distutils.dist.Distribution with setuptools.dist.Distribution
|
| 26 |
+
|
| 27 |
+
def build_libraries(self, libraries) -> None:
|
| 28 |
+
for lib_name, build_info in libraries:
|
| 29 |
+
sources = build_info.get('sources')
|
| 30 |
+
if sources is None or not isinstance(sources, (list, tuple)):
|
| 31 |
+
raise DistutilsSetupError(
|
| 32 |
+
f"in 'libraries' option (library '{lib_name}'), "
|
| 33 |
+
"'sources' must be present and must be "
|
| 34 |
+
"a list of source filenames"
|
| 35 |
+
)
|
| 36 |
+
sources = sorted(list(sources))
|
| 37 |
+
|
| 38 |
+
log.info("building '%s' library", lib_name)
|
| 39 |
+
|
| 40 |
+
# Make sure everything is the correct type.
|
| 41 |
+
# obj_deps should be a dictionary of keys as sources
|
| 42 |
+
# and a list/tuple of files that are its dependencies.
|
| 43 |
+
obj_deps = build_info.get('obj_deps', dict())
|
| 44 |
+
if not isinstance(obj_deps, dict):
|
| 45 |
+
raise DistutilsSetupError(
|
| 46 |
+
f"in 'libraries' option (library '{lib_name}'), "
|
| 47 |
+
"'obj_deps' must be a dictionary of "
|
| 48 |
+
"type 'source: list'"
|
| 49 |
+
)
|
| 50 |
+
dependencies = []
|
| 51 |
+
|
| 52 |
+
# Get the global dependencies that are specified by the '' key.
|
| 53 |
+
# These will go into every source's dependency list.
|
| 54 |
+
global_deps = obj_deps.get('', list())
|
| 55 |
+
if not isinstance(global_deps, (list, tuple)):
|
| 56 |
+
raise DistutilsSetupError(
|
| 57 |
+
f"in 'libraries' option (library '{lib_name}'), "
|
| 58 |
+
"'obj_deps' must be a dictionary of "
|
| 59 |
+
"type 'source: list'"
|
| 60 |
+
)
|
| 61 |
+
|
| 62 |
+
# Build the list to be used by newer_pairwise_group
|
| 63 |
+
# each source will be auto-added to its dependencies.
|
| 64 |
+
for source in sources:
|
| 65 |
+
src_deps = [source]
|
| 66 |
+
src_deps.extend(global_deps)
|
| 67 |
+
extra_deps = obj_deps.get(source, list())
|
| 68 |
+
if not isinstance(extra_deps, (list, tuple)):
|
| 69 |
+
raise DistutilsSetupError(
|
| 70 |
+
f"in 'libraries' option (library '{lib_name}'), "
|
| 71 |
+
"'obj_deps' must be a dictionary of "
|
| 72 |
+
"type 'source: list'"
|
| 73 |
+
)
|
| 74 |
+
src_deps.extend(extra_deps)
|
| 75 |
+
dependencies.append(src_deps)
|
| 76 |
+
|
| 77 |
+
expected_objects = self.compiler.object_filenames(
|
| 78 |
+
sources,
|
| 79 |
+
output_dir=self.build_temp,
|
| 80 |
+
)
|
| 81 |
+
|
| 82 |
+
if newer_pairwise_group(dependencies, expected_objects) != ([], []):
|
| 83 |
+
# First, compile the source code to object files in the library
|
| 84 |
+
# directory. (This should probably change to putting object
|
| 85 |
+
# files in a temporary build directory.)
|
| 86 |
+
macros = build_info.get('macros')
|
| 87 |
+
include_dirs = build_info.get('include_dirs')
|
| 88 |
+
cflags = build_info.get('cflags')
|
| 89 |
+
self.compiler.compile(
|
| 90 |
+
sources,
|
| 91 |
+
output_dir=self.build_temp,
|
| 92 |
+
macros=macros,
|
| 93 |
+
include_dirs=include_dirs,
|
| 94 |
+
extra_postargs=cflags,
|
| 95 |
+
debug=self.debug,
|
| 96 |
+
)
|
| 97 |
+
|
| 98 |
+
# Now "link" the object files together into a static library.
|
| 99 |
+
# (On Unix at least, this isn't really linking -- it just
|
| 100 |
+
# builds an archive. Whatever.)
|
| 101 |
+
self.compiler.create_static_lib(
|
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machinery import EXTENSION_SUFFIXES
|
| 8 |
+
from importlib.util import cache_from_source as _compiled_file_name
|
| 9 |
+
from pathlib import Path
|
| 10 |
+
from typing import TYPE_CHECKING
|
| 11 |
+
|
| 12 |
+
from setuptools.dist import Distribution
|
| 13 |
+
from setuptools.errors import BaseError
|
| 14 |
+
from setuptools.extension import Extension, Library
|
| 15 |
+
|
| 16 |
+
from distutils import log
|
| 17 |
+
from distutils.ccompiler import new_compiler
|
| 18 |
+
from distutils.sysconfig import customize_compiler, get_config_var
|
| 19 |
+
|
| 20 |
+
if TYPE_CHECKING:
|
| 21 |
+
# Cython not installed on CI tests, causing _build_ext to be `Any`
|
| 22 |
+
from distutils.command.build_ext import build_ext as _build_ext
|
| 23 |
+
else:
|
| 24 |
+
try:
|
| 25 |
+
# Attempt to use Cython for building extensions, if available
|
| 26 |
+
from Cython.Distutils.build_ext import build_ext as _build_ext
|
| 27 |
+
|
| 28 |
+
# Additionally, assert that the compiler module will load
|
| 29 |
+
# also. Ref #1229.
|
| 30 |
+
__import__('Cython.Compiler.Main')
|
| 31 |
+
except ImportError:
|
| 32 |
+
from distutils.command.build_ext import build_ext as _build_ext
|
| 33 |
+
|
| 34 |
+
# make sure _config_vars is initialized
|
| 35 |
+
get_config_var("LDSHARED")
|
| 36 |
+
# Not publicly exposed in typeshed distutils stubs, but this is done on purpose
|
| 37 |
+
# See https://github.com/pypa/setuptools/pull/4228#issuecomment-1959856400
|
| 38 |
+
from distutils.sysconfig import _config_vars as _CONFIG_VARS # noqa: E402
|
| 39 |
+
|
| 40 |
+
|
| 41 |
+
def _customize_compiler_for_shlib(compiler):
|
| 42 |
+
if sys.platform == "darwin":
|
| 43 |
+
# building .dylib requires additional compiler flags on OSX; here we
|
| 44 |
+
# temporarily substitute the pyconfig.h variables so that distutils'
|
| 45 |
+
# 'customize_compiler' uses them before we build the shared libraries.
|
| 46 |
+
tmp = _CONFIG_VARS.copy()
|
| 47 |
+
try:
|
| 48 |
+
# XXX Help! I don't have any idea whether these are right...
|
| 49 |
+
_CONFIG_VARS['LDSHARED'] = (
|
| 50 |
+
"gcc -Wl,-x -dynamiclib -undefined dynamic_lookup"
|
| 51 |
+
)
|
| 52 |
+
_CONFIG_VARS['CCSHARED'] = " -dynamiclib"
|
| 53 |
+
_CONFIG_VARS['SO'] = ".dylib"
|
| 54 |
+
customize_compiler(compiler)
|
| 55 |
+
finally:
|
| 56 |
+
_CONFIG_VARS.clear()
|
| 57 |
+
_CONFIG_VARS.update(tmp)
|
| 58 |
+
else:
|
| 59 |
+
customize_compiler(compiler)
|
| 60 |
+
|
| 61 |
+
|
| 62 |
+
have_rtld = False
|
| 63 |
+
use_stubs = False
|
| 64 |
+
libtype = 'shared'
|
| 65 |
+
|
| 66 |
+
if sys.platform == "darwin":
|
| 67 |
+
use_stubs = True
|
| 68 |
+
elif os.name != 'nt':
|
| 69 |
+
try:
|
| 70 |
+
import dl # type: ignore[import-not-found] # https://github.com/python/mypy/issues/13002
|
| 71 |
+
|
| 72 |
+
use_stubs = have_rtld = hasattr(dl, 'RTLD_NOW')
|
| 73 |
+
except ImportError:
|
| 74 |
+
pass
|
| 75 |
+
|
| 76 |
+
|
| 77 |
+
def if_dl(s):
|
| 78 |
+
return s if have_rtld else ''
|
| 79 |
+
|
| 80 |
+
|
| 81 |
+
def get_abi3_suffix():
|
| 82 |
+
"""Return the file extension for an abi3-compliant Extension()"""
|
| 83 |
+
for suffix in EXTENSION_SUFFIXES:
|
| 84 |
+
if '.abi3' in suffix: # Unix
|
| 85 |
+
return suffix
|
| 86 |
+
elif suffix == '.pyd': # Windows
|
| 87 |
+
return suffix
|
| 88 |
+
return None
|
| 89 |
+
|
| 90 |
+
|
| 91 |
+
class build_ext(_build_ext):
|
| 92 |
+
distribution: Distribution # override distutils.dist.Distribution with setuptools.dist.Distribution
|
| 93 |
+
editable_mode = False
|
| 94 |
+
inplace = False
|
| 95 |
+
|
| 96 |
+
def run(self):
|
| 97 |
+
"""Build extensions in build directory, then copy if --inplace"""
|
| 98 |
+
old_inplace, self.inplace = self.inplace, False
|
| 99 |
+
_build_ext.run(self)
|
| 100 |
+
self.inplace = old_inplace
|
| 101 |
+
if old_inplace:
|
| 102 |
+
self.copy_extensions_to_source()
|
| 103 |
+
|
| 104 |
+
def _get_inplace_equivalent(self, build_py, ext: Extension) -> tuple[str, str]:
|
| 105 |
+
fullname = self.get_ext_fullname(ext.name)
|
| 106 |
+
filename = self.get_ext_filename(fullname)
|
| 107 |
+
modpath = fullname.split('.')
|
| 108 |
+
package = '.'.join(modpath[:-1])
|
| 109 |
+
package_dir = build_py.get_package_dir(package)
|
| 110 |
+
inplace_file = os.path.join(package_dir, os.path.basename(filename))
|
| 111 |
+
regular_file = os.path.join(self.build_lib, filename)
|
| 112 |
+
return (inplace_file, regular_file)
|
| 113 |
+
|
| 114 |
+
def copy_extensions_to_source(self) -> None:
|
| 115 |
+
build_py = self.get_finalized_command('build_py')
|
| 116 |
+
for ext in self.extensions:
|
| 117 |
+
inplace_file, regular_file = self._get_inplace_equivalent(build_py, ext)
|
| 118 |
+
|
| 119 |
+
# Always copy, even if source is older than destination, to ensure
|
| 120 |
+
# that the right extensions for the current Python/platform are
|
| 121 |
+
# used.
|
| 122 |
+
if os.path.exists(regular_file) or not ext.optional:
|
| 123 |
+
self.copy_file(regular_file, inplace_file, level=self.verbose)
|
| 124 |
+
|
| 125 |
+
if ext._needs_stub:
|
| 126 |
+
inplace_stub = self._get_equivalent_stub(ext, inplace_file)
|
| 127 |
+
self._write_stub_file(inplace_stub, ext, compile=True)
|
| 128 |
+
# Always compile stub and remove the original (leave the cache behind)
|
| 129 |
+
# (this behaviour was observed in previous iterations of the code)
|
| 130 |
+
|
| 131 |
+
def _get_equivalent_stub(self, ext: Extension, output_file: str) -> str:
|
| 132 |
+
dir_ = os.path.dirname(output_file)
|
| 133 |
+
_, _, name = ext.name.rpartition(".")
|
| 134 |
+
return f"{os.path.join(dir_, name)}.py"
|
| 135 |
+
|
| 136 |
+
def _get_output_mapping(self) -> Iterator[tuple[str, str]]:
|
| 137 |
+
if not self.inplace:
|
| 138 |
+
return
|
| 139 |
+
|
| 140 |
+
build_py = self.get_finalized_command('build_py')
|
| 141 |
+
opt = self.get_finalized_command('install_lib').optimize or ""
|
| 142 |
+
|
| 143 |
+
for ext in self.extensions:
|
| 144 |
+
inplace_file, regular_file = self._get_inplace_equivalent(build_py, ext)
|
| 145 |
+
yield (regular_file, inplace_file)
|
| 146 |
+
|
| 147 |
+
if ext._needs_stub:
|
| 148 |
+
# This version of `build_ext` always builds artifacts in another dir,
|
| 149 |
+
# when "inplace=True" is given it just copies them back.
|
| 150 |
+
# This is done in the `copy_extensions_to_source` function, which
|
| 151 |
+
# always compile stub files via `_compile_and_remove_stub`.
|
| 152 |
+
# At the end of the process, a `.pyc` stub file is created without the
|
| 153 |
+
# corresponding `.py`.
|
| 154 |
+
|
| 155 |
+
inplace_stub = self._get_equivalent_stub(ext, inplace_file)
|
| 156 |
+
regular_stub = self._get_equivalent_stub(ext, regular_file)
|
| 157 |
+
inplace_cache = _compiled_file_name(inplace_stub, optimization=opt)
|
| 158 |
+
output_cache = _compiled_file_name(regular_stub, optimization=opt)
|
| 159 |
+
yield (output_cache, inplace_cache)
|
| 160 |
+
|
| 161 |
+
def get_ext_filename(self, fullname: str) -> str:
|
| 162 |
+
so_ext = os.getenv('SETUPTOOLS_EXT_SUFFIX')
|
| 163 |
+
if so_ext:
|
| 164 |
+
filename = os.path.join(*fullname.split('.')) + so_ext
|
| 165 |
+
else:
|
| 166 |
+
filename = _build_ext.get_ext_filename(self, fullname)
|
| 167 |
+
ext_suffix = get_config_var('EXT_SUFFIX')
|
| 168 |
+
if not isinstance(ext_suffix, str):
|
| 169 |
+
raise OSError(
|
| 170 |
+
"Configuration variable EXT_SUFFIX not found for this platform "
|
| 171 |
+
"and environment variable SETUPTOOLS_EXT_SUFFIX is missing"
|
| 172 |
+
)
|
| 173 |
+
so_ext = ext_suffix
|
| 174 |
+
|
| 175 |
+
if fullname in self.ext_map:
|
| 176 |
+
ext = self.ext_map[fullname]
|
| 177 |
+
abi3_suffix = get_abi3_suffix()
|
| 178 |
+
if ext.py_limited_api and abi3_suffix: # Use abi3
|
| 179 |
+
filename = filename[: -len(so_ext)] + abi3_suffix
|
| 180 |
+
if isinstance(ext, Library):
|
| 181 |
+
fn, ext = os.path.splitext(filename)
|
| 182 |
+
return self.shlib_compiler.library_filename(fn, libtype)
|
| 183 |
+
elif use_stubs and ext._links_to_dynamic:
|
| 184 |
+
d, fn = os.path.split(filename)
|
| 185 |
+
return os.path.join(d, 'dl-' + fn)
|
| 186 |
+
return filename
|
| 187 |
+
|
| 188 |
+
def initialize_options(self):
|
| 189 |
+
_build_ext.initialize_options(self)
|
| 190 |
+
self.shlib_compiler = None
|
| 191 |
+
self.shlibs = []
|
| 192 |
+
self.ext_map = {}
|
| 193 |
+
self.editable_mode = False
|
| 194 |
+
|
| 195 |
+
def finalize_options(self) -> None:
|
| 196 |
+
_build_ext.finalize_options(self)
|
| 197 |
+
self.extensions = self.extensions or []
|
| 198 |
+
self.check_extensions_list(self.extensions)
|
| 199 |
+
self.shlibs = [ext for ext in self.extensions if isinstance(ext, Library)]
|
| 200 |
+
if self.shlibs:
|
| 201 |
+
self.setup_shlib_compiler()
|
| 202 |
+
for ext in self.extensions:
|
| 203 |
+
ext._full_name = self.get_ext_fullname(ext.name)
|
| 204 |
+
for ext in self.extensions:
|
| 205 |
+
fullname = ext._full_name
|
| 206 |
+
self.ext_map[fullname] = ext
|
| 207 |
+
|
| 208 |
+
# distutils 3.1 will also ask for module names
|
| 209 |
+
# XXX what to do with conflicts?
|
| 210 |
+
self.ext_map[fullname.split('.')[-1]] = ext
|
| 211 |
+
|
| 212 |
+
ltd = self.shlibs and self.links_to_dynamic(ext) or False
|
| 213 |
+
ns = ltd and use_stubs and not isinstance(ext, Library)
|
| 214 |
+
ext._links_to_dynamic = ltd
|
| 215 |
+
ext._needs_stub = ns
|
| 216 |
+
filename = ext._file_name = self.get_ext_filename(fullname)
|
| 217 |
+
libdir = os.path.dirname(os.path.join(self.build_lib, filename))
|
| 218 |
+
if ltd and libdir not in ext.library_dirs:
|
| 219 |
+
ext.library_dirs.append(libdir)
|
| 220 |
+
if ltd and use_stubs and os.curdir not in ext.runtime_library_dirs:
|
| 221 |
+
ext.runtime_library_dirs.append(os.curdir)
|
| 222 |
+
|
| 223 |
+
if self.editable_mode:
|
| 224 |
+
self.inplace = True
|
| 225 |
+
|
| 226 |
+
def setup_shlib_compiler(self):
|
| 227 |
+
compiler = self.shlib_compiler = new_compiler(
|
| 228 |
+
compiler=self.compiler, dry_run=self.dry_run, force=self.force
|
| 229 |
+
)
|
| 230 |
+
_customize_compiler_for_shlib(compiler)
|
| 231 |
+
|
| 232 |
+
if self.include_dirs is not None:
|
| 233 |
+
compiler.set_include_dirs(self.include_dirs)
|
| 234 |
+
if self.define is not None:
|
| 235 |
+
# 'define' option is a list of (name,value) tuples
|
| 236 |
+
for name, value in self.define:
|
| 237 |
+
compiler.define_macro(name, value)
|
| 238 |
+
if self.undef is not None:
|
| 239 |
+
for macro in self.undef:
|
| 240 |
+
compiler.undefine_macro(macro)
|
| 241 |
+
if self.libraries is not None:
|
| 242 |
+
compiler.set_libraries(self.libraries)
|
| 243 |
+
if self.library_dirs is not None:
|
| 244 |
+
compiler.set_library_dirs(self.library_dirs)
|
| 245 |
+
if self.rpath is not None:
|
| 246 |
+
compiler.set_runtime_library_dirs(self.rpath)
|
| 247 |
+
if self.link_objects is not None:
|
| 248 |
+
compiler.set_link_objects(self.link_objects)
|
| 249 |
+
|
| 250 |
+
# hack so distutils' build_extension() builds a library instead
|
| 251 |
+
compiler.link_shared_object = link_shared_object.__get__(compiler) # type: ignore[method-assign]
|
| 252 |
+
|
| 253 |
+
def get_export_symbols(self, ext):
|
| 254 |
+
if isinstance(ext, Library):
|
| 255 |
+
return ext.export_symbols
|
| 256 |
+
return _build_ext.get_export_symbols(self, ext)
|
| 257 |
+
|
| 258 |
+
def build_extension(self, ext) -> None:
|
| 259 |
+
ext._convert_pyx_sources_to_lang()
|
| 260 |
+
_compiler = self.compiler
|
| 261 |
+
try:
|
| 262 |
+
if isinstance(ext, Library):
|
| 263 |
+
self.compiler = self.shlib_compiler
|
| 264 |
+
_build_ext.build_extension(self, ext)
|
| 265 |
+
if ext._needs_stub:
|
| 266 |
+
build_lib = self.get_finalized_command('build_py').build_lib
|
| 267 |
+
self.write_stub(build_lib, ext)
|
| 268 |
+
finally:
|
| 269 |
+
self.compiler = _compiler
|
| 270 |
+
|
| 271 |
+
def links_to_dynamic(self, ext):
|
| 272 |
+
"""Return true if 'ext' links to a dynamic lib in the same package"""
|
| 273 |
+
# XXX this should check to ensure the lib is actually being built
|
| 274 |
+
# XXX as dynamic, and not just using a locally-found version or a
|
| 275 |
+
# XXX static-compiled version
|
| 276 |
+
libnames = dict.fromkeys([lib._full_name for lib in self.shlibs])
|
| 277 |
+
pkg = '.'.join(ext._full_name.split('.')[:-1] + [''])
|
| 278 |
+
return any(pkg + libname in libnames for libname in ext.libraries)
|
| 279 |
+
|
| 280 |
+
def get_source_files(self) -> list[str]:
|
| 281 |
+
return [*_build_ext.get_source_files(self), *self._get_internal_depends()]
|
| 282 |
+
|
| 283 |
+
def _get_internal_depends(self) -> Iterator[str]:
|
| 284 |
+
"""Yield ``ext.depends`` that are contained by the project directory"""
|
| 285 |
+
project_root = Path(self.distribution.src_root or os.curdir).resolve()
|
| 286 |
+
depends = (dep for ext in self.extensions for dep in ext.depends)
|
| 287 |
+
|
| 288 |
+
def skip(orig_path: str, reason: str) -> None:
|
| 289 |
+
log.info(
|
| 290 |
+
"dependency %s won't be automatically "
|
| 291 |
+
"included in the manifest: the path %s",
|
| 292 |
+
orig_path,
|
| 293 |
+
reason,
|
| 294 |
+
)
|
| 295 |
+
|
| 296 |
+
for dep in depends:
|
| 297 |
+
path = Path(dep)
|
| 298 |
+
|
| 299 |
+
if path.is_absolute():
|
| 300 |
+
skip(dep, "must be relative")
|
| 301 |
+
continue
|
| 302 |
+
|
| 303 |
+
if ".." in path.parts:
|
| 304 |
+
skip(dep, "can't have `..` segments")
|
| 305 |
+
continue
|
| 306 |
+
|
| 307 |
+
try:
|
| 308 |
+
resolved = (project_root / path).resolve(strict=True)
|
| 309 |
+
except OSError:
|
| 310 |
+
skip(dep, "doesn't exist")
|
| 311 |
+
continue
|
| 312 |
+
|
| 313 |
+
try:
|
| 314 |
+
resolved.relative_to(project_root)
|
| 315 |
+
except ValueError:
|
| 316 |
+
skip(dep, "must be inside the project root")
|
| 317 |
+
continue
|
| 318 |
+
|
| 319 |
+
yield path.as_posix()
|
| 320 |
+
|
| 321 |
+
def get_outputs(self) -> list[str]:
|
| 322 |
+
if self.inplace:
|
| 323 |
+
return list(self.get_output_mapping().keys())
|
| 324 |
+
return sorted(_build_ext.get_outputs(self) + self.__get_stubs_outputs())
|
| 325 |
+
|
| 326 |
+
def get_output_mapping(self) -> dict[str, str]:
|
| 327 |
+
"""See :class:`setuptools.commands.build.SubCommand`"""
|
| 328 |
+
mapping = self._get_output_mapping()
|
| 329 |
+
return dict(sorted(mapping, key=lambda x: x[0]))
|
| 330 |
+
|
| 331 |
+
def __get_stubs_outputs(self):
|
| 332 |
+
# assemble the base name for each extension that needs a stub
|
| 333 |
+
ns_ext_bases = (
|
| 334 |
+
os.path.join(self.build_lib, *ext._full_name.split('.'))
|
| 335 |
+
for ext in self.extensions
|
| 336 |
+
if ext._needs_stub
|
| 337 |
+
)
|
| 338 |
+
# pair each base with the extension
|
| 339 |
+
pairs = itertools.product(ns_ext_bases, self.__get_output_extensions())
|
| 340 |
+
return list(base + fnext for base, fnext in pairs)
|
| 341 |
+
|
| 342 |
+
def __get_output_extensions(self):
|
| 343 |
+
yield '.py'
|
| 344 |
+
yield '.pyc'
|
| 345 |
+
if self.get_finalized_command('build_py').optimize:
|
| 346 |
+
yield '.pyo'
|
| 347 |
+
|
| 348 |
+
def write_stub(self, output_dir, ext, compile=False) -> None:
|
| 349 |
+
stub_file = os.path.join(output_dir, *ext._full_name.split('.')) + '.py'
|
| 350 |
+
self._write_stub_file(stub_file, ext, compile)
|
| 351 |
+
|
| 352 |
+
def _write_stub_file(self, stub_file: str, ext: Extension, compile=False):
|
| 353 |
+
log.info("writing stub loader for %s to %s", ext._full_name, stub_file)
|
| 354 |
+
if compile and os.path.exists(stub_file):
|
| 355 |
+
raise BaseError(stub_file + " already exists! Please delete.")
|
| 356 |
+
if not self.dry_run:
|
| 357 |
+
with open(stub_file, 'w', encoding="utf-8") as f:
|
| 358 |
+
content = '\n'.join([
|
| 359 |
+
"def __bootstrap__():",
|
| 360 |
+
" global __bootstrap__, __file__, __loader__",
|
| 361 |
+
" import sys, os, pkg_resources, importlib.util" + if_dl(", dl"),
|
| 362 |
+
" __file__ = pkg_resources.resource_filename"
|
| 363 |
+
f"(__name__,{os.path.basename(ext._file_name)!r})",
|
| 364 |
+
" del __bootstrap__",
|
| 365 |
+
" if '__loader__' in globals():",
|
| 366 |
+
" del __loader__",
|
| 367 |
+
if_dl(" old_flags = sys.getdlopenflags()"),
|
| 368 |
+
" old_dir = os.getcwd()",
|
| 369 |
+
" try:",
|
| 370 |
+
" os.chdir(os.path.dirname(__file__))",
|
| 371 |
+
if_dl(" sys.setdlopenflags(dl.RTLD_NOW)"),
|
| 372 |
+
" spec = importlib.util.spec_from_file_location(",
|
| 373 |
+
" __name__, __file__)",
|
| 374 |
+
" mod = importlib.util.module_from_spec(spec)",
|
| 375 |
+
" spec.loader.exec_module(mod)",
|
| 376 |
+
" finally:",
|
| 377 |
+
if_dl(" sys.setdlopenflags(old_flags)"),
|
| 378 |
+
" os.chdir(old_dir)",
|
| 379 |
+
"__bootstrap__()",
|
| 380 |
+
"", # terminal \n
|
| 381 |
+
])
|
| 382 |
+
f.write(content)
|
| 383 |
+
if compile:
|
| 384 |
+
self._compile_and_remove_stub(stub_file)
|
| 385 |
+
|
| 386 |
+
def _compile_and_remove_stub(self, stub_file: str):
|
| 387 |
+
from distutils.util import byte_compile
|
| 388 |
+
|
| 389 |
+
byte_compile([stub_file], optimize=0, force=True, dry_run=self.dry_run)
|
| 390 |
+
optimize = self.get_finalized_command('install_lib').optimize
|
| 391 |
+
if optimize > 0:
|
| 392 |
+
byte_compile(
|
| 393 |
+
[stub_file],
|
| 394 |
+
optimize=optimize,
|
| 395 |
+
force=True,
|
| 396 |
+
dry_run=self.dry_run,
|
| 397 |
+
)
|
| 398 |
+
if os.path.exists(stub_file) and not self.dry_run:
|
| 399 |
+
os.unlink(stub_file)
|
| 400 |
+
|
| 401 |
+
|
| 402 |
+
if use_stubs or os.name == 'nt':
|
| 403 |
+
# Build shared libraries
|
| 404 |
+
#
|
| 405 |
+
def link_shared_object(
|
| 406 |
+
self,
|
| 407 |
+
objects,
|
| 408 |
+
output_libname,
|
| 409 |
+
output_dir=None,
|
| 410 |
+
libraries=None,
|
| 411 |
+
library_dirs=None,
|
| 412 |
+
runtime_library_dirs=None,
|
| 413 |
+
export_symbols=None,
|
| 414 |
+
debug: bool = False,
|
| 415 |
+
extra_preargs=None,
|
| 416 |
+
extra_postargs=None,
|
| 417 |
+
build_temp=None,
|
| 418 |
+
target_lang=None,
|
| 419 |
+
) -> None:
|
| 420 |
+
self.link(
|
| 421 |
+
self.SHARED_LIBRARY,
|
| 422 |
+
objects,
|
| 423 |
+
output_libname,
|
| 424 |
+
output_dir,
|
| 425 |
+
libraries,
|
| 426 |
+
library_dirs,
|
| 427 |
+
runtime_library_dirs,
|
| 428 |
+
export_symbols,
|
| 429 |
+
debug,
|
| 430 |
+
extra_preargs,
|
| 431 |
+
extra_postargs,
|
| 432 |
+
build_temp,
|
| 433 |
+
target_lang,
|
| 434 |
+
)
|
| 435 |
+
|
| 436 |
+
else:
|
| 437 |
+
# Build static libraries everywhere else
|
| 438 |
+
libtype = 'static'
|
| 439 |
+
|
| 440 |
+
def link_shared_object(
|
| 441 |
+
self,
|
| 442 |
+
objects,
|
| 443 |
+
output_libname,
|
| 444 |
+
output_dir=None,
|
| 445 |
+
libraries=None,
|
| 446 |
+
library_dirs=None,
|
| 447 |
+
runtime_library_dirs=None,
|
| 448 |
+
export_symbols=None,
|
| 449 |
+
debug: bool = False,
|
| 450 |
+
extra_preargs=None,
|
| 451 |
+
extra_postargs=None,
|
| 452 |
+
build_temp=None,
|
| 453 |
+
target_lang=None,
|
| 454 |
+
) -> None:
|
| 455 |
+
# XXX we need to either disallow these attrs on Library instances,
|
| 456 |
+
# or warn/abort here if set, or something...
|
| 457 |
+
# libraries=None, library_dirs=None, runtime_library_dirs=None,
|
| 458 |
+
# export_symbols=None, extra_preargs=None, extra_postargs=None,
|
| 459 |
+
# build_temp=None
|
| 460 |
+
|
| 461 |
+
assert output_dir is None # distutils build_ext doesn't pass this
|
| 462 |
+
output_dir, filename = os.path.split(output_libname)
|
| 463 |
+
basename, _ext = os.path.splitext(filename)
|
| 464 |
+
if self.library_filename("x").startswith('lib'):
|
| 465 |
+
# strip 'lib' prefix; this is kludgy if some platform uses
|
| 466 |
+
# a different prefix
|
| 467 |
+
basename = basename[3:]
|
| 468 |
+
|
| 469 |
+
self.create_static_lib(objects, basename, output_dir, debug, target_lang)
|
code/LaDi-RL-old-qwen-cod/LaDi-RL-old-qwen-cod/venv/lib64/python3.10/site-packages/setuptools/command/build_py.py
ADDED
|
@@ -0,0 +1,400 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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|
|
|
|
|
|
|
| 1 |
+
from __future__ import annotations
|
| 2 |
+
|
| 3 |
+
import fnmatch
|
| 4 |
+
import itertools
|
| 5 |
+
import os
|
| 6 |
+
import stat
|
| 7 |
+
import textwrap
|
| 8 |
+
from collections.abc import Iterable, Iterator
|
| 9 |
+
from functools import partial
|
| 10 |
+
from glob import glob
|
| 11 |
+
from pathlib import Path
|
| 12 |
+
|
| 13 |
+
from more_itertools import unique_everseen
|
| 14 |
+
|
| 15 |
+
from .._path import StrPath, StrPathT
|
| 16 |
+
from ..dist import Distribution
|
| 17 |
+
from ..warnings import SetuptoolsDeprecationWarning
|
| 18 |
+
|
| 19 |
+
import distutils.command.build_py as orig
|
| 20 |
+
import distutils.errors
|
| 21 |
+
from distutils.util import convert_path
|
| 22 |
+
|
| 23 |
+
_IMPLICIT_DATA_FILES = ('*.pyi', 'py.typed')
|
| 24 |
+
|
| 25 |
+
|
| 26 |
+
def make_writable(target) -> None:
|
| 27 |
+
os.chmod(target, os.stat(target).st_mode | stat.S_IWRITE)
|
| 28 |
+
|
| 29 |
+
|
| 30 |
+
class build_py(orig.build_py):
|
| 31 |
+
"""Enhanced 'build_py' command that includes data files with packages
|
| 32 |
+
|
| 33 |
+
The data files are specified via a 'package_data' argument to 'setup()'.
|
| 34 |
+
See 'setuptools.dist.Distribution' for more details.
|
| 35 |
+
|
| 36 |
+
Also, this version of the 'build_py' command allows you to specify both
|
| 37 |
+
'py_modules' and 'packages' in the same setup operation.
|
| 38 |
+
"""
|
| 39 |
+
|
| 40 |
+
distribution: Distribution # override distutils.dist.Distribution with setuptools.dist.Distribution
|
| 41 |
+
editable_mode: bool = False
|
| 42 |
+
existing_egg_info_dir: StrPath | None = None #: Private API, internal use only.
|
| 43 |
+
|
| 44 |
+
def finalize_options(self):
|
| 45 |
+
orig.build_py.finalize_options(self)
|
| 46 |
+
self.package_data = self.distribution.package_data
|
| 47 |
+
self.exclude_package_data = self.distribution.exclude_package_data or {}
|
| 48 |
+
if 'data_files' in self.__dict__:
|
| 49 |
+
del self.__dict__['data_files']
|
| 50 |
+
|
| 51 |
+
def copy_file( # type: ignore[override] # No overload, no bytes support
|
| 52 |
+
self,
|
| 53 |
+
infile: StrPath,
|
| 54 |
+
outfile: StrPathT,
|
| 55 |
+
preserve_mode: bool = True,
|
| 56 |
+
preserve_times: bool = True,
|
| 57 |
+
link: str | None = None,
|
| 58 |
+
level: object = 1,
|
| 59 |
+
) -> tuple[StrPathT | str, bool]:
|
| 60 |
+
# Overwrite base class to allow using links
|
| 61 |
+
if link:
|
| 62 |
+
infile = str(Path(infile).resolve())
|
| 63 |
+
outfile = str(Path(outfile).resolve()) # type: ignore[assignment] # Re-assigning a str when outfile is StrPath is ok
|
| 64 |
+
return super().copy_file( # pyright: ignore[reportReturnType] # pypa/distutils#309
|
| 65 |
+
infile, outfile, preserve_mode, preserve_times, link, level
|
| 66 |
+
)
|
| 67 |
+
|
| 68 |
+
def run(self) -> None:
|
| 69 |
+
"""Build modules, packages, and copy data files to build directory"""
|
| 70 |
+
if not (self.py_modules or self.packages) or self.editable_mode:
|
| 71 |
+
return
|
| 72 |
+
|
| 73 |
+
if self.py_modules:
|
| 74 |
+
self.build_modules()
|
| 75 |
+
|
| 76 |
+
if self.packages:
|
| 77 |
+
self.build_packages()
|
| 78 |
+
self.build_package_data()
|
| 79 |
+
|
| 80 |
+
# Only compile actual .py files, using our base class' idea of what our
|
| 81 |
+
# output files are.
|
| 82 |
+
self.byte_compile(orig.build_py.get_outputs(self, include_bytecode=False))
|
| 83 |
+
|
| 84 |
+
def __getattr__(self, attr: str):
|
| 85 |
+
"lazily compute data files"
|
| 86 |
+
if attr == 'data_files':
|
| 87 |
+
self.data_files = self._get_data_files()
|
| 88 |
+
return self.data_files
|
| 89 |
+
return orig.build_py.__getattr__(self, attr)
|
| 90 |
+
|
| 91 |
+
def _get_data_files(self):
|
| 92 |
+
"""Generate list of '(package,src_dir,build_dir,filenames)' tuples"""
|
| 93 |
+
self.analyze_manifest()
|
| 94 |
+
return list(map(self._get_pkg_data_files, self.packages or ()))
|
| 95 |
+
|
| 96 |
+
def get_data_files_without_manifest(self):
|
| 97 |
+
"""
|
| 98 |
+
Generate list of ``(package,src_dir,build_dir,filenames)`` tuples,
|
| 99 |
+
but without triggering any attempt to analyze or build the manifest.
|
| 100 |
+
"""
|
| 101 |
+
# Prevent eventual errors from unset `manifest_files`
|
| 102 |
+
# (that would otherwise be set by `analyze_manifest`)
|
| 103 |
+
self.__dict__.setdefault('manifest_files', {})
|
| 104 |
+
return list(map(self._get_pkg_data_files, self.packages or ()))
|
| 105 |
+
|
| 106 |
+
def _get_pkg_data_files(self, package):
|
| 107 |
+
# Locate package source directory
|
| 108 |
+
src_dir = self.get_package_dir(package)
|
| 109 |
+
|
| 110 |
+
# Compute package build directory
|
| 111 |
+
build_dir = os.path.join(*([self.build_lib] + package.split('.')))
|
| 112 |
+
|
| 113 |
+
# Strip directory from globbed filenames
|
| 114 |
+
filenames = [
|
| 115 |
+
os.path.relpath(file, src_dir)
|
| 116 |
+
for file in self.find_data_files(package, src_dir)
|
| 117 |
+
]
|
| 118 |
+
return package, src_dir, build_dir, filenames
|
| 119 |
+
|
| 120 |
+
def find_data_files(self, package, src_dir):
|
| 121 |
+
"""Return filenames for package's data files in 'src_dir'"""
|
| 122 |
+
patterns = self._get_platform_patterns(
|
| 123 |
+
self.package_data,
|
| 124 |
+
package,
|
| 125 |
+
src_dir,
|
| 126 |
+
extra_patterns=_IMPLICIT_DATA_FILES,
|
| 127 |
+
)
|
| 128 |
+
globs_expanded = map(partial(glob, recursive=True), patterns)
|
| 129 |
+
# flatten the expanded globs into an iterable of matches
|
| 130 |
+
globs_matches = itertools.chain.from_iterable(globs_expanded)
|
| 131 |
+
glob_files = filter(os.path.isfile, globs_matches)
|
| 132 |
+
files = itertools.chain(
|
| 133 |
+
self.manifest_files.get(package, []),
|
| 134 |
+
glob_files,
|
| 135 |
+
)
|
| 136 |
+
return self.exclude_data_files(package, src_dir, files)
|
| 137 |
+
|
| 138 |
+
def get_outputs(self, include_bytecode: bool = True) -> list[str]: # type: ignore[override] # Using a real boolean instead of 0|1
|
| 139 |
+
"""See :class:`setuptools.commands.build.SubCommand`"""
|
| 140 |
+
if self.editable_mode:
|
| 141 |
+
return list(self.get_output_mapping().keys())
|
| 142 |
+
return super().get_outputs(include_bytecode)
|
| 143 |
+
|
| 144 |
+
def get_output_mapping(self) -> dict[str, str]:
|
| 145 |
+
"""See :class:`setuptools.commands.build.SubCommand`"""
|
| 146 |
+
mapping = itertools.chain(
|
| 147 |
+
self._get_package_data_output_mapping(),
|
| 148 |
+
self._get_module_mapping(),
|
| 149 |
+
)
|
| 150 |
+
return dict(sorted(mapping, key=lambda x: x[0]))
|
| 151 |
+
|
| 152 |
+
def _get_module_mapping(self) -> Iterator[tuple[str, str]]:
|
| 153 |
+
"""Iterate over all modules producing (dest, src) pairs."""
|
| 154 |
+
for package, module, module_file in self.find_all_modules():
|
| 155 |
+
package = package.split('.')
|
| 156 |
+
filename = self.get_module_outfile(self.build_lib, package, module)
|
| 157 |
+
yield (filename, module_file)
|
| 158 |
+
|
| 159 |
+
def _get_package_data_output_mapping(self) -> Iterator[tuple[str, str]]:
|
| 160 |
+
"""Iterate over package data producing (dest, src) pairs."""
|
| 161 |
+
for package, src_dir, build_dir, filenames in self.data_files:
|
| 162 |
+
for filename in filenames:
|
| 163 |
+
target = os.path.join(build_dir, filename)
|
| 164 |
+
srcfile = os.path.join(src_dir, filename)
|
| 165 |
+
yield (target, srcfile)
|
| 166 |
+
|
| 167 |
+
def build_package_data(self) -> None:
|
| 168 |
+
"""Copy data files into build directory"""
|
| 169 |
+
for target, srcfile in self._get_package_data_output_mapping():
|
| 170 |
+
self.mkpath(os.path.dirname(target))
|
| 171 |
+
_outf, _copied = self.copy_file(srcfile, target)
|
| 172 |
+
make_writable(target)
|
| 173 |
+
|
| 174 |
+
def analyze_manifest(self) -> None:
|
| 175 |
+
self.manifest_files: dict[str, list[str]] = {}
|
| 176 |
+
if not self.distribution.include_package_data:
|
| 177 |
+
return
|
| 178 |
+
src_dirs: dict[str, str] = {}
|
| 179 |
+
for package in self.packages or ():
|
| 180 |
+
# Locate package source directory
|
| 181 |
+
src_dirs[assert_relative(self.get_package_dir(package))] = package
|
| 182 |
+
|
| 183 |
+
if (
|
| 184 |
+
self.existing_egg_info_dir
|
| 185 |
+
and Path(self.existing_egg_info_dir, "SOURCES.txt").exists()
|
| 186 |
+
):
|
| 187 |
+
egg_info_dir = self.existing_egg_info_dir
|
| 188 |
+
manifest = Path(egg_info_dir, "SOURCES.txt")
|
| 189 |
+
files = manifest.read_text(encoding="utf-8").splitlines()
|
| 190 |
+
else:
|
| 191 |
+
self.run_command('egg_info')
|
| 192 |
+
ei_cmd = self.get_finalized_command('egg_info')
|
| 193 |
+
egg_info_dir = ei_cmd.egg_info
|
| 194 |
+
files = ei_cmd.filelist.files
|
| 195 |
+
|
| 196 |
+
check = _IncludePackageDataAbuse()
|
| 197 |
+
for path in self._filter_build_files(files, egg_info_dir):
|
| 198 |
+
d, f = os.path.split(assert_relative(path))
|
| 199 |
+
prev = None
|
| 200 |
+
oldf = f
|
| 201 |
+
while d and d != prev and d not in src_dirs:
|
| 202 |
+
prev = d
|
| 203 |
+
d, df = os.path.split(d)
|
| 204 |
+
f = os.path.join(df, f)
|
| 205 |
+
if d in src_dirs:
|
| 206 |
+
if f == oldf:
|
| 207 |
+
if check.is_module(f):
|
| 208 |
+
continue # it's a module, not data
|
| 209 |
+
else:
|
| 210 |
+
importable = check.importable_subpackage(src_dirs[d], f)
|
| 211 |
+
if importable:
|
| 212 |
+
check.warn(importable)
|
| 213 |
+
self.manifest_files.setdefault(src_dirs[d], []).append(path)
|
| 214 |
+
|
| 215 |
+
def _filter_build_files(
|
| 216 |
+
self, files: Iterable[str], egg_info: StrPath
|
| 217 |
+
) -> Iterator[str]:
|
| 218 |
+
"""
|
| 219 |
+
``build_meta`` may try to create egg_info outside of the project directory,
|
| 220 |
+
and this can be problematic for certain plugins (reported in issue #3500).
|
| 221 |
+
|
| 222 |
+
Extensions might also include between their sources files created on the
|
| 223 |
+
``build_lib`` and ``build_temp`` directories.
|
| 224 |
+
|
| 225 |
+
This function should filter this case of invalid files out.
|
| 226 |
+
"""
|
| 227 |
+
build = self.get_finalized_command("build")
|
| 228 |
+
build_dirs = (egg_info, self.build_lib, build.build_temp, build.build_base)
|
| 229 |
+
norm_dirs = [os.path.normpath(p) for p in build_dirs if p]
|
| 230 |
+
|
| 231 |
+
for file in files:
|
| 232 |
+
norm_path = os.path.normpath(file)
|
| 233 |
+
if not os.path.isabs(file) or all(d not in norm_path for d in norm_dirs):
|
| 234 |
+
yield file
|
| 235 |
+
|
| 236 |
+
def get_data_files(self) -> None:
|
| 237 |
+
pass # Lazily compute data files in _get_data_files() function.
|
| 238 |
+
|
| 239 |
+
def check_package(self, package, package_dir):
|
| 240 |
+
"""Check namespace packages' __init__ for declare_namespace"""
|
| 241 |
+
try:
|
| 242 |
+
return self.packages_checked[package]
|
| 243 |
+
except KeyError:
|
| 244 |
+
pass
|
| 245 |
+
|
| 246 |
+
init_py = orig.build_py.check_package(self, package, package_dir)
|
| 247 |
+
self.packages_checked[package] = init_py
|
| 248 |
+
|
| 249 |
+
if not init_py or not self.distribution.namespace_packages:
|
| 250 |
+
return init_py
|
| 251 |
+
|
| 252 |
+
for pkg in self.distribution.namespace_packages:
|
| 253 |
+
if pkg == package or pkg.startswith(package + '.'):
|
| 254 |
+
break
|
| 255 |
+
else:
|
| 256 |
+
return init_py
|
| 257 |
+
|
| 258 |
+
with open(init_py, 'rb') as f:
|
| 259 |
+
contents = f.read()
|
| 260 |
+
if b'declare_namespace' not in contents:
|
| 261 |
+
raise distutils.errors.DistutilsError(
|
| 262 |
+
f"Namespace package problem: {package} is a namespace package, but "
|
| 263 |
+
"its\n__init__.py does not call declare_namespace()! Please "
|
| 264 |
+
'fix it.\n(See the setuptools manual under '
|
| 265 |
+
'"Namespace Packages" for details.)\n"'
|
| 266 |
+
)
|
| 267 |
+
return init_py
|
| 268 |
+
|
| 269 |
+
def initialize_options(self):
|
| 270 |
+
self.packages_checked = {}
|
| 271 |
+
orig.build_py.initialize_options(self)
|
| 272 |
+
self.editable_mode = False
|
| 273 |
+
self.existing_egg_info_dir = None
|
| 274 |
+
|
| 275 |
+
def get_package_dir(self, package):
|
| 276 |
+
res = orig.build_py.get_package_dir(self, package)
|
| 277 |
+
if self.distribution.src_root is not None:
|
| 278 |
+
return os.path.join(self.distribution.src_root, res)
|
| 279 |
+
return res
|
| 280 |
+
|
| 281 |
+
def exclude_data_files(self, package, src_dir, files):
|
| 282 |
+
"""Filter filenames for package's data files in 'src_dir'"""
|
| 283 |
+
files = list(files)
|
| 284 |
+
patterns = self._get_platform_patterns(
|
| 285 |
+
self.exclude_package_data,
|
| 286 |
+
package,
|
| 287 |
+
src_dir,
|
| 288 |
+
)
|
| 289 |
+
match_groups = (fnmatch.filter(files, pattern) for pattern in patterns)
|
| 290 |
+
# flatten the groups of matches into an iterable of matches
|
| 291 |
+
matches = itertools.chain.from_iterable(match_groups)
|
| 292 |
+
bad = set(matches)
|
| 293 |
+
keepers = (fn for fn in files if fn not in bad)
|
| 294 |
+
# ditch dupes
|
| 295 |
+
return list(unique_everseen(keepers))
|
| 296 |
+
|
| 297 |
+
@staticmethod
|
| 298 |
+
def _get_platform_patterns(spec, package, src_dir, extra_patterns=()):
|
| 299 |
+
"""
|
| 300 |
+
yield platform-specific path patterns (suitable for glob
|
| 301 |
+
or fn_match) from a glob-based spec (such as
|
| 302 |
+
self.package_data or self.exclude_package_data)
|
| 303 |
+
matching package in src_dir.
|
| 304 |
+
"""
|
| 305 |
+
raw_patterns = itertools.chain(
|
| 306 |
+
extra_patterns,
|
| 307 |
+
spec.get('', []),
|
| 308 |
+
spec.get(package, []),
|
| 309 |
+
)
|
| 310 |
+
return (
|
| 311 |
+
# Each pattern has to be converted to a platform-specific path
|
| 312 |
+
os.path.join(src_dir, convert_path(pattern))
|
| 313 |
+
for pattern in raw_patterns
|
| 314 |
+
)
|
| 315 |
+
|
| 316 |
+
|
| 317 |
+
def assert_relative(path):
|
| 318 |
+
if not os.path.isabs(path):
|
| 319 |
+
return path
|
| 320 |
+
from distutils.errors import DistutilsSetupError
|
| 321 |
+
|
| 322 |
+
msg = (
|
| 323 |
+
textwrap.dedent(
|
| 324 |
+
"""
|
| 325 |
+
Error: setup script specifies an absolute path:
|
| 326 |
+
|
| 327 |
+
%s
|
| 328 |
+
|
| 329 |
+
setup() arguments must *always* be /-separated paths relative to the
|
| 330 |
+
setup.py directory, *never* absolute paths.
|
| 331 |
+
"""
|
| 332 |
+
).lstrip()
|
| 333 |
+
% path
|
| 334 |
+
)
|
| 335 |
+
raise DistutilsSetupError(msg)
|
| 336 |
+
|
| 337 |
+
|
| 338 |
+
class _IncludePackageDataAbuse:
|
| 339 |
+
"""Inform users that package or module is included as 'data file'"""
|
| 340 |
+
|
| 341 |
+
class _Warning(SetuptoolsDeprecationWarning):
|
| 342 |
+
_SUMMARY = """
|
| 343 |
+
Package {importable!r} is absent from the `packages` configuration.
|
| 344 |
+
"""
|
| 345 |
+
|
| 346 |
+
_DETAILS = """
|
| 347 |
+
############################
|
| 348 |
+
# Package would be ignored #
|
| 349 |
+
############################
|
| 350 |
+
Python recognizes {importable!r} as an importable package[^1],
|
| 351 |
+
but it is absent from setuptools' `packages` configuration.
|
| 352 |
+
|
| 353 |
+
This leads to an ambiguous overall configuration. If you want to distribute this
|
| 354 |
+
package, please make sure that {importable!r} is explicitly added
|
| 355 |
+
to the `packages` configuration field.
|
| 356 |
+
|
| 357 |
+
Alternatively, you can also rely on setuptools' discovery methods
|
| 358 |
+
(for example by using `find_namespace_packages(...)`/`find_namespace:`
|
| 359 |
+
instead of `find_packages(...)`/`find:`).
|
| 360 |
+
|
| 361 |
+
You can read more about "package discovery" on setuptools documentation page:
|
| 362 |
+
|
| 363 |
+
- https://setuptools.pypa.io/en/latest/userguide/package_discovery.html
|
| 364 |
+
|
| 365 |
+
If you don't want {importable!r} to be distributed and are
|
| 366 |
+
already explicitly excluding {importable!r} via
|
| 367 |
+
`find_namespace_packages(...)/find_namespace` or `find_packages(...)/find`,
|
| 368 |
+
you can try to use `exclude_package_data`, or `include-package-data=False` in
|
| 369 |
+
combination with a more fine grained `package-data` configuration.
|
| 370 |
+
|
| 371 |
+
You can read more about "package data files" on setuptools documentation page:
|
| 372 |
+
|
| 373 |
+
- https://setuptools.pypa.io/en/latest/userguide/datafiles.html
|
| 374 |
+
|
| 375 |
+
|
| 376 |
+
[^1]: For Python, any directory (with suitable naming) can be imported,
|
| 377 |
+
even if it does not contain any `.py` files.
|
| 378 |
+
On the other hand, currently there is no concept of package data
|
| 379 |
+
directory, all directories are treated like packages.
|
| 380 |
+
"""
|
| 381 |
+
# _DUE_DATE: still not defined as this is particularly controversial.
|
| 382 |
+
# Warning initially introduced in May 2022. See issue #3340 for discussion.
|
| 383 |
+
|
| 384 |
+
def __init__(self):
|
| 385 |
+
self._already_warned = set()
|
| 386 |
+
|
| 387 |
+
def is_module(self, file):
|
| 388 |
+
return file.endswith(".py") and file[: -len(".py")].isidentifier()
|
| 389 |
+
|
| 390 |
+
def importable_subpackage(self, parent, file):
|
| 391 |
+
pkg = Path(file).parent
|
| 392 |
+
parts = list(itertools.takewhile(str.isidentifier, pkg.parts))
|
| 393 |
+
if parts:
|
| 394 |
+
return ".".join([parent, *parts])
|
| 395 |
+
return None
|
| 396 |
+
|
| 397 |
+
def warn(self, importable):
|
| 398 |
+
if importable not in self._already_warned:
|
| 399 |
+
self._Warning.emit(importable=importable)
|
| 400 |
+
self._already_warned.add(importable)
|
code/LaDi-RL-old-qwen-cod/LaDi-RL-old-qwen-cod/venv/lib64/python3.10/site-packages/setuptools/command/develop.py
ADDED
|
@@ -0,0 +1,195 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
import glob
|
| 2 |
+
import os
|
| 3 |
+
|
| 4 |
+
import setuptools
|
| 5 |
+
from setuptools import _normalization, _path, namespaces
|
| 6 |
+
from setuptools.command.easy_install import easy_install
|
| 7 |
+
|
| 8 |
+
from ..unicode_utils import _read_utf8_with_fallback
|
| 9 |
+
|
| 10 |
+
from distutils import log
|
| 11 |
+
from distutils.errors import DistutilsOptionError
|
| 12 |
+
from distutils.util import convert_path
|
| 13 |
+
|
| 14 |
+
|
| 15 |
+
class develop(namespaces.DevelopInstaller, easy_install):
|
| 16 |
+
"""Set up package for development"""
|
| 17 |
+
|
| 18 |
+
description = "install package in 'development mode'"
|
| 19 |
+
|
| 20 |
+
user_options = easy_install.user_options + [
|
| 21 |
+
("uninstall", "u", "Uninstall this source package"),
|
| 22 |
+
("egg-path=", None, "Set the path to be used in the .egg-link file"),
|
| 23 |
+
]
|
| 24 |
+
|
| 25 |
+
boolean_options = easy_install.boolean_options + ['uninstall']
|
| 26 |
+
|
| 27 |
+
command_consumes_arguments = False # override base
|
| 28 |
+
|
| 29 |
+
def run(self):
|
| 30 |
+
if self.uninstall:
|
| 31 |
+
self.multi_version = True
|
| 32 |
+
self.uninstall_link()
|
| 33 |
+
self.uninstall_namespaces()
|
| 34 |
+
else:
|
| 35 |
+
self.install_for_development()
|
| 36 |
+
self.warn_deprecated_options()
|
| 37 |
+
|
| 38 |
+
def initialize_options(self):
|
| 39 |
+
self.uninstall = None
|
| 40 |
+
self.egg_path = None
|
| 41 |
+
easy_install.initialize_options(self)
|
| 42 |
+
self.setup_path = None
|
| 43 |
+
self.always_copy_from = '.' # always copy eggs installed in curdir
|
| 44 |
+
|
| 45 |
+
def finalize_options(self) -> None:
|
| 46 |
+
import pkg_resources
|
| 47 |
+
|
| 48 |
+
ei = self.get_finalized_command("egg_info")
|
| 49 |
+
self.args = [ei.egg_name]
|
| 50 |
+
|
| 51 |
+
easy_install.finalize_options(self)
|
| 52 |
+
self.expand_basedirs()
|
| 53 |
+
self.expand_dirs()
|
| 54 |
+
# pick up setup-dir .egg files only: no .egg-info
|
| 55 |
+
self.package_index.scan(glob.glob('*.egg'))
|
| 56 |
+
|
| 57 |
+
egg_link_fn = (
|
| 58 |
+
_normalization.filename_component_broken(ei.egg_name) + '.egg-link'
|
| 59 |
+
)
|
| 60 |
+
self.egg_link = os.path.join(self.install_dir, egg_link_fn)
|
| 61 |
+
self.egg_base = ei.egg_base
|
| 62 |
+
if self.egg_path is None:
|
| 63 |
+
self.egg_path = os.path.abspath(ei.egg_base)
|
| 64 |
+
|
| 65 |
+
target = _path.normpath(self.egg_base)
|
| 66 |
+
egg_path = _path.normpath(os.path.join(self.install_dir, self.egg_path))
|
| 67 |
+
if egg_path != target:
|
| 68 |
+
raise DistutilsOptionError(
|
| 69 |
+
"--egg-path must be a relative path from the install"
|
| 70 |
+
" directory to " + target
|
| 71 |
+
)
|
| 72 |
+
|
| 73 |
+
# Make a distribution for the package's source
|
| 74 |
+
self.dist = pkg_resources.Distribution(
|
| 75 |
+
target,
|
| 76 |
+
pkg_resources.PathMetadata(target, os.path.abspath(ei.egg_info)),
|
| 77 |
+
project_name=ei.egg_name,
|
| 78 |
+
)
|
| 79 |
+
|
| 80 |
+
self.setup_path = self._resolve_setup_path(
|
| 81 |
+
self.egg_base,
|
| 82 |
+
self.install_dir,
|
| 83 |
+
self.egg_path,
|
| 84 |
+
)
|
| 85 |
+
|
| 86 |
+
@staticmethod
|
| 87 |
+
def _resolve_setup_path(egg_base, install_dir, egg_path):
|
| 88 |
+
"""
|
| 89 |
+
Generate a path from egg_base back to '.' where the
|
| 90 |
+
setup script resides and ensure that path points to the
|
| 91 |
+
setup path from $install_dir/$egg_path.
|
| 92 |
+
"""
|
| 93 |
+
path_to_setup = egg_base.replace(os.sep, '/').rstrip('/')
|
| 94 |
+
if path_to_setup != os.curdir:
|
| 95 |
+
path_to_setup = '../' * (path_to_setup.count('/') + 1)
|
| 96 |
+
resolved = _path.normpath(os.path.join(install_dir, egg_path, path_to_setup))
|
| 97 |
+
curdir = _path.normpath(os.curdir)
|
| 98 |
+
if resolved != curdir:
|
| 99 |
+
raise DistutilsOptionError(
|
| 100 |
+
"Can't get a consistent path to setup script from"
|
| 101 |
+
" installation directory",
|
| 102 |
+
resolved,
|
| 103 |
+
curdir,
|
| 104 |
+
)
|
| 105 |
+
return path_to_setup
|
| 106 |
+
|
| 107 |
+
def install_for_development(self) -> None:
|
| 108 |
+
self.run_command('egg_info')
|
| 109 |
+
|
| 110 |
+
# Build extensions in-place
|
| 111 |
+
self.reinitialize_command('build_ext', inplace=True)
|
| 112 |
+
self.run_command('build_ext')
|
| 113 |
+
|
| 114 |
+
if setuptools.bootstrap_install_from:
|
| 115 |
+
self.easy_install(setuptools.bootstrap_install_from)
|
| 116 |
+
setuptools.bootstrap_install_from = None
|
| 117 |
+
|
| 118 |
+
self.install_namespaces()
|
| 119 |
+
|
| 120 |
+
# create an .egg-link in the installation dir, pointing to our egg
|
| 121 |
+
log.info("Creating %s (link to %s)", self.egg_link, self.egg_base)
|
| 122 |
+
if not self.dry_run:
|
| 123 |
+
with open(self.egg_link, "w", encoding="utf-8") as f:
|
| 124 |
+
f.write(self.egg_path + "\n" + self.setup_path)
|
| 125 |
+
# postprocess the installed distro, fixing up .pth, installing scripts,
|
| 126 |
+
# and handling requirements
|
| 127 |
+
self.process_distribution(None, self.dist, not self.no_deps)
|
| 128 |
+
|
| 129 |
+
def uninstall_link(self) -> None:
|
| 130 |
+
if os.path.exists(self.egg_link):
|
| 131 |
+
log.info("Removing %s (link to %s)", self.egg_link, self.egg_base)
|
| 132 |
+
|
| 133 |
+
contents = [
|
| 134 |
+
line.rstrip()
|
| 135 |
+
for line in _read_utf8_with_fallback(self.egg_link).splitlines()
|
| 136 |
+
]
|
| 137 |
+
|
| 138 |
+
if contents not in ([self.egg_path], [self.egg_path, self.setup_path]):
|
| 139 |
+
log.warn("Link points to %s: uninstall aborted", contents)
|
| 140 |
+
return
|
| 141 |
+
if not self.dry_run:
|
| 142 |
+
os.unlink(self.egg_link)
|
| 143 |
+
if not self.dry_run:
|
| 144 |
+
self.update_pth(self.dist) # remove any .pth link to us
|
| 145 |
+
if self.distribution.scripts:
|
| 146 |
+
# XXX should also check for entry point scripts!
|
| 147 |
+
log.warn("Note: you must uninstall or replace scripts manually!")
|
| 148 |
+
|
| 149 |
+
def install_egg_scripts(self, dist):
|
| 150 |
+
if dist is not self.dist:
|
| 151 |
+
# Installing a dependency, so fall back to normal behavior
|
| 152 |
+
return easy_install.install_egg_scripts(self, dist)
|
| 153 |
+
|
| 154 |
+
# create wrapper scripts in the script dir, pointing to dist.scripts
|
| 155 |
+
|
| 156 |
+
# new-style...
|
| 157 |
+
self.install_wrapper_scripts(dist)
|
| 158 |
+
|
| 159 |
+
# ...and old-style
|
| 160 |
+
for script_name in self.distribution.scripts or []:
|
| 161 |
+
script_path = os.path.abspath(convert_path(script_name))
|
| 162 |
+
script_name = os.path.basename(script_path)
|
| 163 |
+
script_text = _read_utf8_with_fallback(script_path)
|
| 164 |
+
self.install_script(dist, script_name, script_text, script_path)
|
| 165 |
+
|
| 166 |
+
return None
|
| 167 |
+
|
| 168 |
+
def install_wrapper_scripts(self, dist):
|
| 169 |
+
dist = VersionlessRequirement(dist)
|
| 170 |
+
return easy_install.install_wrapper_scripts(self, dist)
|
| 171 |
+
|
| 172 |
+
|
| 173 |
+
class VersionlessRequirement:
|
| 174 |
+
"""
|
| 175 |
+
Adapt a pkg_resources.Distribution to simply return the project
|
| 176 |
+
name as the 'requirement' so that scripts will work across
|
| 177 |
+
multiple versions.
|
| 178 |
+
|
| 179 |
+
>>> from pkg_resources import Distribution
|
| 180 |
+
>>> dist = Distribution(project_name='foo', version='1.0')
|
| 181 |
+
>>> str(dist.as_requirement())
|
| 182 |
+
'foo==1.0'
|
| 183 |
+
>>> adapted_dist = VersionlessRequirement(dist)
|
| 184 |
+
>>> str(adapted_dist.as_requirement())
|
| 185 |
+
'foo'
|
| 186 |
+
"""
|
| 187 |
+
|
| 188 |
+
def __init__(self, dist) -> None:
|
| 189 |
+
self.__dist = dist
|
| 190 |
+
|
| 191 |
+
def __getattr__(self, name: str):
|
| 192 |
+
return getattr(self.__dist, name)
|
| 193 |
+
|
| 194 |
+
def as_requirement(self):
|
| 195 |
+
return self.project_name
|