--- a/meson_post_install.py +++ b/meson_post_install.py @@ -19,4 +19,4 @@ 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) + compile_dir(path.join(environ.get('DESTDIR', '/'), python_source_install_path[1:], 'meld'), optimize=1)