OXIESEC PANEL
- Current Dir:
/
/
usr
/
local
/
lib
/
python3.6
/
dist-packages
/
skbuild
/
command
Server IP: 139.59.38.164
Upload:
Create Dir:
Name
Size
Modified
Perms
📁
..
-
10/28/2024 05:59:08 AM
rwxr-xr-x
📄
__init__.py
1.02 KB
10/28/2024 05:59:06 AM
rw-r--r--
📁
__pycache__
-
10/28/2024 05:59:08 AM
rwxr-xr-x
📄
bdist.py
312 bytes
10/28/2024 05:59:06 AM
rw-r--r--
📄
bdist_wheel.py
1.62 KB
10/28/2024 05:59:06 AM
rw-r--r--
📄
build.py
337 bytes
10/28/2024 05:59:06 AM
rw-r--r--
📄
build_ext.py
1.81 KB
10/28/2024 05:59:06 AM
rw-r--r--
📄
build_py.py
3.96 KB
10/28/2024 05:59:06 AM
rw-r--r--
📄
clean.py
983 bytes
10/28/2024 05:59:06 AM
rw-r--r--
📄
egg_info.py
1.95 KB
10/28/2024 05:59:06 AM
rw-r--r--
📄
generate_source_manifest.py
3.32 KB
10/28/2024 05:59:06 AM
rw-r--r--
📄
install.py
963 bytes
10/28/2024 05:59:06 AM
rw-r--r--
📄
install_lib.py
775 bytes
10/28/2024 05:59:06 AM
rw-r--r--
📄
install_scripts.py
753 bytes
10/28/2024 05:59:06 AM
rw-r--r--
📄
sdist.py
1.49 KB
10/28/2024 05:59:06 AM
rw-r--r--
📄
test.py
456 bytes
10/28/2024 05:59:06 AM
rw-r--r--
Editing: build_ext.py
Close
"""This module defines custom implementation of ``build_ext`` setuptools command.""" import os from distutils.file_util import copy_file from setuptools.command.build_ext import build_ext as _build_ext from ..constants import CMAKE_INSTALL_DIR from . import set_build_base_mixin class build_ext(set_build_base_mixin, _build_ext): """Custom implementation of ``build_ext`` setuptools command.""" def copy_extensions_to_source(self) -> None: """This function is only-called when doing inplace build. It is customized to ensure the extensions compiled using distutils are copied back to the source tree instead of the :func:`skbuild.constants.CMAKE_INSTALL_DIR()`. """ build_py = self.get_finalized_command("build_py") for ext in self.extensions: fullname: str = self.get_ext_fullname(ext.name) # type: ignore[no-untyped-call] filename: str = self.get_ext_filename(fullname) # type: ignore[no-untyped-call] modpath = fullname.split(".") package = ".".join(modpath[:-1]) package_dir = build_py.get_package_dir(package) # type: ignore[attr-defined] # skbuild: strip install dir for inplace build package_dir = package_dir[len(CMAKE_INSTALL_DIR()) + 1 :] dest_filename = os.path.join(package_dir, os.path.basename(filename)) src_filename = os.path.join(self.build_lib, filename) # Always copy, even if source is older than destination, to ensure # that the right extensions for the current Python/platform are # used. copy_file(src_filename, dest_filename, verbose=self.verbose, dry_run=self.dry_run) # type: ignore[attr-defined] if ext._needs_stub: self.write_stub(package_dir or os.curdir, ext, True)