Skip to content

Commit c4a86f6

Browse files
committed
fix: strip DESTDIR from paths recorded in compiled bytecode .pyc modules
Signed-off-by: Christopher Arndt <[email protected]>
1 parent ac1acb9 commit c4a86f6

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

meson_postinstall.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,4 +11,5 @@
1111
print('Compiling Python module to bytecode...')
1212

1313
moduledir = sysconfig.get_path('purelib', vars={'base': destdir})
14-
compile_dir(path.join(moduledir, 'rtmidi'), optimize=1)
14+
compile_dir(path.join(moduledir, 'rtmidi'), optimize=1, quiet=not verbose,
15+
stripdir=destdir or None)

0 commit comments

Comments
 (0)