X7ROOT File Manager
Current Path:
/opt/alt/python311/lib64/python3.11/distutils/command
opt
/
alt
/
python311
/
lib64
/
python3.11
/
distutils
/
command
/
ðŸ“
..
📄
__init__.py
(771 B)
ðŸ“
__pycache__
📄
bdist.py
(5.21 KB)
📄
bdist_dumb.py
(4.8 KB)
📄
bdist_rpm.py
(21.03 KB)
📄
build.py
(5.63 KB)
📄
build_clib.py
(7.83 KB)
📄
build_ext.py
(30.89 KB)
📄
build_py.py
(16.79 KB)
📄
build_scripts.py
(6.09 KB)
📄
check.py
(5.75 KB)
📄
clean.py
(2.71 KB)
📄
command_template
(633 B)
📄
config.py
(12.81 KB)
📄
install.py
(27.58 KB)
📄
install_data.py
(2.76 KB)
📄
install_egg_info.py
(2.54 KB)
📄
install_headers.py
(1.27 KB)
📄
install_lib.py
(8.2 KB)
📄
install_scripts.py
(1.97 KB)
📄
register.py
(11.44 KB)
📄
sdist.py
(18.56 KB)
📄
upload.py
(7.44 KB)
Editing: 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
Upload File
Create Folder