Skip to content

Commit

Permalink
Workaround for Issue7511 did not run under Python 3.
Browse files Browse the repository at this point in the history
  • Loading branch information
Cito committed Jun 5, 2011
1 parent 4964e77 commit 796b2ea
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions setup.py
Expand Up @@ -48,9 +48,9 @@ def build_extension(self, ext):
build_ext.build_extension(self, ext)
except ext_errors:
raise BuildFailed()
except ValueError, err:
# may happen on Win 64 bit, see Python issue7511
if "'path'" in str(err):
except ValueError:
# this can happen on Windows 64 bit, see Python issue 7511
if "'path'" in str(sys.exc_info()[1]): # works with Python 2 and 3
raise BuildFailed()
raise

Expand Down

0 comments on commit 796b2ea

Please sign in to comment.