def build_extensions(self): self.debug = True try: for ext in self.extensions: src = os.path.join(ext.lib) dest = self.get_ext_fullpath(ext.name) if not os.path.isfile(dest) and not os.path.isfile(src): check_python_version() print("building {}".format(ext.target)) build_v8(ext.target) if not os.path.isfile(dest): dest_dir = os.path.dirname(dest) if not os.path.exists(dest_dir): os.makedirs(dest_dir) copy_file(src, dest) else: print("extension was already built") except Exception as e: traceback.print_exc() # Alter message err_msg = """py_mini_racer failed to build, ensure you have an up-to-date pip (>= 8.1) to use the wheel instead To update pip: 'pip install -U pip' See also: https://github.com/sqreen/PyMiniRacer#binary-builds-availability Original error: %s""" raise Exception(err_msg % repr(e))
def run(self): if not is_depot_tools_checkout(): print("cloning depot tools submodule") # Clone the depot_tools repository, easier than using submodules check_call(['git', 'init']) check_call(['git', 'clone', 'https://chromium.googlesource.com/chromium/tools/depot_tools.git', 'vendor/depot_tools']) if not is_v8_built(): print("building v8") build_v8()
def run(self): if not is_depot_tools_checkout(): print("cloning depot tools submodule") # Clone the depot_tools repository, easier than using submodules check_call(['git', 'init']) check_call([ 'git', 'clone', 'https://chromium.googlesource.com/chromium/tools/depot_tools.git', 'vendor/depot_tools' ]) if not is_v8_built(): print("building v8") build_v8()
def run(self): if not is_depot_tools_checkout(): print("cloning depot tools submodule") # Clone the depot_tools repository, easier than using submodules check_call(['git', 'init']) check_call([ 'git', 'clone', 'https://chromium.googlesource.com/chromium/tools/depot_tools.git', 'vendor/depot_tools' ]) if not is_v8_built(): print("building v8") target = os.environ.get('V8_TARGET', 'native') build_v8(target) else: print("v8 is already built")