コード例 #1
0
ファイル: setup.py プロジェクト: zedwarth/dotfiles
            ['-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',
コード例 #2
0
ファイル: setup.py プロジェクト: ProgramFan/powerline
		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,
コード例 #3
0
ファイル: setup.py プロジェクト: kingd/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.0",
    description="The ultimate statusline/prompt utility.",
    long_description=README,