Skip to content

Commit

Permalink
Merge pull request numpy#22433 from DimitriPapadopoulos/self.compiler…
Browse files Browse the repository at this point in the history
….initialize

DOC: remove reference to Python 2
  • Loading branch information
charris authored Oct 23, 2022
2 parents 6df495c + 7da70ce commit 2cbd21f
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions numpy/distutils/command/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ def _check_compiler (self):
# XXX: hack to circumvent a python 2.6 bug with msvc9compiler:
# initialize call query_vcvarsall, which throws an IOError, and
# causes an error along the way without much information. We try to
# catch it here, hoping it is early enough, and print an helpful
# catch it here, hoping it is early enough, and print a helpful
# message instead of Error: None.
if not self.compiler.initialized:
try:
Expand All @@ -56,8 +56,7 @@ def _check_compiler (self):
Could not initialize compiler instance: do you have Visual Studio
installed? If you are trying to build with MinGW, please use "python setup.py
build -c mingw32" instead. If you have Visual Studio installed, check it is
correctly installed, and the right version (VS 2008 for python 2.6, 2.7 and 3.2,
VS 2010 for >= 3.3).
correctly installed, and the right version (VS 2015 as of this writing).
Original exception was: %s, and the Compiler class was %s
============================================================================""") \
Expand Down

0 comments on commit 2cbd21f

Please sign in to comment.