Skip to content

Commit

Permalink
Fail gracefully if byte-compiling doesn't work on install
Browse files Browse the repository at this point in the history
  • Loading branch information
danielgtaylor committed Jun 20, 2011
1 parent 65e358e commit 42e3143
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion setup.py
Expand Up @@ -59,7 +59,10 @@ def run(self):
if fname.endswith(".py"):
full = os.path.join(self.root + sys.prefix, path, fname)
print "byte-compiling %s" % full
byte_compile([full], prefix=self.root, base_dir=sys.prefix)
try:
byte_compile([full], prefix=self.root, base_dir=sys.prefix)
except Exception, e:
print "Byte-compile failed: " + str(e)

setup(
name = "arista",
Expand Down

0 comments on commit 42e3143

Please sign in to comment.