From 94b8a81a908d04bc843c6c10ca938b0343eec48f Mon Sep 17 00:00:00 2001 From: Andrew Chin Date: Thu, 26 Dec 2013 22:30:10 -0500 Subject: [PATCH] Added small link to the build docs when encountering a build problem Related to #1024 --- setup.py | 15 +++++++++++---- 1 file changed, 11 insertions(+), 4 deletions(-) diff --git a/setup.py b/setup.py index 5acc9bc..6125c94 100755 --- a/setup.py +++ b/setup.py @@ -257,10 +257,17 @@ class CustomSDist(sdist): class CustomBuild(build): def run(self): # generate the version file - generate_version_py() - generate_primitives_h() - build.run(self) - print "\nBuild Complete" + try: + generate_version_py() + generate_primitives_h() + build.run(self) + print "\nBuild Complete" + except Exception: + print "\nFailed to build Overviewer!" + print "Please review the errors printed above and the build instructions" + print "at . If you are" + print "still having build problems, file an incident on the github tracker" + print "or find us in IRC." class CustomBuildExt(build_ext): def build_extensions(self):