Hackfut Security File Manager
Current Path:
/opt/alt/python27/lib64/python2.7/site-packages/numpy/distutils
opt
/
alt
/
python27
/
lib64
/
python2.7
/
site-packages
/
numpy
/
distutils
/
📁
..
📄
__config__.py
(1.73 KB)
📄
__config__.pyc
(1.87 KB)
📄
__config__.pyo
(1.87 KB)
📄
__init__.py
(747 B)
📄
__init__.pyc
(736 B)
📄
__init__.pyo
(736 B)
📄
__version__.py
(151 B)
📄
__version__.pyc
(416 B)
📄
__version__.pyo
(416 B)
📄
ccompiler.py
(23.61 KB)
📄
ccompiler.pyc
(21.52 KB)
📄
ccompiler.pyo
(21.52 KB)
📁
command
📄
compat.py
(218 B)
📄
compat.pyc
(618 B)
📄
compat.pyo
(618 B)
📄
conv_template.py
(9.44 KB)
📄
conv_template.pyc
(9.64 KB)
📄
conv_template.pyo
(9.64 KB)
📄
core.py
(7.77 KB)
📄
core.pyc
(5.91 KB)
📄
core.pyo
(5.91 KB)
📄
cpuinfo.py
(22.41 KB)
📄
cpuinfo.pyc
(45.44 KB)
📄
cpuinfo.pyo
(45.44 KB)
📄
environment.py
(2.29 KB)
📄
environment.pyc
(3.57 KB)
📄
environment.pyo
(3.57 KB)
📄
exec_command.py
(19.96 KB)
📄
exec_command.pyc
(18.12 KB)
📄
exec_command.pyo
(16.73 KB)
📄
extension.py
(2.88 KB)
📄
extension.pyc
(2.67 KB)
📄
extension.pyo
(2.67 KB)
📁
fcompiler
📄
from_template.py
(7.62 KB)
📄
from_template.pyc
(8.48 KB)
📄
from_template.pyo
(8.48 KB)
📄
info.py
(157 B)
📄
info.pyc
(401 B)
📄
info.pyo
(401 B)
📄
intelccompiler.py
(3.99 KB)
📄
intelccompiler.pyc
(5.01 KB)
📄
intelccompiler.pyo
(5.01 KB)
📄
lib2def.py
(3.43 KB)
📄
lib2def.pyc
(3.99 KB)
📄
lib2def.pyo
(3.99 KB)
📄
line_endings.py
(2 KB)
📄
line_endings.pyc
(2.92 KB)
📄
line_endings.pyo
(2.92 KB)
📄
log.py
(2.68 KB)
📄
log.pyc
(3.12 KB)
📄
log.pyo
(3.12 KB)
📁
mingw
📄
mingw32ccompiler.py
(21.21 KB)
📄
mingw32ccompiler.pyc
(16.69 KB)
📄
mingw32ccompiler.pyo
(16.63 KB)
📄
misc_util.py
(79.76 KB)
📄
misc_util.pyc
(76.86 KB)
📄
misc_util.pyo
(76.29 KB)
📄
msvc9compiler.py
(2.16 KB)
📄
msvc9compiler.pyc
(2.67 KB)
📄
msvc9compiler.pyo
(2.67 KB)
📄
msvccompiler.py
(1.97 KB)
📄
msvccompiler.pyc
(2.42 KB)
📄
msvccompiler.pyo
(2.42 KB)
📄
npy_pkg_config.py
(12.93 KB)
📄
npy_pkg_config.pyc
(15.38 KB)
📄
npy_pkg_config.pyo
(15.38 KB)
📄
numpy_distribution.py
(700 B)
📄
numpy_distribution.pyc
(1.12 KB)
📄
numpy_distribution.pyo
(1.12 KB)
📄
pathccompiler.py
(779 B)
📄
pathccompiler.pyc
(1.24 KB)
📄
pathccompiler.pyo
(1.24 KB)
📄
setup.py
(589 B)
📄
setup.pyc
(974 B)
📄
setup.pyo
(974 B)
📄
site.cfg
(174 B)
📄
system_info.py
(82.43 KB)
📄
system_info.pyc
(78.9 KB)
📄
system_info.pyo
(78.78 KB)
📁
tests
📄
unixccompiler.py
(4.55 KB)
📄
unixccompiler.pyc
(3.78 KB)
📄
unixccompiler.pyo
(3.78 KB)
Editing: environment.py
from __future__ import division, absolute_import, print_function import os from distutils.dist import Distribution __metaclass__ = type class EnvironmentConfig(object): def __init__(self, distutils_section='ALL', **kw): self._distutils_section = distutils_section self._conf_keys = kw self._conf = None self._hook_handler = None def dump_variable(self, name): conf_desc = self._conf_keys[name] hook, envvar, confvar, convert = conf_desc if not convert: convert = lambda x : x print('%s.%s:' % (self._distutils_section, name)) v = self._hook_handler(name, hook) print(' hook : %s' % (convert(v),)) if envvar: v = os.environ.get(envvar, None) print(' environ: %s' % (convert(v),)) if confvar and self._conf: v = self._conf.get(confvar, (None, None))[1] print(' config : %s' % (convert(v),)) def dump_variables(self): for name in self._conf_keys: self.dump_variable(name) def __getattr__(self, name): try: conf_desc = self._conf_keys[name] except KeyError: raise AttributeError(name) return self._get_var(name, conf_desc) def get(self, name, default=None): try: conf_desc = self._conf_keys[name] except KeyError: return default var = self._get_var(name, conf_desc) if var is None: var = default return var def _get_var(self, name, conf_desc): hook, envvar, confvar, convert = conf_desc var = self._hook_handler(name, hook) if envvar is not None: var = os.environ.get(envvar, var) if confvar is not None and self._conf: var = self._conf.get(confvar, (None, var))[1] if convert is not None: var = convert(var) return var def clone(self, hook_handler): ec = self.__class__(distutils_section=self._distutils_section, **self._conf_keys) ec._hook_handler = hook_handler return ec def use_distribution(self, dist): if isinstance(dist, Distribution): self._conf = dist.get_option_dict(self._distutils_section) else: self._conf = dist
Upload File
Create Folder