mirror of
https://github.com/zebrajr/pytorch.git
synced 2025-12-07 12:21:27 +01:00
Fixes #113940. This vendors the relevant parts of [`packaging==23.2.0`]() to have access to `Version` and `InvalidVersion` without taking a runtime dependency on `setuptools` or `packaging`. I didn't find any vendoring policy so I put it under `torch._vendor.packaging`. While I have only vendored the files we need, I have not touched or trimmed the files otherwise. Pull Request resolved: https://github.com/pytorch/pytorch/pull/114108 Approved by: https://github.com/malfet, https://github.com/albanD |
||
|---|---|---|
| .. | ||
| packaging | ||
| __init__.py | ||
| README.md | ||
Vendored libraries
packaging
Source: https://github.com/pypa/packaging/
PyPI: https://pypi.org/project/packaging/
Vendored version: 23.2.0
Instructions to update:
- Copy the file
packaging/version.pyand all files that it is depending on - Check if the licensing has changed from the BSD / Apache dual licensing and update the license files accordingly