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: bdist_wheel.py
Close
"""This module defines custom implementation of ``bdist_wheel`` setuptools command.""" from wheel.bdist_wheel import bdist_wheel as _bdist_wheel from wheel.wheelfile import WheelFile from .. import __version__ as skbuild_version from ..utils import distribution_hide_listing from . import set_build_base_mixin class bdist_wheel(set_build_base_mixin, _bdist_wheel): # type: ignore[misc] """Custom implementation of ``bdist_wheel`` setuptools command.""" def run(self, *args: object, **kwargs: object) -> None: """Handle --hide-listing option.""" old_write_files = WheelFile.write_files def update_write_files(wheelfile_self: "bdist_wheel", base_dir: str) -> None: with distribution_hide_listing(self.distribution) as hide_listing: if hide_listing: zip_filename = wheelfile_self.filename print(f"creating {zip_filename!r} and adding {base_dir!r} to it", flush=True) old_write_files(wheelfile_self, base_dir) WheelFile.distribution = self.distribution WheelFile.write_files = update_write_files try: super().run(*args, **kwargs) finally: WheelFile.write_files = old_write_files del WheelFile.distribution def write_wheelfile(self, wheelfile_base: str, _: None = None) -> None: """Write ``skbuild <version>`` as a wheel generator. See `PEP-0427 <https://www.python.org/dev/peps/pep-0427/#file-contents>`_ for more details. """ generator = f"skbuild {skbuild_version}" super().write_wheelfile(wheelfile_base, generator)