1 Remove dependency on Python bz2 module
3 The Python bz2 module is only needed in certain cases, so only import
4 it when needed. In the normal nodejs build, this allows to remove the
5 dependency on this module.
7 Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
8 Index: b/deps/v8/tools/js2c.py
9 ===================================================================
10 --- a/deps/v8/tools/js2c.py
11 +++ b/deps/v8/tools/js2c.py
14 import os, re, sys, string
19 def ToCAsciiArray(lines):
22 raw_sources_declaration = RAW_SOURCES_COMPRESSION_DECLARATION
23 if env['COMPRESSION'] == 'bz2':
25 all_sources = bz2.compress("".join(all_sources))
26 total_length = len(all_sources)
27 sources_data = ToCArray(all_sources)