Permalink
Browse files

Fail gracefully if byte-compiling doesn't work on install

  • Loading branch information...
danielgtaylor committed Jun 20, 2011
1 parent 65e358e commit 42e3143cce775a203010100127d4c141c936709b
Showing with 4 additions and 1 deletion.
  1. +4 −1 setup.py
View
@@ -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",

0 comments on commit 42e3143

Please sign in to comment.