From a59f6249d4efc46eece9eaaf7972036532395acf Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Tue, 12 Feb 2013 09:56:57 +0530 Subject: [PATCH] Use the calibre coffeescript compiler when checking .coffee files for robustness --- setup/check.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/setup/check.py b/setup/check.py index d00c8b2786..ce46975243 100644 --- a/setup/check.py +++ b/setup/check.py @@ -95,9 +95,10 @@ class Check(Command): errors = True self.report_errors(w) else: + from calibre.utils.serve_coffee import compile_coffeescript try: - subprocess.check_call(['coffee', '-c', '-p', f], - stdout=open(os.devnull, 'wb')) + with open(f, 'rb') as stream: + compile_coffeescript(stream.read(), f) except: errors = True if errors: