Current Path: > > usr > lib > python2.7 > site-packages > setuptools > > command
Operation : Linux premium131.web-hosting.com 4.18.0-553.44.1.lve.el8.x86_64 #1 SMP Thu Mar 13 14:29:12 UTC 2025 x86_64 Software : Apache Server IP : 162.0.232.56 | Your IP: 216.73.216.111 Domains : 1034 Domain(s) Permission : [ 0755 ]
Name | Type | Size | Last Modified | Actions |
---|---|---|---|---|
__init__.py | File | 594 bytes | April 10 2024 05:04:00. | |
__init__.pyc | File | 882 bytes | April 10 2024 05:04:00. | |
__init__.pyo | File | 882 bytes | April 10 2024 05:04:00. | |
alias.py | File | 2426 bytes | April 10 2024 05:04:00. | |
alias.pyc | File | 3098 bytes | April 10 2024 05:04:00. | |
alias.pyo | File | 3098 bytes | April 10 2024 05:04:00. | |
bdist_egg.py | File | 18185 bytes | April 10 2024 05:04:00. | |
bdist_egg.pyc | File | 18388 bytes | April 10 2024 05:04:00. | |
bdist_egg.pyo | File | 18388 bytes | April 10 2024 05:04:00. | |
bdist_rpm.py | File | 1508 bytes | April 10 2024 05:04:00. | |
bdist_rpm.pyc | File | 1914 bytes | April 10 2024 05:04:00. | |
bdist_rpm.pyo | File | 1914 bytes | April 10 2024 05:04:00. | |
bdist_wininst.py | File | 637 bytes | April 10 2024 05:04:00. | |
bdist_wininst.pyc | File | 1191 bytes | April 10 2024 05:04:00. | |
bdist_wininst.pyo | File | 1191 bytes | April 10 2024 05:04:00. | |
build_clib.py | File | 4484 bytes | April 10 2024 05:04:00. | |
build_clib.pyc | File | 2844 bytes | April 10 2024 05:04:00. | |
build_clib.pyo | File | 2844 bytes | April 10 2024 05:04:00. | |
build_ext.py | File | 13173 bytes | April 10 2024 05:04:00. | |
build_ext.pyc | File | 12571 bytes | April 10 2024 05:04:00. | |
build_ext.pyo | File | 12527 bytes | April 10 2024 05:04:00. | |
build_py.py | File | 9596 bytes | April 10 2024 05:04:00. | |
build_py.pyc | File | 10667 bytes | April 10 2024 05:04:00. | |
build_py.pyo | File | 10667 bytes | April 10 2024 05:04:00. | |
develop.py | File | 8046 bytes | April 10 2024 05:04:00. | |
develop.pyc | File | 7900 bytes | April 10 2024 05:04:00. | |
develop.pyo | File | 7900 bytes | April 10 2024 05:04:00. | |
dist_info.py | File | 960 bytes | April 10 2024 05:04:00. | |
dist_info.pyc | File | 1799 bytes | April 10 2024 05:04:00. | |
dist_info.pyo | File | 1799 bytes | April 10 2024 05:04:00. | |
easy_install.py | File | 87032 bytes | April 10 2024 05:04:00. | |
easy_install.pyc | File | 80382 bytes | April 10 2024 05:04:00. | |
easy_install.pyo | File | 80325 bytes | April 10 2024 05:04:00. | |
egg_info.py | File | 24800 bytes | April 10 2024 05:04:00. | |
egg_info.pyc | File | 25896 bytes | April 10 2024 05:04:00. | |
egg_info.pyo | File | 25896 bytes | April 10 2024 05:04:00. | |
install.py | File | 4683 bytes | April 10 2024 05:04:00. | |
install.pyc | File | 4953 bytes | April 10 2024 05:04:00. | |
install.pyo | File | 4953 bytes | April 10 2024 05:04:00. | |
install_egg_info.py | File | 2203 bytes | April 10 2024 05:04:00. | |
install_egg_info.pyc | File | 3185 bytes | April 10 2024 05:04:00. | |
install_egg_info.pyo | File | 3185 bytes | April 10 2024 05:04:00. | |
install_lib.py | File | 3840 bytes | April 10 2024 05:04:00. | |
install_lib.pyc | File | 4870 bytes | April 10 2024 05:04:00. | |
install_lib.pyo | File | 4824 bytes | April 10 2024 05:04:00. | |
install_scripts.py | File | 2439 bytes | April 10 2024 05:04:00. | |
install_scripts.pyc | File | 2891 bytes | April 10 2024 05:04:00. | |
install_scripts.pyo | File | 2891 bytes | April 10 2024 05:04:00. | |
launcher manifest.xml | File | 628 bytes | April 10 2024 05:04:00. | |
py36compat.py | File | 4986 bytes | April 10 2024 05:04:00. | |
py36compat.pyc | File | 5550 bytes | April 10 2024 05:04:00. | |
py36compat.pyo | File | 5550 bytes | April 10 2024 05:04:00. | |
register.py | File | 270 bytes | April 10 2024 05:04:00. | |
register.pyc | File | 710 bytes | April 10 2024 05:04:00. | |
register.pyo | File | 710 bytes | April 10 2024 05:04:00. | |
rotate.py | File | 2164 bytes | April 10 2024 05:04:00. | |
rotate.pyc | File | 3036 bytes | April 10 2024 05:04:00. | |
rotate.pyo | File | 3036 bytes | April 10 2024 05:04:00. | |
saveopts.py | File | 658 bytes | April 10 2024 05:04:00. | |
saveopts.pyc | File | 1129 bytes | April 10 2024 05:04:00. | |
saveopts.pyo | File | 1129 bytes | April 10 2024 05:04:00. | |
sdist.py | File | 6711 bytes | April 10 2024 05:04:00. | |
sdist.pyc | File | 7823 bytes | April 10 2024 05:04:00. | |
sdist.pyo | File | 7823 bytes | April 10 2024 05:04:00. | |
setopt.py | File | 5085 bytes | April 10 2024 05:04:00. | |
setopt.pyc | File | 6050 bytes | April 10 2024 05:04:00. | |
setopt.pyo | File | 6050 bytes | April 10 2024 05:04:00. | |
test.py | File | 9214 bytes | April 10 2024 05:04:00. | |
test.pyc | File | 10468 bytes | April 10 2024 05:04:00. | |
test.pyo | File | 10468 bytes | April 10 2024 05:04:00. | |
upload.py | File | 1172 bytes | April 10 2024 05:04:00. | |
upload.pyc | File | 1636 bytes | April 10 2024 05:04:00. | |
upload.pyo | File | 1636 bytes | April 10 2024 05:04:00. | |
upload_docs.py | File | 7311 bytes | April 10 2024 05:04:00. | |
upload_docs.pyc | File | 7842 bytes | April 10 2024 05:04:00. | |
upload_docs.pyo | File | 7813 bytes | April 10 2024 05:04:00. |
import os import imp from itertools import product, starmap import distutils.command.install_lib as orig class install_lib(orig.install_lib): """Don't add compiled flags to filenames of non-Python files""" def run(self): self.build() outfiles = self.install() if outfiles is not None: # always compile, in case we have any extension stubs to deal with self.byte_compile(outfiles) def get_exclusions(self): """ Return a collections.Sized collections.Container of paths to be excluded for single_version_externally_managed installations. """ all_packages = ( pkg for ns_pkg in self._get_SVEM_NSPs() for pkg in self._all_packages(ns_pkg) ) excl_specs = product(all_packages, self._gen_exclusion_paths()) return set(starmap(self._exclude_pkg_path, excl_specs)) def _exclude_pkg_path(self, pkg, exclusion_path): """ Given a package name and exclusion path within that package, compute the full exclusion path. """ parts = pkg.split('.') + [exclusion_path] return os.path.join(self.install_dir, *parts) @staticmethod def _all_packages(pkg_name): """ >>> list(install_lib._all_packages('foo.bar.baz')) ['foo.bar.baz', 'foo.bar', 'foo'] """ while pkg_name: yield pkg_name pkg_name, sep, child = pkg_name.rpartition('.') def _get_SVEM_NSPs(self): """ Get namespace packages (list) but only for single_version_externally_managed installations and empty otherwise. """ # TODO: is it necessary to short-circuit here? i.e. what's the cost # if get_finalized_command is called even when namespace_packages is # False? if not self.distribution.namespace_packages: return [] install_cmd = self.get_finalized_command('install') svem = install_cmd.single_version_externally_managed return self.distribution.namespace_packages if svem else [] @staticmethod def _gen_exclusion_paths(): """ Generate file paths to be excluded for namespace packages (bytecode cache files). """ # always exclude the package module itself yield '__init__.py' yield '__init__.pyc' yield '__init__.pyo' if not hasattr(imp, 'get_tag'): return base = os.path.join('__pycache__', '__init__.' + imp.get_tag()) yield base + '.pyc' yield base + '.pyo' yield base + '.opt-1.pyc' yield base + '.opt-2.pyc' def copy_tree( self, infile, outfile, preserve_mode=1, preserve_times=1, preserve_symlinks=0, level=1 ): assert preserve_mode and preserve_times and not preserve_symlinks exclude = self.get_exclusions() if not exclude: return orig.install_lib.copy_tree(self, infile, outfile) # Exclude namespace package __init__.py* files from the output from setuptools.archive_util import unpack_directory from distutils import log outfiles = [] def pf(src, dst): if dst in exclude: log.warn("Skipping installation of %s (namespace package)", dst) return False log.info("copying %s -> %s", src, os.path.dirname(dst)) outfiles.append(dst) return dst unpack_directory(infile, outfile, pf) return outfiles def get_outputs(self): outputs = orig.install_lib.get_outputs(self) exclude = self.get_exclusions() if exclude: return [f for f in outputs if f not in exclude] return outputs
SILENT KILLER Tool