def main():
""" Perform setup with optional C speedups.
Optional extension compilation stolen from markupsafe, which again stole
it from simplejson. Creds to Bob Ippolito for the original code.
"""
is_jython = 'java' in sys.platform
is_pypy = hasattr(sys, 'pypy_translation_info')
if is_jython or is_pypy:
del setup_options['ext_modules']
try:
setup(**setup_options)
except BuildError as be:
sys.stderr.write('''
BUILD ERROR:
%s
RETRYING WITHOUT C EXTENSIONS
''' % (be,))
del setup_options['ext_modules']
setup(**setup_options)
评论列表
文章目录