def build_extension(self, ext):
""" Compile manually the py_mini_racer extension, bypass setuptools
"""
try:
if not is_v8_built():
self.run_command('build_v8')
self.debug = True
if V8_PATH:
dest_filename = join(self.build_lib, "py_mini_racer")
copy_file(V8_PATH, dest_filename, verbose=self.verbose, dry_run=self.dry_run)
else:
build_ext.build_extension(self, ext)
except Exception as e:
# 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))
评论列表
文章目录