Psyduck - 可達鴨 之 鴨力山大2


Server : LiteSpeed
System : Linux premium217.web-hosting.com 4.18.0-553.54.1.lve.el8.x86_64 #1 SMP Wed Jun 4 13:01:13 UTC 2025 x86_64
User : alloknri ( 880)
PHP Version : 8.1.34
Disable Function : NONE
Directory :  /opt/alt/python310/lib64/python3.10/distutils/command/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : //opt/alt/python310/lib64/python3.10/distutils/command/install_headers.py
"""distutils.command.install_headers

Implements the Distutils 'install_headers' command, to install C/C++ header
files to the Python include directory."""

from distutils.core import Command


# XXX force is never used
class install_headers(Command):

    description = "install C/C++ header files"

    user_options = [('install-dir=', 'd',
                     "directory to install header files to"),
                    ('force', 'f',
                     "force installation (overwrite existing files)"),
                   ]

    boolean_options = ['force']

    def initialize_options(self):
        self.install_dir = None
        self.force = 0
        self.outfiles = []

    def finalize_options(self):
        self.set_undefined_options('install',
                                   ('install_headers', 'install_dir'),
                                   ('force', 'force'))


    def run(self):
        headers = self.distribution.headers
        if not headers:
            return

        self.mkpath(self.install_dir)
        for header in headers:
            (out, _) = self.copy_file(header, self.install_dir)
            self.outfiles.append(out)

    def get_inputs(self):
        return self.distribution.headers or []

    def get_outputs(self):
        return self.outfiles
Name
Size
Permissions
Options
__pycache__
--
drwxr-xr-x
__init__.py
0.753 KB
-rw-r--r--
bdist.py
5.306 KB
-rw-r--r--
bdist_dumb.py
4.798 KB
-rw-r--r--
bdist_msi.py
34.687 KB
-rw-r--r--
bdist_rpm.py
21.032 KB
-rw-r--r--
build.py
5.632 KB
-rw-r--r--
build_clib.py
7.834 KB
-rw-r--r--
build_ext.py
30.894 KB
-rw-r--r--
build_py.py
16.787 KB
-rw-r--r--
build_scripts.py
6.086 KB
-rw-r--r--
check.py
5.504 KB
-rw-r--r--
clean.py
2.711 KB
-rw-r--r--
command_template
0.618 KB
-rw-r--r--
config.py
12.81 KB
-rw-r--r--
install.py
27.58 KB
-rw-r--r--
install_data.py
2.756 KB
-rw-r--r--
install_egg_info.py
2.542 KB
-rw-r--r--
install_headers.py
1.268 KB
-rw-r--r--
install_lib.py
8.2 KB
-rw-r--r--
install_scripts.py
1.97 KB
-rw-r--r--
register.py
11.438 KB
-rw-r--r--
sdist.py
18.56 KB
-rw-r--r--
upload.py
7.442 KB
-rw-r--r--