Skip to content

Commit

Permalink
small update to setup.py fail-safe extension compilation
Browse files Browse the repository at this point in the history
  • Loading branch information
taleinat committed Feb 14, 2015
1 parent 6719f00 commit 59c9a51
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,8 @@ def readfile(file_path):
history = readfile('HISTORY.rst').replace('.. :changelog:', '')


# fail safe compilation shamelessly stolen from the simplejson
# setup.py file. Original author: Bob Ippolito
# Fail safe compilation based on markupsafe's, which in turn was shamelessly
# stolen from the simplejson setup.py file. Original author: Bob Ippolito

is_jython = 'java' in sys.platform
is_pypy = hasattr(sys, 'pypy_version_info')
Expand All @@ -37,7 +37,8 @@ def readfile(file_path):
if sys.platform == 'win32' and sys.version_info > (2, 6):
# 2.6's distutils.msvc9compiler can raise an IOError when failing to
# find the compiler
ext_errors += (IOError,)
# It can also raise ValueError http://bugs.python.org/issue7511
ext_errors += (IOError, ValueError)


class BuildFailed(Exception):
Expand Down

0 comments on commit 59c9a51

Please sign in to comment.