2 Star 8 Fork 3

aeix / meld

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
meson_post_install.py 884 Bytes
一键复制 编辑 原始数据 按行查看 历史
#!/usr/bin/env python3
import sys
from compileall import compile_dir
from os import environ, path
from subprocess import call
if not environ.get('DESTDIR', ''):
PREFIX = environ.get('MESON_INSTALL_PREFIX', '/usr/local')
DATA_DIR = path.join(PREFIX, 'share')
print('Updating icon cache...')
call(['gtk-update-icon-cache', '-qtf', path.join(DATA_DIR, 'icons', 'hicolor')])
print("Compiling new schemas")
call(["glib-compile-schemas", path.join(DATA_DIR, 'glib-2.0', 'schemas')])
print("Updating desktop database")
call(["update-desktop-database", path.join(DATA_DIR, 'applications')])
# Byte-compilation is enabled by passing the site-packages path to this script
if len(sys.argv) > 1:
print('Byte-compiling Python module...')
python_source_install_path = sys.argv[1]
compile_dir(path.join(python_source_install_path, 'meld'), optimize=1)
Python
1
https://gitee.com/aeix/meld.git
git@gitee.com:aeix/meld.git
aeix
meld
meld
master

搜索帮助