8000 BLD: fix for INTEL compiler build failure on linux when import msvc by yolanda15 · Pull Request #6211 · numpy/numpy · GitHub
[go: up one dir, main page]

Skip to content

BLD: fix for INTEL compiler build failure on linux when import msvc #6211

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 3 commits into from
Aug 19, 2015

Conversation

yolanda15
Copy link
Contributor

Intel compiler build on Linux fails due to MSVC related changes in master and 1.10.x:

NameError: name 'MSVCCompiler' is not defined

Try checking system platform before including MSVC related code for Windows.

from distutils.unixccompiler import UnixCCompiler
from numpy.distutils.exec_command import find_executable
from distutils.msvc9compiler import MSVCCompiler
if sys.platform == 'win32':
from distutils.msvc9compiler import MSVCCompiler
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Might be better to move this import down under the other if statement.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks Charris. I think it's a good idea. :)

self.compile_options_debug = ['/nologo', '/Od', '/MDd', '/W3',
if sys.platform == 'win32':
from distutils.msvc9compiler import MSVCCompiler
class IntelCCompilerW(MSVCCompiler):
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Strictly speaking, should have two blank lines above the class declaration. It is useful to run pep8 over code just to keep it more or less in line.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Charris, thanks for letting me know this. I just tried the pep8 online checker and correct serveral coding styles errors.

@charris
Copy link
Member
charris commented Aug 18, 2015

LGTM modulo a style nitpick.

charris added a commit that referenced this pull request Aug 19, 2015
BLD: fix for INTEL compiler build failure on linux when import msvc
@charris charris merged commit 6078824 into numpy:master Aug 19, 2015
@charris
Copy link
Member
charris commented Aug 19, 2015

Thanks @yolanda15.

@rgommers
Copy link
Member

@yolanda15 you can use this to configure your git setup:

git config --global user.name "Your Name"
git config --global user.email you@yourdomain.example.com

Then your name will show up correctly in the commit log next time.

charris added a commit that referenced this pull request Aug 20, 2015
Backport of gh-6211 - fix Linux build with Intel compilers
@yolanda15
Copy link
Contributor Author

Thank you very much @rgommers :)
Sure, I will notice the config name next time.

@yolanda15 yolanda15 deleted the intelc branch August 21, 2015 04:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants
0