Mercurial > hg > vamp-build-and-test
comparison DEPENDENCIES/mingw32/Python27/Lib/site-packages/numpy/distutils/intelccompiler.py @ 87:2a2c65a20a8b
Add Python libs and headers
author | Chris Cannam |
---|---|
date | Wed, 25 Feb 2015 14:05:22 +0000 |
parents | |
children |
comparison
equal
deleted
inserted
replaced
86:413a9d26189e | 87:2a2c65a20a8b |
---|---|
1 from __future__ import division, absolute_import, print_function | |
2 | |
3 from distutils.unixccompiler import UnixCCompiler | |
4 from numpy.distutils.exec_command import find_executable | |
5 | |
6 class IntelCCompiler(UnixCCompiler): | |
7 """ A modified Intel compiler compatible with an gcc built Python.""" | |
8 compiler_type = 'intel' | |
9 cc_exe = 'icc' | |
10 cc_args = 'fPIC' | |
11 | |
12 def __init__ (self, verbose=0, dry_run=0, force=0): | |
13 UnixCCompiler.__init__ (self, verbose, dry_run, force) | |
14 self.cc_exe = 'icc -fPIC' | |
15 compiler = self.cc_exe | |
16 self.set_executables(compiler=compiler, | |
17 compiler_so=compiler, | |
18 compiler_cxx=compiler, | |
19 linker_exe=compiler, | |
20 linker_so=compiler + ' -shared') | |
21 | |
22 class IntelItaniumCCompiler(IntelCCompiler): | |
23 compiler_type = 'intele' | |
24 | |
25 # On Itanium, the Intel Compiler used to be called ecc, let's search for | |
26 # it (now it's also icc, so ecc is last in the search). | |
27 for cc_exe in map(find_executable, ['icc', 'ecc']): | |
28 if cc_exe: | |
29 break | |
30 | |
31 class IntelEM64TCCompiler(UnixCCompiler): | |
32 """ A modified Intel x86_64 compiler compatible with a 64bit gcc built Python. | |
33 """ | |
34 compiler_type = 'intelem' | |
35 cc_exe = 'icc -m64 -fPIC' | |
36 cc_args = "-fPIC" | |
37 def __init__ (self, verbose=0, dry_run=0, force=0): | |
38 UnixCCompiler.__init__ (self, verbose, dry_run, force) | |
39 self.cc_exe = 'icc -m64 -fPIC' | |
40 compiler = self.cc_exe | |
41 self.set_executables(compiler=compiler, | |
42 compiler_so=compiler, | |
43 compiler_cxx=compiler, | |
44 linker_exe=compiler, | |
45 linker_so=compiler + ' -shared') |