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: unixccompiler.py
""" unixccompiler - can handle very long argument lists for ar. """ from __future__ import division, absolute_import, print_function import os from distutils.errors import DistutilsExecError, CompileError from distutils.unixccompiler import * from numpy.distutils.ccompiler import replace_method from numpy.distutils.compat import get_exception if sys.version_info[0] < 3: from . import log else: from numpy.distutils import log # Note that UnixCCompiler._compile appeared in Python 2.3 def UnixCCompiler__compile(self, obj, src, ext, cc_args, extra_postargs, pp_opts): """Compile a single source files with a Unix-style compiler.""" # HP ad-hoc fix, see ticket 1383 ccomp = self.compiler_so if ccomp[0] == 'aCC': # remove flags that will trigger ANSI-C mode for aCC if '-Ae' in ccomp: ccomp.remove('-Ae') if '-Aa' in ccomp: ccomp.remove('-Aa') # add flags for (almost) sane C++ handling ccomp += ['-AA'] self.compiler_so = ccomp # ensure OPT environment variable is read if 'OPT' in os.environ: from distutils.sysconfig import get_config_vars opt = " ".join(os.environ['OPT'].split()) gcv_opt = " ".join(get_config_vars('OPT')[0].split()) ccomp_s = " ".join(self.compiler_so) if opt not in ccomp_s: ccomp_s = ccomp_s.replace(gcv_opt, opt) self.compiler_so = ccomp_s.split() llink_s = " ".join(self.linker_so) if opt not in llink_s: self.linker_so = llink_s.split() + opt.split() display = '%s: %s' % (os.path.basename(self.compiler_so[0]), src) try: self.spawn(self.compiler_so + cc_args + [src, '-o', obj] + extra_postargs, display = display) except DistutilsExecError: msg = str(get_exception()) raise CompileError(msg) replace_method(UnixCCompiler, '_compile', UnixCCompiler__compile) def UnixCCompiler_create_static_lib(self, objects, output_libname, output_dir=None, debug=0, target_lang=None): """ Build a static library in a separate sub-process. Parameters ---------- objects : list or tuple of str List of paths to object files used to build the static library. output_libname : str The library name as an absolute or relative (if `output_dir` is used) path. output_dir : str, optional The path to the output directory. Default is None, in which case the ``output_dir`` attribute of the UnixCCompiler instance. debug : bool, optional This parameter is not used. target_lang : str, optional This parameter is not used. Returns ------- None """ objects, output_dir = self._fix_object_args(objects, output_dir) output_filename = \ self.library_filename(output_libname, output_dir=output_dir) if self._need_link(objects, output_filename): try: # previous .a may be screwed up; best to remove it first # and recreate. # Also, ar on OS X doesn't handle updating universal archives os.unlink(output_filename) except (IOError, OSError): pass self.mkpath(os.path.dirname(output_filename)) tmp_objects = objects + self.objects while tmp_objects: objects = tmp_objects[:50] tmp_objects = tmp_objects[50:] display = '%s: adding %d object files to %s' % ( os.path.basename(self.archiver[0]), len(objects), output_filename) self.spawn(self.archiver + [output_filename] + objects, display = display) # Not many Unices required ranlib anymore -- SunOS 4.x is, I # think the only major Unix that does. Maybe we need some # platform intelligence here to skip ranlib if it's not # needed -- or maybe Python's configure script took care of # it for us, hence the check for leading colon. if self.ranlib: display = '%s:@ %s' % (os.path.basename(self.ranlib[0]), output_filename) try: self.spawn(self.ranlib + [output_filename], display = display) except DistutilsExecError: msg = str(get_exception()) raise LibError(msg) else: log.debug("skipping %s (up-to-date)", output_filename) return replace_method(UnixCCompiler, 'create_static_lib', UnixCCompiler_create_static_lib)
Upload File
Create Folder