Mercurial > hgrepos > FreeBSD > ports > PyPy
changeset 113:edb35c768cff
Apply byte-compilation for all optimization levels (0, 1, 2) after installing (i.e. staging).
This is currently Python3 only.
BUGS: Not tested for Python 3.7 and Python 3.8.
| author | Franz Glasner <f.glasner@feldmann-mg.com> |
|---|---|
| date | Wed, 10 Jan 2024 14:45:45 +0100 |
| parents | 7c155c2e33ed |
| children | 8ae98a6ddf12 |
| files | Makefile |
| diffstat | 1 files changed, 4 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/Makefile Mon Jan 08 09:38:00 2024 +0100 +++ b/Makefile Wed Jan 10 14:45:45 2024 +0100 @@ -76,4 +76,8 @@ #${CHMOD} -R a-w ${WRKSRC} #${CHMOD} -R u+w ${WRKSRC}/lib_pypy +post-install: + @cd ${STAGEDIR}${PREFIX}/${PYPY_DIR} && ${SETENV} LD_LIBRARY_PATH=${WRKSRC}/pypy/goal \ + ${WRKSRC}/pypy/goal/${PYPY_EXECUTABLE} -B -I -m compileall --invalidation-mode=unchecked-hash -q -x '/tests?/' -o 0 -o 1 -o 2 -d "${PREFIX}/${PYPY_DIR}/lib" lib + .include "${MASTERDIR}/Makefile"
