| | 259 | set pythonver "" |
| | 260 | set pythonverdot "" |
| | 261 | |
| | 262 | if {![variant_isset python25] && ![variant_isset python26]} { |
| | 263 | default_variants-append +python27 |
| | 264 | } |
| | 265 | |
| | 266 | variant python25 conflicts python26 python27 description {Use python 2.5} { |
| | 267 | set pythonver 25 |
| | 268 | set pythonverdot 2.5 |
| | 269 | configure.args-append --with-python=${prefix}/bin/python2.5 |
| | 270 | } |
| | 271 | |
| | 272 | variant python26 conflicts python25 python27 description {Use python 2.6} { |
| | 273 | set pythonver 26 |
| | 274 | set pythonverdot 2.6 |
| | 275 | configure.args-append --with-python=${prefix}/bin/python2.6 |
| | 276 | } |
| | 277 | |
| | 278 | variant python27 conflicts python25 python26 description {Use python 2.7} { |
| | 279 | set pythonver 27 |
| | 280 | set pythonverdot 2.7 |
| | 281 | configure.args-append --with-python=${prefix}/bin/python2.7 |
| | 282 | } |
| | 283 | |
| | 284 | |
| | 285 | |
| 271 | | set pythonver "" |
| 272 | | set pythonverdot "" |
| 273 | | |
| 274 | | if {![variant_isset python25] && ![variant_isset python26]} { |
| 275 | | default_variants +python27 |
| 276 | | } |
| 277 | | |
| 278 | | variant python25 conflicts python26 python27 description {Use python 2.5} { |
| 279 | | set pythonver 25 |
| 280 | | set pythonverdot 2.5 |
| 281 | | configure.args-append --with-python=${prefix}/bin/python2.5 |
| 282 | | } |
| 283 | | |
| 284 | | variant python26 conflicts python25 python27 description {Use python 2.6} { |
| 285 | | set pythonver 26 |
| 286 | | set pythonverdot 2.6 |
| 287 | | configure.args-append --with-python=${prefix}/bin/python2.6 |
| 288 | | } |
| 289 | | |
| 290 | | variant python27 conflicts python25 python26 description {Use python 2.7} { |
| 291 | | set pythonver 27 |
| 292 | | set pythonverdot 2.7 |
| 293 | | configure.args-append --with-python=${prefix}/bin/python2.7 |
| 294 | | } |
| 295 | | |