8000 Backport gh-6243 by charris · Pull Request #6340 · numpy/numpy · GitHub
[go: up one dir, main page]

Skip to content

Backport gh-6243 #6340

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 5 commits into from
Sep 22, 2015
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Align with pep8
  • Loading branch information
dmitrii-zagornyi authored and charris committed Sep 22, 2015
commit ed6e9607b6a6311e40c642639b5cc2d85ef77091
10 changes: 6 additions & 4 deletions numpy/distutils/intelccompiler.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,10 @@
import platform

from distutils.unixccompiler import UnixCCompiler
if platform.system() == 'Windows':
from numpy.distutils.msvc9compiler import MSVCCompiler
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):
Expand All @@ -17,7 +17,8 @@ class IntelCCompiler(UnixCCompiler):

def __init__(self, verbose=0, dry_run=0, force=0):
UnixCCompiler.__init__(self, verbose, dry_run, force)
self.cc_exe = 'icc -fPIC -fp-model strict -O3 -fomit-frame-pointer -openmp'
self.cc_exe = ('icc -fPIC -fp-model strict -O3 '
'-fomit-frame-pointer -openmp')
compiler = self.cc_exe
self.set_executables(compiler=compiler,
compiler_so=compiler,
Expand Down Expand Up @@ -47,7 +48,8 @@ class IntelEM64TCCompiler(UnixCCompiler):

def __init__(self, verbose=0, dry_run=0, force=0):
UnixCCompiler.__init__(self, verbose, dry_run, force)
self.cc_exe = 'icc -m64 -fPIC -fp-model strict -O3 -fomit-frame-pointer -openmp -xSSE4.2'
self.cc_exe = ('icc -m64 -fPIC -fp-model strict -O3 '
'-fomit-frame-pointer -openmp -xSSE4.2')
compiler = self.cc_exe
self.set_executables(compiler=compiler,
compiler_so=compiler,
Expand Down
3 changes: 2 additions & 1 deletion numpy/distutils/msvc9compiler.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,4 +18,5 @@ def initialize(self, plat_name=None):

def manifest_setup_ldargs(self, output_filename, build_temp, ld_args):
ld_args.append('/MANIFEST')
distutils_MSVCCompiler.manifest_setup_ldargs(self, output_filename, build_temp, ld_args)
distutils_MSVCCompiler.manifest_setup_ldargs(self, output_filename,
build_temp, ld_args)
0