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.py
Close
import logging import os from pip._internal.utils.subprocess import runner_with_spinner_message from pip._internal.utils.typing import MYPY_CHECK_RUNNING if MYPY_CHECK_RUNNING: from typing import List, Optional from pip._vendor.pep517.wrappers import Pep517HookCaller logger = logging.getLogger(__name__) def build_wheel_pep517( name, # type: str backend, # type: Pep517HookCaller metadata_directory, # type: str build_options, # type: List[str] tempd, # type: str ): # type: (...) -> Optional[str] """Build one InstallRequirement using the PEP 517 build process. Returns path to wheel if successfully built. Otherwise, returns None. """ assert metadata_directory is not None if build_options: # PEP 517 does not support --build-options logger.error('Cannot build wheel for %s using PEP 517 when ' '--build-option is present', name) return None try: logger.debug('Destination directory: %s', tempd) runner = runner_with_spinner_message( 'Building wheel for {} (PEP 517)'.format(name) ) with backend.subprocess_runner(runner): wheel_name = backend.build_wheel( tempd, metadata_directory=metadata_directory, ) except Exception: logger.error('Failed building wheel for %s', name) return None return os.path.join(tempd, wheel_name)