37 | | set python_prefix ${frameworks_dir}/Python.framework/Versions/2.6 |
38 | | configure.python ${prefix}/bin/python2.6 |
| 37 | # default to python27 bindings |
| 38 | if {![variant_isset python27] && ![variant_isset python26]} { |
| 39 | default_variants +python27 |
| 40 | } |
| 41 | |
| 42 | variant python27 conflicts python26 \ |
| 43 | description {Build Bindings for Python 2.7} { |
| 44 | set python_prefix ${frameworks_dir}/Python.framework/Versions/2.7 |
| 45 | depends_lib-append port:python27 |
| 46 | configure.python ${prefix}/bin/python2.7 |
| 47 | configure.args-append \ |
| 48 | -DPYTHON_SITEPKG_DIR=${python_prefix}/lib/python2.7/site-packages |
| 49 | } |
| 50 | |
| 51 | variant python26 conflicts python27 \ |
| 52 | description {Build Bindings for Python 2.6} { |
| 53 | set python_prefix ${frameworks_dir}/Python.framework/Versions/2.6 |
| 54 | depends_lib-append port:python26 |
| 55 | configure.python ${prefix}/bin/python2.6 |
| 56 | configure.args-append \ |
| 57 | -DPYTHON_SITEPKG_DIR=${python_prefix}/lib/python2.6/site-packages |
| 58 | } |