Merge branch 'build-package-fix' of https://github.com/13k/kitty

This commit is contained in:
Kovid Goyal 2018-02-16 08:22:30 +05:30
commit 8c5646b81b
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C

View File

@ -516,8 +516,8 @@ def package(args, for_bundle=False, sh_launcher=False): # {{{
shutil.copytree('kitty', os.path.join(libdir, 'kitty'), ignore=src_ignore)
shutil.copytree('kittens', os.path.join(libdir, 'kittens'), ignore=src_ignore)
import compileall
compileall.compile_dir(ddir, quiet=1, workers=4)
for root, dirs, files in os.walk(ddir):
compileall.compile_dir(libdir, quiet=1, workers=4)
for root, dirs, files in os.walk(libdir):
for f in files:
path = os.path.join(root, f)
os.chmod(path, 0o755 if f.endswith('.so') else 0o644)