golden hour
/usr/lib64/python2.7/distutils/command
⬆️ Go Up
Upload
File/Folder
Size
Actions
__init__.py
822 B
Del
OK
__init__.pyc
665 B
Del
OK
__init__.pyo
665 B
Del
OK
bdist.py
5.46 KB
Del
OK
bdist.pyc
5.1 KB
Del
OK
bdist.pyo
5.1 KB
Del
OK
bdist_dumb.py
5.07 KB
Del
OK
bdist_dumb.pyc
4.92 KB
Del
OK
bdist_dumb.pyo
4.92 KB
Del
OK
bdist_msi.py
34.37 KB
Del
OK
bdist_msi.pyc
23.45 KB
Del
OK
bdist_msi.pyo
23.35 KB
Del
OK
bdist_rpm.py
20.55 KB
Del
OK
bdist_rpm.pyc
17.32 KB
Del
OK
bdist_rpm.pyo
17.24 KB
Del
OK
bdist_wininst.py
14.65 KB
Del
OK
bdist_wininst.pyc
10.55 KB
Del
OK
bdist_wininst.pyo
10.47 KB
Del
OK
build.py
5.31 KB
Del
OK
build.pyc
5.03 KB
Del
OK
build.pyo
5.03 KB
Del
OK
build_clib.py
7.94 KB
Del
OK
build_clib.pyc
6.28 KB
Del
OK
build_clib.pyo
6.28 KB
Del
OK
build_ext.py
31.75 KB
Del
OK
build_ext.py.debug-build
31.53 KB
Del
OK
build_ext.pyc
19.09 KB
Del
OK
build_ext.pyo
19.09 KB
Del
OK
build_py.py
15.92 KB
Del
OK
build_py.pyc
11.24 KB
Del
OK
build_py.pyo
11.17 KB
Del
OK
build_scripts.py
4.49 KB
Del
OK
build_scripts.pyc
4.43 KB
Del
OK
build_scripts.pyo
4.43 KB
Del
OK
check.py
5.43 KB
Del
OK
check.pyc
6.08 KB
Del
OK
check.pyo
6.08 KB
Del
OK
clean.py
2.75 KB
Del
OK
clean.pyc
3.1 KB
Del
OK
clean.pyo
3.1 KB
Del
OK
command_template
719 B
Del
OK
config.py
12.82 KB
Del
OK
config.pyc
12.39 KB
Del
OK
config.pyo
12.39 KB
Del
OK
install.py
25.65 KB
Del
OK
install.pyc
16.5 KB
Del
OK
install.pyo
16.5 KB
Del
OK
install_data.py
2.78 KB
Del
OK
install_data.pyc
3.09 KB
Del
OK
install_data.pyo
3.09 KB
Del
OK
install_egg_info.py
2.53 KB
Del
OK
install_egg_info.pyc
3.68 KB
Del
OK
install_egg_info.pyo
3.68 KB
Del
OK
install_headers.py
1.31 KB
Del
OK
install_headers.pyc
2.24 KB
Del
OK
install_headers.pyo
2.24 KB
Del
OK
install_lib.py
8.14 KB
Del
OK
install_lib.pyc
6.63 KB
Del
OK
install_lib.pyo
6.63 KB
Del
OK
install_scripts.py
2.02 KB
Del
OK
install_scripts.pyc
2.93 KB
Del
OK
install_scripts.pyo
2.93 KB
Del
OK
register.py
11.56 KB
Del
OK
register.pyc
9.98 KB
Del
OK
register.pyo
9.98 KB
Del
OK
sdist.py
18.12 KB
Del
OK
sdist.pyc
16.31 KB
Del
OK
sdist.pyo
16.31 KB
Del
OK
upload.py
6.84 KB
Del
OK
upload.pyc
6.13 KB
Del
OK
upload.pyo
6.13 KB
Del
OK
wininst-6.0.exe
60 KB
Del
OK
wininst-7.1.exe
64 KB
Del
OK
wininst-8.0.exe
60 KB
Del
OK
wininst-9.0-amd64.exe
218.5 KB
Del
OK
wininst-9.0.exe
191.5 KB
Del
OK
Edit: install_data.py
"""distutils.command.install_data Implements the Distutils 'install_data' command, for installing platform-independent data files.""" # contributed by Bastian Kleineidam __revision__ = "$Id$" import os from distutils.core import Command from distutils.util import change_root, convert_path class install_data(Command): description = "install data files" user_options = [ ('install-dir=', 'd', "base directory for installing data files " "(default: installation base dir)"), ('root=', None, "install everything relative to this alternate root directory"), ('force', 'f', "force installation (overwrite existing files)"), ] boolean_options = ['force'] def initialize_options(self): self.install_dir = None self.outfiles = [] self.root = None self.force = 0 self.data_files = self.distribution.data_files self.warn_dir = 1 def finalize_options(self): self.set_undefined_options('install', ('install_data', 'install_dir'), ('root', 'root'), ('force', 'force'), ) def run(self): self.mkpath(self.install_dir) for f in self.data_files: if isinstance(f, str): # it's a simple file, so copy it f = convert_path(f) if self.warn_dir: self.warn("setup script did not provide a directory for " "'%s' -- installing right in '%s'" % (f, self.install_dir)) (out, _) = self.copy_file(f, self.install_dir) self.outfiles.append(out) else: # it's a tuple with path to install to and a list of files dir = convert_path(f[0]) if not os.path.isabs(dir): dir = os.path.join(self.install_dir, dir) elif self.root: dir = change_root(self.root, dir) self.mkpath(dir) if f[1] == []: # If there are no files listed, the user must be # trying to create an empty directory, so add the # directory to the list of output files. self.outfiles.append(dir) else: # Copy files, adding them to the list of output files. for data in f[1]: data = convert_path(data) (out, _) = self.copy_file(data, dir) self.outfiles.append(out) def get_inputs(self): return self.data_files or [] def get_outputs(self): return self.outfiles
Save