OXIESEC PANEL
- Current Dir:
/
/
opt
/
alt
/
python37
/
lib
/
python3.7
/
site-packages
/
pip
/
_internal
/
operations
/
build
Server IP: 2a02:4780:11:1084:0:327f:3464:10
Upload:
Create Dir:
Name
Size
Modified
Perms
📁
..
-
02/16/2024 09:01:52 PM
rwxr-xr-x
📄
__init__.py
0 bytes
11/13/2023 09:31:06 PM
rw-r--r--
📁
__pycache__
-
02/16/2024 09:01:52 PM
rwxr-xr-x
📄
build_tracker.py
4.04 KB
03/16/2023 12:55:40 PM
rw-r--r--
📄
metadata.py
1.22 KB
11/13/2023 09:31:06 PM
rw-r--r--
📄
metadata_editable.py
1.44 KB
03/16/2023 12:55:40 PM
rw-r--r--
📄
metadata_legacy.py
1.96 KB
11/13/2023 09:31:06 PM
rw-r--r--
📄
wheel.py
1.43 KB
11/13/2023 09:31:06 PM
rw-r--r--
📄
wheel_editable.py
1.38 KB
03/16/2023 12:55:40 PM
rw-r--r--
📄
wheel_legacy.py
3.28 KB
11/13/2023 09:31:06 PM
rw-r--r--
Editing: wheel_editable.py
Close
import logging import os from typing import Optional from pip._vendor.pyproject_hooks import BuildBackendHookCaller, HookMissing from pip._internal.utils.subprocess import runner_with_spinner_message logger = logging.getLogger(__name__) def build_wheel_editable( name: str, backend: BuildBackendHookCaller, metadata_directory: str, tempd: str, ) -> Optional[str]: """Build one InstallRequirement using the PEP 660 build process. Returns path to wheel if successfully built. Otherwise, returns None. """ assert metadata_directory is not None try: logger.debug("Destination directory: %s", tempd) runner = runner_with_spinner_message( f"Building editable for {name} (pyproject.toml)" ) with backend.subprocess_runner(runner): try: wheel_name = backend.build_editable( tempd, metadata_directory=metadata_directory, ) except HookMissing as e: logger.error( "Cannot build editable %s because the build " "backend does not have the %s hook", name, e, ) return None except Exception: logger.error("Failed building editable for %s", name) return None return os.path.join(tempd, wheel_name)