Spaces:
Paused
Paused
Download myenv/lib/python3.12/site-packages/build/_compat/importlib.py from Dhenenjay/Term-4-Project: direct link, hf CLI and curl.
- Browser
- Download file 467 Bytes
-
https://huggingface.co/spaces/Dhenenjay/Term-4-Project/resolve/main/myenv/lib/python3.12/site-packages/build/_compat/importlib.py
- Command line
-
hf download hf://spaces/Dhenenjay/Term-4-Project/myenv/lib/python3.12/site-packages/build/_compat/importlib.py
-
curl -L -o importlib.py https://huggingface.co/spaces/Dhenenjay/Term-4-Project/resolve/main/myenv/lib/python3.12/site-packages/build/_compat/importlib.py
467 Bytes
| from __future__ import annotations | |
| import sys | |
| import typing | |
| if typing.TYPE_CHECKING: | |
| import importlib_metadata as metadata | |
| else: | |
| if sys.version_info >= (3, 10, 2): | |
| from importlib import metadata | |
| else: | |
| try: | |
| import importlib_metadata as metadata | |
| except ModuleNotFoundError: | |
| # helps bootstrapping when dependencies aren't installed | |
| from importlib import metadata | |
| __all__ = [ | |
| 'metadata', | |
| ] | |