X-Git-Url: http://git.inspyration.org/?a=blobdiff_plain;f=rpminstall_sh.txt;h=bb7bb3fc10c2eca112c603e00e7b03e5f070deed;hb=ead4c39bcf46aa800e3b1a9756ceff73fb0531aa;hp=c184585e94fbc1a1e3cf3e607185aa1f2c65dee7;hpb=83a8db6b975861d806c1de8dd8a45d715cb90320;p=odoo%2Fodoo.git diff --git a/rpminstall_sh.txt b/rpminstall_sh.txt index c184585..bb7bb3f 100644 --- a/rpminstall_sh.txt +++ b/rpminstall_sh.txt @@ -7,6 +7,8 @@ # Need to overwrite the install-part of the RPM to append the # compression-suffix onto the filenames for the man-pages. # +python -c "import compileall, os; compileall.compile_dir(os.path.join(os.environ['PWD'], 'doc'), force=True)" +python -O -c "import compileall, os; compileall.compile_dir(os.path.join(os.environ['PWD'], 'doc'), force=True)" python setup.py install --optimize 1 --root=$RPM_BUILD_ROOT --record=INSTALLED_FILES SUFFIX=gz