| @@ -1,246 +1,246 @@ | | | @@ -1,246 +1,246 @@ |
1 | # $NetBSD: pyversion.mk,v 1.139 2021/10/10 19:10:41 adam Exp $ | | 1 | # $NetBSD: pyversion.mk,v 1.140 2021/12/30 11:52:48 adam Exp $ |
2 | | | 2 | |
3 | # This file determines which Python version is used as a dependency for | | 3 | # This file determines which Python version is used as a dependency for |
4 | # a package. | | 4 | # a package. |
5 | # | | 5 | # |
6 | # === User-settable variables === | | 6 | # === User-settable variables === |
7 | # | | 7 | # |
8 | # PYTHON_VERSION_DEFAULT | | 8 | # PYTHON_VERSION_DEFAULT |
9 | # The preferred Python version to use. | | 9 | # The preferred Python version to use. |
10 | # | | 10 | # |
11 | # Possible values: 27 36 37 38 39 310 | | 11 | # Possible values: 27 37 38 39 310 |
12 | # Default: 39 | | 12 | # Default: 39 |
13 | # | | 13 | # |
14 | # === Infrastructure variables === | | 14 | # === Infrastructure variables === |
15 | # | | 15 | # |
16 | # PYTHON_VERSION_REQD | | 16 | # PYTHON_VERSION_REQD |
17 | # Python version to use. This variable should not be set in | | 17 | # Python version to use. This variable should not be set in |
18 | # packages. Normally it is used by bulk build tools. | | 18 | # packages. Normally it is used by bulk build tools. |
19 | # | | 19 | # |
20 | # Possible: ${PYTHON_VERSIONS_ACCEPTED} | | 20 | # Possible: ${PYTHON_VERSIONS_ACCEPTED} |
21 | # Default: ${PYTHON_VERSION_DEFAULT} | | 21 | # Default: ${PYTHON_VERSION_DEFAULT} |
22 | # | | 22 | # |
23 | # === Package-settable variables === | | 23 | # === Package-settable variables === |
24 | # | | 24 | # |
25 | # PYTHON_VERSIONS_ACCEPTED | | 25 | # PYTHON_VERSIONS_ACCEPTED |
26 | # The Python versions that are acceptable for the package. The | | 26 | # The Python versions that are acceptable for the package. The |
27 | # order of the entries matters, since earlier entries are | | 27 | # order of the entries matters, since earlier entries are |
28 | # preferred over later ones. | | 28 | # preferred over later ones. |
29 | # | | 29 | # |
30 | # Possible values: 310 39 38 37 36 27 | | 30 | # Possible values: 310 39 38 37 27 |
31 | # Default: 310 39 38 37 36 27 | | 31 | # Default: 310 39 38 37 27 |
32 | # | | 32 | # |
33 | # PYTHON_VERSIONS_INCOMPATIBLE | | 33 | # PYTHON_VERSIONS_INCOMPATIBLE |
34 | # The Python versions that are NOT acceptable for the package. | | 34 | # The Python versions that are NOT acceptable for the package. |
35 | # | | 35 | # |
36 | # Possible values: 27 36 37 38 39 310 | | 36 | # Possible values: 27 37 38 39 310 |
37 | # Default: (empty) | | 37 | # Default: (empty) |
38 | # | | 38 | # |
39 | # PYTHON_FOR_BUILD_ONLY | | 39 | # PYTHON_FOR_BUILD_ONLY |
40 | # Whether Python is needed only at build time or at run time. | | 40 | # Whether Python is needed only at build time or at run time. |
41 | # | | 41 | # |
42 | # Possible values: yes no test tool | | 42 | # Possible values: yes no test tool |
43 | # Default: no | | 43 | # Default: no |
44 | # | | 44 | # |
45 | # PYTHON_SELF_CONFLICT | | 45 | # PYTHON_SELF_CONFLICT |
46 | # If set to "yes", additional CONFLICTS entries are added for | | 46 | # If set to "yes", additional CONFLICTS entries are added for |
47 | # registering a conflict between pyNN-<modulename> packages. | | 47 | # registering a conflict between pyNN-<modulename> packages. |
48 | # | | 48 | # |
49 | # Possible values: yes no | | 49 | # Possible values: yes no |
50 | # Default: no | | 50 | # Default: no |
51 | # | | 51 | # |
52 | # === Defined variables === | | 52 | # === Defined variables === |
53 | # | | 53 | # |
54 | # PYPKGPREFIX | | 54 | # PYPKGPREFIX |
55 | # The prefix to use in PKGNAME for extensions which are meant | | 55 | # The prefix to use in PKGNAME for extensions which are meant |
56 | # to be installed for multiple Python versions. | | 56 | # to be installed for multiple Python versions. |
57 | # | | 57 | # |
58 | # Example: py27 | | 58 | # Example: py27 |
59 | # | | 59 | # |
60 | # PYVERSSUFFIX | | 60 | # PYVERSSUFFIX |
61 | # The suffix to executables and in the library path, equal to | | 61 | # The suffix to executables and in the library path, equal to |
62 | # sys.version[0:3]. | | 62 | # sys.version[0:3]. |
63 | # | | 63 | # |
64 | # Example: 2.7 | | 64 | # Example: 2.7 |
65 | # | | 65 | # |
66 | # Keywords: python | | 66 | # Keywords: python |
67 | # | | 67 | # |
68 | | | 68 | |
69 | .if !defined(PYTHON_PYVERSION_MK) | | 69 | .if !defined(PYTHON_PYVERSION_MK) |
70 | PYTHON_PYVERSION_MK= defined | | 70 | PYTHON_PYVERSION_MK= defined |
71 | | | 71 | |
72 | # derive a python version from the package name if possible | | 72 | # derive a python version from the package name if possible |
73 | # optionally handled quoted package names | | 73 | # optionally handled quoted package names |
74 | .if defined(PKGNAME_REQD) && !empty(PKGNAME_REQD:Mpy[0-9][0-9]-*) || \ | | 74 | .if defined(PKGNAME_REQD) && !empty(PKGNAME_REQD:Mpy[0-9][0-9]-*) || \ |
75 | defined(PKGNAME_REQD) && !empty(PKGNAME_REQD:M*-py[0-9][0-9]-*) | | 75 | defined(PKGNAME_REQD) && !empty(PKGNAME_REQD:M*-py[0-9][0-9]-*) |
76 | PYTHON_VERSION_REQD?= ${PKGNAME_REQD:C/(^.*-|^)py([0-9][0-9])-.*/\2/} | | 76 | PYTHON_VERSION_REQD?= ${PKGNAME_REQD:C/(^.*-|^)py([0-9][0-9])-.*/\2/} |
77 | .elif defined(PKGNAME_OLD) && !empty(PKGNAME_OLD:Mpy[0-9][0-9]-*) || \ | | 77 | .elif defined(PKGNAME_OLD) && !empty(PKGNAME_OLD:Mpy[0-9][0-9]-*) || \ |
78 | defined(PKGNAME_OLD) && !empty(PKGNAME_OLD:M*-py[0-9][0-9]-*) | | 78 | defined(PKGNAME_OLD) && !empty(PKGNAME_OLD:M*-py[0-9][0-9]-*) |
79 | PYTHON_VERSION_REQD?= ${PKGNAME_OLD:C/(^.*-|^)py([0-9][0-9])-.*/\2/} | | 79 | PYTHON_VERSION_REQD?= ${PKGNAME_OLD:C/(^.*-|^)py([0-9][0-9])-.*/\2/} |
80 | .endif | | 80 | .endif |
81 | | | 81 | |
82 | .include "../../mk/bsd.prefs.mk" | | 82 | .include "../../mk/bsd.prefs.mk" |
83 | | | 83 | |
84 | BUILD_DEFS+= PYTHON_VERSION_DEFAULT | | 84 | BUILD_DEFS+= PYTHON_VERSION_DEFAULT |
85 | BUILD_DEFS_EFFECTS+= PYPACKAGE | | 85 | BUILD_DEFS_EFFECTS+= PYPACKAGE |
86 | | | 86 | |
87 | PYTHON_VERSION_DEFAULT?= 39 | | 87 | PYTHON_VERSION_DEFAULT?= 39 |
88 | PYTHON_VERSIONS_ACCEPTED?= 310 39 38 37 36 27 | | 88 | PYTHON_VERSIONS_ACCEPTED?= 310 39 38 37 27 |
89 | PYTHON_VERSIONS_INCOMPATIBLE?= # empty by default | | 89 | PYTHON_VERSIONS_INCOMPATIBLE?= # empty by default |
90 | | | 90 | |
91 | # transform the list into individual variables | | 91 | # transform the list into individual variables |
92 | .for pv in ${PYTHON_VERSIONS_ACCEPTED} | | 92 | .for pv in ${PYTHON_VERSIONS_ACCEPTED} |
93 | . if empty(PYTHON_VERSIONS_INCOMPATIBLE:M${pv}) | | 93 | . if empty(PYTHON_VERSIONS_INCOMPATIBLE:M${pv}) |
94 | _PYTHON_VERSION_${pv}_OK= yes | | 94 | _PYTHON_VERSION_${pv}_OK= yes |
95 | _PYTHON_VERSIONS_ACCEPTED+= ${pv} | | 95 | _PYTHON_VERSIONS_ACCEPTED+= ${pv} |
96 | . endif | | 96 | . endif |
97 | .endfor | | 97 | .endfor |
98 | | | 98 | |
99 | # | | 99 | # |
100 | # choose a python version where to add, | | 100 | # choose a python version where to add, |
101 | # try to be intelligent | | 101 | # try to be intelligent |
102 | # | | 102 | # |
103 | # if a version is explicitly required, take it | | 103 | # if a version is explicitly required, take it |
104 | .if defined(PYTHON_VERSION_REQD) | | 104 | .if defined(PYTHON_VERSION_REQD) |
105 | # but check if it is acceptable first, error out otherwise | | 105 | # but check if it is acceptable first, error out otherwise |
106 | . if defined(_PYTHON_VERSION_${PYTHON_VERSION_REQD}_OK) | | 106 | . if defined(_PYTHON_VERSION_${PYTHON_VERSION_REQD}_OK) |
107 | _PYTHON_VERSION= ${PYTHON_VERSION_REQD} | | 107 | _PYTHON_VERSION= ${PYTHON_VERSION_REQD} |
108 | . endif | | 108 | . endif |
109 | .else | | 109 | .else |
110 | # if the default is accepted, it is first choice | | 110 | # if the default is accepted, it is first choice |
111 | . if !defined(_PYTHON_VERSION) | | 111 | . if !defined(_PYTHON_VERSION) |
112 | . if defined(_PYTHON_VERSION_${PYTHON_VERSION_DEFAULT}_OK) | | 112 | . if defined(_PYTHON_VERSION_${PYTHON_VERSION_DEFAULT}_OK) |
113 | _PYTHON_VERSION= ${PYTHON_VERSION_DEFAULT} | | 113 | _PYTHON_VERSION= ${PYTHON_VERSION_DEFAULT} |
114 | . endif | | 114 | . endif |
115 | . endif | | 115 | . endif |
116 | # prefer an already installed version, in order of "accepted" | | 116 | # prefer an already installed version, in order of "accepted" |
117 | . if !defined(_PYTHON_VERSION) | | 117 | . if !defined(_PYTHON_VERSION) |
118 | . for pv in ${PYTHON_VERSIONS_ACCEPTED} | | 118 | . for pv in ${PYTHON_VERSIONS_ACCEPTED} |
119 | . if defined(_PYTHON_VERSION_${pv}_OK) | | 119 | . if defined(_PYTHON_VERSION_${pv}_OK) |
120 | _PYTHON_VERSION?= ${pv} | | 120 | _PYTHON_VERSION?= ${pv} |
121 | . endif | | 121 | . endif |
122 | . endfor | | 122 | . endfor |
123 | . endif | | 123 | . endif |
124 | .endif | | 124 | .endif |
125 | | | 125 | |
126 | # | | 126 | # |
127 | # Variable assignment for multi-python packages | | 127 | # Variable assignment for multi-python packages |
128 | MULTI+= PYTHON_VERSION_REQD=${_PYTHON_VERSION} | | 128 | MULTI+= PYTHON_VERSION_REQD=${_PYTHON_VERSION} |
129 | | | 129 | |
130 | # No supported version found, annotate to simplify statements below. | | 130 | # No supported version found, annotate to simplify statements below. |
131 | .if !defined(_PYTHON_VERSION) | | 131 | .if !defined(_PYTHON_VERSION) |
132 | _PYTHON_VERSION= none | | 132 | _PYTHON_VERSION= none |
133 | PKG_FAIL_REASON+= "No valid Python version" | | 133 | PKG_FAIL_REASON+= "No valid Python version" |
134 | .endif | | 134 | .endif |
135 | | | 135 | |
136 | # Additional CONFLICTS | | 136 | # Additional CONFLICTS |
137 | .if ${PYTHON_SELF_CONFLICT:U:tl} == "yes" | | 137 | .if ${PYTHON_SELF_CONFLICT:U:tl} == "yes" |
138 | . for i in ${PYTHON_VERSIONS_ACCEPTED:N${_PYTHON_VERSION}} | | 138 | . for i in ${PYTHON_VERSIONS_ACCEPTED:N${_PYTHON_VERSION}} |
139 | . if empty(PYTHON_VERSIONS_INCOMPATIBLE:M${i}) | | 139 | . if empty(PYTHON_VERSIONS_INCOMPATIBLE:M${i}) |
140 | CONFLICTS+= ${PKGNAME:S/py${_PYTHON_VERSION}/py${i}/:C/-[0-9].*$/-[0-9]*/} | | 140 | CONFLICTS+= ${PKGNAME:S/py${_PYTHON_VERSION}/py${i}/:C/-[0-9].*$/-[0-9]*/} |
141 | . endif | | 141 | . endif |
142 | . endfor | | 142 | . endfor |
143 | .endif # PYCONFLICTS | | 143 | .endif # PYCONFLICTS |
144 | | | 144 | |
145 | # | | 145 | # |
146 | PLIST_VARS+= py2x py3x | | 146 | PLIST_VARS+= py2x py3x |
147 | | | 147 | |
148 | .if empty(_PYTHON_VERSION:Mnone) | | 148 | .if empty(_PYTHON_VERSION:Mnone) |
149 | PYPACKAGE= python${_PYTHON_VERSION} | | 149 | PYPACKAGE= python${_PYTHON_VERSION} |
150 | PYVERSSUFFIX= ${_PYTHON_VERSION:C/^([0-9])/\1./1} | | 150 | PYVERSSUFFIX= ${_PYTHON_VERSION:C/^([0-9])/\1./1} |
151 | BUILDLINK_API_DEPENDS.${PYPACKAGE}?= ${PYPACKAGE}>=${PYVERSSUFFIX} | | 151 | BUILDLINK_API_DEPENDS.${PYPACKAGE}?= ${PYPACKAGE}>=${PYVERSSUFFIX} |
152 | PYPKGSRCDIR= ../../lang/${PYPACKAGE} | | 152 | PYPKGSRCDIR= ../../lang/${PYPACKAGE} |
153 | PYDEPENDENCY= ${BUILDLINK_API_DEPENDS.${PYPACKAGE}}:${PYPKGSRCDIR} | | 153 | PYDEPENDENCY= ${BUILDLINK_API_DEPENDS.${PYPACKAGE}}:${PYPKGSRCDIR} |
154 | PYPKGPREFIX= py${_PYTHON_VERSION} | | 154 | PYPKGPREFIX= py${_PYTHON_VERSION} |
155 | .endif | | 155 | .endif |
156 | .if !empty(_PYTHON_VERSION:M3*) | | 156 | .if !empty(_PYTHON_VERSION:M3*) |
157 | PLIST.py3x= yes | | 157 | PLIST.py3x= yes |
158 | .endif | | 158 | .endif |
159 | .if !empty(_PYTHON_VERSION:M2*) | | 159 | .if !empty(_PYTHON_VERSION:M2*) |
160 | PLIST.py2x= yes | | 160 | PLIST.py2x= yes |
161 | .endif | | 161 | .endif |
162 | | | 162 | |
163 | PTHREAD_OPTS+= require | | 163 | PTHREAD_OPTS+= require |
164 | .include "../../mk/pthread.buildlink3.mk" | | 164 | .include "../../mk/pthread.buildlink3.mk" |
165 | | | 165 | |
166 | PYTHON_FOR_BUILD_ONLY?= no | | 166 | PYTHON_FOR_BUILD_ONLY?= no |
167 | .if defined(PYPKGSRCDIR) | | 167 | .if defined(PYPKGSRCDIR) |
168 | . if !empty(PYTHON_FOR_BUILD_ONLY:M[tT][oO][oO][lL]) | | 168 | . if !empty(PYTHON_FOR_BUILD_ONLY:M[tT][oO][oO][lL]) |
169 | TOOL_DEPENDS+= ${PYDEPENDENCY} | | 169 | TOOL_DEPENDS+= ${PYDEPENDENCY} |
170 | . elif !empty(PYTHON_FOR_BUILD_ONLY:M[tT][eE][sS][tT]) | | 170 | . elif !empty(PYTHON_FOR_BUILD_ONLY:M[tT][eE][sS][tT]) |
171 | TEST_DEPENDS+= ${PYDEPENDENCY} | | 171 | TEST_DEPENDS+= ${PYDEPENDENCY} |
172 | . else | | 172 | . else |
173 | . if !empty(PYTHON_FOR_BUILD_ONLY:M[yY][eE][sS]) | | 173 | . if !empty(PYTHON_FOR_BUILD_ONLY:M[yY][eE][sS]) |
174 | BUILDLINK_DEPMETHOD.python?= build | | 174 | BUILDLINK_DEPMETHOD.python?= build |
175 | . endif | | 175 | . endif |
176 | . include "${PYPKGSRCDIR}/buildlink3.mk" | | 176 | . include "${PYPKGSRCDIR}/buildlink3.mk" |
177 | . endif | | 177 | . endif |
178 | .endif | | 178 | .endif |
179 | | | 179 | |
180 | PYTHONBIN= ${LOCALBASE}/bin/python${PYVERSSUFFIX} | | 180 | PYTHONBIN= ${LOCALBASE}/bin/python${PYVERSSUFFIX} |
181 | .if exists(${PYTHONBIN}m) | | 181 | .if exists(${PYTHONBIN}m) |
182 | PYTHONCONFIG= ${LOCALBASE}/bin/python${PYVERSSUFFIX}m-config | | 182 | PYTHONCONFIG= ${LOCALBASE}/bin/python${PYVERSSUFFIX}m-config |
183 | .else | | 183 | .else |
184 | PYTHONCONFIG= ${LOCALBASE}/bin/python${PYVERSSUFFIX}-config | | 184 | PYTHONCONFIG= ${LOCALBASE}/bin/python${PYVERSSUFFIX}-config |
185 | .endif | | 185 | .endif |
186 | PY_COMPILE_ALL= \ | | 186 | PY_COMPILE_ALL= \ |
187 | ${PYTHONBIN} ${PREFIX}/lib/python${PYVERSSUFFIX}/compileall.py -q | | 187 | ${PYTHONBIN} ${PREFIX}/lib/python${PYVERSSUFFIX}/compileall.py -q |
188 | PY_COMPILE_O_ALL= \ | | 188 | PY_COMPILE_O_ALL= \ |
189 | ${PYTHONBIN} -O ${PREFIX}/lib/python${PYVERSSUFFIX}/compileall.py -q | | 189 | ${PYTHONBIN} -O ${PREFIX}/lib/python${PYVERSSUFFIX}/compileall.py -q |
190 | | | 190 | |
191 | PYINC= include/python${PYVERSSUFFIX} | | 191 | PYINC= include/python${PYVERSSUFFIX} |
192 | PYLIB= lib/python${PYVERSSUFFIX} | | 192 | PYLIB= lib/python${PYVERSSUFFIX} |
193 | PYSITELIB= ${PYLIB}/site-packages | | 193 | PYSITELIB= ${PYLIB}/site-packages |
194 | | | 194 | |
195 | PRINT_PLIST_AWK+= /^${PYINC:S|/|\\/|g}/ \ | | 195 | PRINT_PLIST_AWK+= /^${PYINC:S|/|\\/|g}/ \ |
196 | { gsub(/${PYINC:S|/|\\/|g}/, "$${PYINC}") } | | 196 | { gsub(/${PYINC:S|/|\\/|g}/, "$${PYINC}") } |
197 | PRINT_PLIST_AWK+= /^${PYSITELIB:S|/|\\/|g}/ \ | | 197 | PRINT_PLIST_AWK+= /^${PYSITELIB:S|/|\\/|g}/ \ |
198 | { gsub(/${PYSITELIB:S|/|\\/|g}/, "$${PYSITELIB}") } | | 198 | { gsub(/${PYSITELIB:S|/|\\/|g}/, "$${PYSITELIB}") } |
199 | PRINT_PLIST_AWK+= /^${PYLIB:S|/|\\/|g}/ \ | | 199 | PRINT_PLIST_AWK+= /^${PYLIB:S|/|\\/|g}/ \ |
200 | { gsub(/${PYLIB:S|/|\\/|g}/, "$${PYLIB}") } | | 200 | { gsub(/${PYLIB:S|/|\\/|g}/, "$${PYLIB}") } |
201 | | | 201 | |
202 | ALL_ENV+= PYTHON=${PYTHONBIN} | | 202 | ALL_ENV+= PYTHON=${PYTHONBIN} |
203 | .if defined(USE_CMAKE) | | 203 | .if defined(USE_CMAKE) |
204 | # used by FindPython | | 204 | # used by FindPython |
205 | CMAKE_ARGS+= -DPython_EXECUTABLE:FILEPATH=${PYTHONBIN} | | 205 | CMAKE_ARGS+= -DPython_EXECUTABLE:FILEPATH=${PYTHONBIN} |
206 | CMAKE_ARGS+= -DPython_INCLUDE_DIR:PATH=${BUILDLINK_DIR}/${PYINC} | | 206 | CMAKE_ARGS+= -DPython_INCLUDE_DIR:PATH=${BUILDLINK_DIR}/${PYINC} |
207 | # used by FindPython2 | | 207 | # used by FindPython2 |
208 | . if !empty(_PYTHON_VERSION:M2*) | | 208 | . if !empty(_PYTHON_VERSION:M2*) |
209 | CMAKE_ARGS+= -DPython2_EXECUTABLE:FILEPATH=${PYTHONBIN} | | 209 | CMAKE_ARGS+= -DPython2_EXECUTABLE:FILEPATH=${PYTHONBIN} |
210 | CMAKE_ARGS+= -DPython2_INCLUDE_DIR:PATH=${BUILDLINK_DIR}/${PYINC} | | 210 | CMAKE_ARGS+= -DPython2_INCLUDE_DIR:PATH=${BUILDLINK_DIR}/${PYINC} |
211 | . endif | | 211 | . endif |
212 | # used by FindPython3 | | 212 | # used by FindPython3 |
213 | . if !empty(_PYTHON_VERSION:M3*) | | 213 | . if !empty(_PYTHON_VERSION:M3*) |
214 | CMAKE_ARGS+= -DPython3_EXECUTABLE:FILEPATH=${PYTHONBIN} | | 214 | CMAKE_ARGS+= -DPython3_EXECUTABLE:FILEPATH=${PYTHONBIN} |
215 | CMAKE_ARGS+= -DPython3_INCLUDE_DIR:PATH=${BUILDLINK_DIR}/${PYINC} | | 215 | CMAKE_ARGS+= -DPython3_INCLUDE_DIR:PATH=${BUILDLINK_DIR}/${PYINC} |
216 | . endif | | 216 | . endif |
217 | # used by FindPythonInterp.cmake and FindPythonLibs.cmake | | 217 | # used by FindPythonInterp.cmake and FindPythonLibs.cmake |
218 | CMAKE_ARGS+= -DPYVERSSUFFIX:STRING=${PYVERSSUFFIX} | | 218 | CMAKE_ARGS+= -DPYVERSSUFFIX:STRING=${PYVERSSUFFIX} |
219 | # set this explicitly, as by default it will prefer the built in framework | | 219 | # set this explicitly, as by default it will prefer the built in framework |
220 | # on Darwin | | 220 | # on Darwin |
221 | CMAKE_ARGS+= -DPYTHON_INCLUDE_DIR:PATH=${BUILDLINK_DIR}/${PYINC} | | 221 | CMAKE_ARGS+= -DPYTHON_INCLUDE_DIR:PATH=${BUILDLINK_DIR}/${PYINC} |
222 | CMAKE_ARGS+= -DPYTHON_INCLUDE_PATH:PATH=${BUILDLINK_DIR}/${PYINC} | | 222 | CMAKE_ARGS+= -DPYTHON_INCLUDE_PATH:PATH=${BUILDLINK_DIR}/${PYINC} |
223 | CMAKE_ARGS+= -DPYTHON_EXECUTABLE:FILEPATH=${PYTHONBIN} | | 223 | CMAKE_ARGS+= -DPYTHON_EXECUTABLE:FILEPATH=${PYTHONBIN} |
224 | .endif | | 224 | .endif |
225 | | | 225 | |
226 | _VARGROUPS+= pyversion | | 226 | _VARGROUPS+= pyversion |
227 | _USER_VARS.pyversion= PYTHON_VERSION_DEFAULT | | 227 | _USER_VARS.pyversion= PYTHON_VERSION_DEFAULT |
228 | _PKG_VARS.pyversion= \ | | 228 | _PKG_VARS.pyversion= \ |
229 | PYTHON_VERSIONS_ACCEPTED PYTHON_VERSIONS_INCOMPATIBLE \ | | 229 | PYTHON_VERSIONS_ACCEPTED PYTHON_VERSIONS_INCOMPATIBLE \ |
230 | PYTHON_SELF_CONFLICT PYTHON_FOR_BUILD_ONLY USE_CMAKE | | 230 | PYTHON_SELF_CONFLICT PYTHON_FOR_BUILD_ONLY USE_CMAKE |
231 | _SYS_VARS.pyversion= \ | | 231 | _SYS_VARS.pyversion= \ |
232 | PYTHON_VERSION_REQD PYPACKAGE PYVERSSUFFIX PYPKGSRCDIR \ | | 232 | PYTHON_VERSION_REQD PYPACKAGE PYVERSSUFFIX PYPKGSRCDIR \ |
233 | PYPKGPREFIX PYTHONBIN PYTHONCONFIG PY_COMPILE_ALL \ | | 233 | PYPKGPREFIX PYTHONBIN PYTHONCONFIG PY_COMPILE_ALL \ |
234 | PY_COMPILE_O_ALL PYINC PYLIB PYSITELIB CMAKE_ARGS | | 234 | PY_COMPILE_O_ALL PYINC PYLIB PYSITELIB CMAKE_ARGS |
235 | _USE_VARS.pyversion= \ | | 235 | _USE_VARS.pyversion= \ |
236 | PKGNAME_REQD PKGNAME_OLD LOCALBASE PREFIX BUILDLINK_DIR PKGNAME | | 236 | PKGNAME_REQD PKGNAME_OLD LOCALBASE PREFIX BUILDLINK_DIR PKGNAME |
237 | _DEF_VARS.pyversion= \ | | 237 | _DEF_VARS.pyversion= \ |
238 | CONFLICTS MULTI PLIST_VARS BUILDLINK_API_DEPENDS.${PYPACKAGE} \ | | 238 | CONFLICTS MULTI PLIST_VARS BUILDLINK_API_DEPENDS.${PYPACKAGE} \ |
239 | PYDEPENDENCY PLIST.py2x PLIST.py3x PTHREAD_OPTS TOOL_DEPENDS \ | | 239 | PYDEPENDENCY PLIST.py2x PLIST.py3x PTHREAD_OPTS TOOL_DEPENDS \ |
240 | TEST_DEPENDS BUILDLINK_DEPMETHOD.python PRINT_PLIST_AWK ALL_ENV \ | | 240 | TEST_DEPENDS BUILDLINK_DEPMETHOD.python PRINT_PLIST_AWK ALL_ENV \ |
241 | _PYTHON_VERSIONS_ACCEPTED _PYTHON_VERSION | | 241 | _PYTHON_VERSIONS_ACCEPTED _PYTHON_VERSION |
242 | _IGN_VARS.pyversion= _PYTHON_* | | 242 | _IGN_VARS.pyversion= _PYTHON_* |
243 | _LISTED_VARS.pyversion= *_ARGS | | 243 | _LISTED_VARS.pyversion= *_ARGS |
244 | _SORTED_VARS.pyversion= *_DEPENDS *_ENV | | 244 | _SORTED_VARS.pyversion= *_DEPENDS *_ENV |
245 | | | 245 | |
246 | .endif # PYTHON_PYVERSION_MK | | 246 | .endif # PYTHON_PYVERSION_MK |