OXIESEC PANEL
- Current Dir:
/
/
usr
/
local
/
lib
/
python3.6
/
dist-packages
/
numpy
/
distutils
Server IP: 139.59.38.164
Upload:
Create Dir:
Name
Size
Modified
Perms
📁
..
-
10/28/2024 05:59:26 AM
rwxr-xr-x
📄
__config__.py
2.73 KB
10/28/2024 05:59:24 AM
rw-r--r--
📄
__init__.py
1.52 KB
10/28/2024 05:59:24 AM
rw-r--r--
📁
__pycache__
-
10/28/2024 05:59:26 AM
rwxr-xr-x
📄
_shell_utils.py
2.55 KB
10/28/2024 05:59:24 AM
rw-r--r--
📄
ccompiler.py
26.72 KB
10/28/2024 05:59:24 AM
rw-r--r--
📁
command
-
10/28/2024 05:59:26 AM
rwxr-xr-x
📄
conv_template.py
9.33 KB
10/28/2024 05:59:24 AM
rw-r--r--
📄
core.py
7.97 KB
10/28/2024 05:59:24 AM
rw-r--r--
📄
cpuinfo.py
22.13 KB
10/28/2024 05:59:24 AM
rw-r--r--
📄
exec_command.py
10.11 KB
10/28/2024 05:59:24 AM
rw-r--r--
📄
extension.py
3.28 KB
10/28/2024 05:59:24 AM
rw-r--r--
📁
fcompiler
-
10/28/2024 05:59:26 AM
rwxr-xr-x
📄
from_template.py
7.78 KB
10/28/2024 05:59:24 AM
rw-r--r--
📄
intelccompiler.py
4.13 KB
10/28/2024 05:59:24 AM
rw-r--r--
📄
lib2def.py
3.56 KB
10/28/2024 05:59:24 AM
rw-r--r--
📄
line_endings.py
1.98 KB
10/28/2024 05:59:24 AM
rw-r--r--
📄
log.py
2.5 KB
10/28/2024 05:59:24 AM
rw-r--r--
📁
mingw
-
10/28/2024 05:59:26 AM
rwxr-xr-x
📄
mingw32ccompiler.py
24.64 KB
10/28/2024 05:59:24 AM
rw-r--r--
📄
misc_util.py
83.42 KB
10/28/2024 05:59:24 AM
rw-r--r--
📄
msvc9compiler.py
2.14 KB
10/28/2024 05:59:24 AM
rw-r--r--
📄
msvccompiler.py
1.88 KB
10/28/2024 05:59:24 AM
rw-r--r--
📄
npy_pkg_config.py
12.67 KB
10/28/2024 05:59:24 AM
rw-r--r--
📄
numpy_distribution.py
634 bytes
10/28/2024 05:59:24 AM
rw-r--r--
📄
pathccompiler.py
713 bytes
10/28/2024 05:59:24 AM
rw-r--r--
📄
setup.py
565 bytes
10/28/2024 05:59:24 AM
rw-r--r--
📄
system_info.py
102.87 KB
10/28/2024 05:59:24 AM
rw-r--r--
📁
tests
-
10/28/2024 05:59:26 AM
rwxr-xr-x
📄
unixccompiler.py
4.89 KB
10/28/2024 05:59:24 AM
rw-r--r--
Editing: intelccompiler.py
Close
import platform from distutils.unixccompiler import UnixCCompiler from numpy.distutils.exec_command import find_executable from numpy.distutils.ccompiler import simple_version_match if platform.system() == 'Windows': from numpy.distutils.msvc9compiler import MSVCCompiler class IntelCCompiler(UnixCCompiler): """A modified Intel compiler compatible with a GCC-built Python.""" compiler_type = 'intel' cc_exe = 'icc' cc_args = 'fPIC' def __init__(self, verbose=0, dry_run=0, force=0): UnixCCompiler.__init__(self, verbose, dry_run, force) v = self.get_version() mpopt = 'openmp' if v and v < '15' else 'qopenmp' self.cc_exe = ('icc -fPIC -fp-model strict -O3 ' '-fomit-frame-pointer -{}').format(mpopt) compiler = self.cc_exe if platform.system() == 'Darwin': shared_flag = '-Wl,-undefined,dynamic_lookup' else: shared_flag = '-shared' self.set_executables(compiler=compiler, compiler_so=compiler, compiler_cxx=compiler, archiver='xiar' + ' cru', linker_exe=compiler + ' -shared-intel', linker_so=compiler + ' ' + shared_flag + ' -shared-intel') class IntelItaniumCCompiler(IntelCCompiler): compiler_type = 'intele' # On Itanium, the Intel Compiler used to be called ecc, let's search for # it (now it's also icc, so ecc is last in the search). for cc_exe in map(find_executable, ['icc', 'ecc']): if cc_exe: break class IntelEM64TCCompiler(UnixCCompiler): """ A modified Intel x86_64 compiler compatible with a 64bit GCC-built Python. """ compiler_type = 'intelem' cc_exe = 'icc -m64' cc_args = '-fPIC' def __init__(self, verbose=0, dry_run=0, force=0): UnixCCompiler.__init__(self, verbose, dry_run, force) v = self.get_version() mpopt = 'openmp' if v and v < '15' else 'qopenmp' self.cc_exe = ('icc -m64 -fPIC -fp-model strict -O3 ' '-fomit-frame-pointer -{}').format(mpopt) compiler = self.cc_exe if platform.system() == 'Darwin': shared_flag = '-Wl,-undefined,dynamic_lookup' else: shared_flag = '-shared' self.set_executables(compiler=compiler, compiler_so=compiler, compiler_cxx=compiler, archiver='xiar' + ' cru', linker_exe=compiler + ' -shared-intel', linker_so=compiler + ' ' + shared_flag + ' -shared-intel') if platform.system() == 'Windows': class IntelCCompilerW(MSVCCompiler): """ A modified Intel compiler compatible with an MSVC-built Python. """ compiler_type = 'intelw' compiler_cxx = 'icl' def __init__(self, verbose=0, dry_run=0, force=0): MSVCCompiler.__init__(self, verbose, dry_run, force) version_match = simple_version_match(start=r'Intel\(R\).*?32,') self.__version = version_match def initialize(self, plat_name=None): MSVCCompiler.initialize(self, plat_name) self.cc = self.find_exe('icl.exe') self.lib = self.find_exe('xilib') self.linker = self.find_exe('xilink') self.compile_options = ['/nologo', '/O3', '/MD', '/W3', '/Qstd=c99'] self.compile_options_debug = ['/nologo', '/Od', '/MDd', '/W3', '/Qstd=c99', '/Z7', '/D_DEBUG'] class IntelEM64TCCompilerW(IntelCCompilerW): """ A modified Intel x86_64 compiler compatible with a 64bit MSVC-built Python. """ compiler_type = 'intelemw' def __init__(self, verbose=0, dry_run=0, force=0): MSVCCompiler.__init__(self, verbose, dry_run, force) version_match = simple_version_match(start=r'Intel\(R\).*?64,') self.__version = version_match