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: extension.py
"""distutils.extension Provides the Extension class, used to describe C/C++ extension modules in setup scripts. Overridden to support f2py. """ from __future__ import division, absolute_import, print_function import sys import re from distutils.extension import Extension as old_Extension if sys.version_info[0] >= 3: basestring = str cxx_ext_re = re.compile(r'.*[.](cpp|cxx|cc)\Z', re.I).match fortran_pyf_ext_re = re.compile(r'.*[.](f90|f95|f77|for|ftn|f|pyf)\Z', re.I).match class Extension(old_Extension): def __init__ ( self, name, sources, include_dirs=None, define_macros=None, undef_macros=None, library_dirs=None, libraries=None, runtime_library_dirs=None, extra_objects=None, extra_compile_args=None, extra_link_args=None, export_symbols=None, swig_opts=None, depends=None, language=None, f2py_options=None, module_dirs=None, extra_f77_compile_args=None, extra_f90_compile_args=None,): old_Extension.__init__( self, name, [], include_dirs=include_dirs, define_macros=define_macros, undef_macros=undef_macros, library_dirs=library_dirs, libraries=libraries, runtime_library_dirs=runtime_library_dirs, extra_objects=extra_objects, extra_compile_args=extra_compile_args, extra_link_args=extra_link_args, export_symbols=export_symbols) # Avoid assert statements checking that sources contains strings: self.sources = sources # Python 2.4 distutils new features self.swig_opts = swig_opts or [] # swig_opts is assumed to be a list. Here we handle the case where it # is specified as a string instead. if isinstance(self.swig_opts, basestring): import warnings msg = "swig_opts is specified as a string instead of a list" warnings.warn(msg, SyntaxWarning) self.swig_opts = self.swig_opts.split() # Python 2.3 distutils new features self.depends = depends or [] self.language = language # numpy_distutils features self.f2py_options = f2py_options or [] self.module_dirs = module_dirs or [] self.extra_f77_compile_args = extra_f77_compile_args or [] self.extra_f90_compile_args = extra_f90_compile_args or [] return def has_cxx_sources(self): for source in self.sources: if cxx_ext_re(str(source)): return True return False def has_f2py_sources(self): for source in self.sources: if fortran_pyf_ext_re(source): return True return False # class Extension
Upload File
Create Folder