diff options
Diffstat (limited to 'autoscripts/postinst-pypycompile')
-rw-r--r-- | autoscripts/postinst-pypycompile | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/autoscripts/postinst-pypycompile b/autoscripts/postinst-pypycompile new file mode 100644 index 0000000..b26c45f --- /dev/null +++ b/autoscripts/postinst-pypycompile @@ -0,0 +1,5 @@ +if command -v pypycompile >/dev/null 2>&1; then + pypycompile -p #PACKAGE# #ARGS# +elif pypy -m py_compile >/dev/null 2>&1; then + dpkg -L #PACKAGE# | grep '\.py$' | pypy -m py_compile - >/dev/null +fi |