From f6bd2170cabd0584bcb304ae6330f5fa3620b534 Mon Sep 17 00:00:00 2001 From: Roman Yurchak Date: Fri, 26 Oct 2018 17:03:30 +0200 Subject: [PATCH] Fix string escaping and logging --- pyodide_build/pywasmcross.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pyodide_build/pywasmcross.py b/pyodide_build/pywasmcross.py index 05b03b872..e54b01609 100755 --- a/pyodide_build/pywasmcross.py +++ b/pyodide_build/pywasmcross.py @@ -60,7 +60,7 @@ def collect_args(basename): env['PATH'] = path # determine the package name from the current directory - re_res = re.match('.*packages/(?P[\w\-]+)/build.*', + re_res = re.match(r'.*packages/(?P[\w\-]+)/build.*', env['PWD']) if re_res: package_name = re_res.group('name') @@ -87,9 +87,9 @@ def collect_args(basename): with open(sys.argv[out_idx], 'wb') as fh: fh.write(b'') skip = True + with open('build.log', 'a') as fd: - if skip: - fd.write('SKIP\n') + # TODO: store skip status in the build.log json.dump([basename] + sys.argv[1:], fd) fd.write('\n')