['-O3', 'client/powerline.c', '-o', 'scripts/powerline']) try: compile_client() except Exception as e: print('Compiling C version of powerline-client failed') logging.exception(e) # FIXME Catch more specific exceptions import shutil if hasattr(shutil, 'which'): which = shutil.which else: sys.path.append(CURRENT_DIR) from powerline.lib import which if which('socat') and which('sed') and which('sh'): print( 'Using powerline.sh script instead of C version (requires socat, sed and sh)' ) shutil.copyfile('client/powerline.sh', 'scripts/powerline') can_use_scripts = True else: print('Using powerline.py script instead of C version') shutil.copyfile('client/powerline.py', 'scripts/powerline') can_use_scripts = True else: can_use_scripts = False setup( name='Powerline', version='beta',
compiler = new_compiler().compiler subprocess.check_call(compiler + ['-O3', 'client/powerline.c', '-o', 'scripts/powerline']) try: compile_client() except Exception as e: print('Compiling C version of powerline-client failed') logging.exception(e) # FIXME Catch more specific exceptions import shutil if hasattr(shutil, 'which'): which = shutil.which else: sys.path.append(CURRENT_DIR) from powerline.lib import which if which('socat') and which('sed') and which('sh'): print('Using powerline.sh script instead of C version (requires socat, sed and sh)') shutil.copyfile('client/powerline.sh', 'scripts/powerline') can_use_scripts = True else: print('Using powerline.py script instead of C version') shutil.copyfile('client/powerline.py', 'scripts/powerline') can_use_scripts = True else: can_use_scripts = False setup( name='powerline-status', version='1.1', description='The ultimate statusline/prompt utility.', long_description=README,
try: compile_client() except Exception as e: print("Compiling C version of powerline-client failed") logging.exception(e) # FIXME Catch more specific exceptions import shutil if hasattr(shutil, "which"): which = shutil.which else: sys.path.append(CURRENT_DIR) from powerline.lib import which if which("socat") and which("sed") and which("sh"): print("Using powerline.sh script instead of C version (requires socat, sed and sh)") shutil.copyfile("client/powerline.sh", "scripts/powerline") can_use_scripts = True else: print("Using powerline.py script instead of C version") shutil.copyfile("client/powerline.py", "scripts/powerline") can_use_scripts = True else: can_use_scripts = False setup( name="powerline-status", version="1.0", description="The ultimate statusline/prompt utility.", long_description=README,