comparison bsd.pypy.mk @ 60:4a2bf3c9eb24

FIX: Apply byte-compilation in the "main" Makefile because of MAKE variable issues and allow configuration of byte-compilation in build options
author Franz Glasner <hg@dom66.de>
date Wed, 10 Jan 2024 17:57:02 +0100
parents b0ce0cf90f22
children e12dfbf0a674
comparison
equal deleted inserted replaced
59:e25be229d3b6 60:4a2bf3c9eb24
27 DISTVERSION= 7.3.14 27 DISTVERSION= 7.3.14
28 PYPY_CFFI_VER= ${PYTHON_IMPL_NODOT}-pp${DISTVERSION:S|.||:C|\..*||}-${OPSYS:tl}${OSREL:C|\..*||} 28 PYPY_CFFI_VER= ${PYTHON_IMPL_NODOT}-pp${DISTVERSION:S|.||:C|\..*||}-${OPSYS:tl}${OSREL:C|\..*||}
29 PLIST_SUB+= PYTHON_IMPL_MINOR=${PYTHON_IMPL_MINOR} \ 29 PLIST_SUB+= PYTHON_IMPL_MINOR=${PYTHON_IMPL_MINOR} \
30 PY_VERSION_SHORT=${PY_VERSION_SHORT} 30 PY_VERSION_SHORT=${PY_VERSION_SHORT}
31 31
32 OPTIONS_SINGLE+= FORPYIMPL 32 OPTIONS_DEFINE= BYTECOMPILE
33 OPTIONS_DEFAULT= BYTECOMPILE
34
35 BYTECOMPILE_DESC= Enable to build byte-compiled Python files
36
37 OPTIONS_SINGLE+= FORPYIMPL BCSTYLE
33 38
34 OPTIONS_SINGLE_FORPYIMPL= FORPYIMPL37 FORPYIMPL38 FORPYIMPL39 FORPYIMPL310 39 OPTIONS_SINGLE_FORPYIMPL= FORPYIMPL37 FORPYIMPL38 FORPYIMPL39 FORPYIMPL310
35 40
36 FORPYIMPL_DESC= Required Python compatibility 41 FORPYIMPL_DESC= Required Python compatibility
37 FORPYIMPL37_DESC= Build for compat to Python 3.7 42 FORPYIMPL37_DESC= Build for compat to Python 3.7
38 FORPYIMPL38_DESC= Build for compat to Python 3.8 43 FORPYIMPL38_DESC= Build for compat to Python 3.8
39 FORPYIMPL39_DESC= Build for compat to Python 3.9 44 FORPYIMPL39_DESC= Build for compat to Python 3.9
40 FORPYIMPL310_DESC= Build for compat to Python 3.10 45 FORPYIMPL310_DESC= Build for compat to Python 3.10
41 46
47 OPTIONS_SINGLE_BCSTYLE= BCTIMESTAMP BCCHECKEDHASH BCUNCHECKEDHASH
48
49 BCSTYLE_DESC= PEP-552 .pyc-File Invalidation Modes
50 BCTIMESTAMP_DESC= Traditional timestamp based .pyc file invalidataion
51 BCCHECKEDHASH_DESC= Use checked hash based .pyc file invalidataion
52 BCUNCHECKEDHASH_DESC= Use unchecked hash based .pyc file invalidataion
53
42 OPTIONS_SUB= yes 54 OPTIONS_SUB= yes
43 OPTIONS_DEFAULT+= FORPYIMPL39 55 OPTIONS_DEFAULT+= FORPYIMPL39 BCUNCHECKEDHASH
56
57 BCTIMESTAMP_VARS= COMPILEALL_INVALIDATIONMODE=timestamp
58 BCCHECKEDHASH_VARS= COMPILEALL_INVALIDATIONMODE=checked-hash
59 BCUNCHECKEDHASH_VARS= COMPILEALL_INVALIDATIONMODE=unchecked-hash
44 60
45 .endif 61 .endif
46 62
47 PY_VERSION_NODOT= ${PY_VERSION_SHORT:S/.//} 63 PY_VERSION_NODOT= ${PY_VERSION_SHORT:S/.//}
48 PYTHON_IMPL_MINOR= pypy${PY_VERSION_SHORT} 64 PYTHON_IMPL_MINOR= pypy${PY_VERSION_SHORT}