| 1 |
project('install path', |
| 2 |
default_options: [ |
| 3 |
'python.bytecompile=-1', |
| 4 |
'python.purelibdir=/pure', |
| 5 |
'python.platlibdir=/plat', |
| 6 |
] |
| 7 |
) |
| 8 |
|
| 9 |
py = import('python').find_installation() |
| 10 |
py.install_sources('test.py') |
| 11 |
py.install_sources('test.py', pure: false) |
| 12 |
install_data('test.py', install_dir: py.get_install_dir() / 'data') |
| 13 |
install_data('test.py', install_dir: py.get_install_dir(pure: false) / 'data') |
| 14 |
|
| 15 |
py_plat = import('python').find_installation(pure: false) |
| 16 |
py_plat.install_sources('test.py', subdir: 'kw') |
| 17 |
py_plat.install_sources('test.py', pure: true, subdir: 'kwrevert') |
| 18 |
install_data('test.py', install_dir: py_plat.get_install_dir() / 'kw/data') |
| 19 |
install_data('test.py', install_dir: py_plat.get_install_dir(pure: true) / 'kwrevert/data') |
| 20 |
|
| 21 |
if get_option('backend') == 'none' |
| 22 |
subdir('target') |
| 23 |
endif |
| 24 |
|
| 25 |
subdir('structured') |