- default to python site-packages
- subdir to site-packages/subdir
- arbitrary install_dir
(cherry picked from commit 1f46b4ce64
)
0.59
parent
355c0bdb2e
commit
72fac1f25e
7 changed files with 51 additions and 3 deletions
@ -1,6 +1,6 @@ |
||||
#!/usr/bin/env python3 |
||||
|
||||
import tachyon |
||||
import @tachyon_module@ as tachyon |
||||
|
||||
result = tachyon.phaserize('shoot') |
||||
|
@ -1,6 +1,10 @@ |
||||
pylib = py.extension_module('tachyon', |
||||
'tachyon_module.c', |
||||
dependencies : py_dep, |
||||
c_args: '-DMESON_MODULENAME="tachyon"', |
||||
install: true, |
||||
) |
||||
|
||||
subdir('nested') |
||||
subdir('wrongdir') |
||||
pypathdir = meson.current_build_dir() |
||||
|
@ -0,0 +1,16 @@ |
||||
py.extension_module('tachyon', |
||||
'../tachyon_module.c', |
||||
dependencies : py_dep, |
||||
c_args: '-DMESON_MODULENAME="nested.tachyon"', |
||||
install: true, |
||||
subdir: 'nested' |
||||
) |
||||
py.install_sources( |
||||
configure_file( |
||||
input: '../../blaster.py.in', |
||||
output: 'blaster.py', |
||||
configuration: {'tachyon_module': 'nested.tachyon'} |
||||
), |
||||
pure: false, |
||||
subdir: 'nested', |
||||
) |
@ -0,0 +1,7 @@ |
||||
py.extension_module('tachyon', |
||||
'../tachyon_module.c', |
||||
dependencies : py_dep, |
||||
c_args: '-DMESON_MODULENAME="tachyon"', |
||||
install: true, |
||||
install_dir: get_option('libdir') |
||||
) |
@ -0,0 +1,13 @@ |
||||
{ |
||||
"installed": [ |
||||
{ "type": "python_file", "file": "usr/@PYTHON_PLATLIB@/blaster.py" }, |
||||
{ "type": "python_lib", "file": "usr/@PYTHON_PLATLIB@/tachyon" }, |
||||
{ "type": "py_implib", "file": "usr/@PYTHON_PLATLIB@/tachyon" }, |
||||
{ "type": "python_file", "file": "usr/@PYTHON_PURELIB@/pure/blaster.py" }, |
||||
{ "type": "python_file", "file": "usr/@PYTHON_PLATLIB@/nested/blaster.py" }, |
||||
{ "type": "python_lib", "file": "usr/@PYTHON_PLATLIB@/nested/tachyon" }, |
||||
{ "type": "py_implib", "file": "usr/@PYTHON_PLATLIB@/nested/tachyon" }, |
||||
{ "type": "python_lib", "file": "usr/lib/tachyon" }, |
||||
{ "type": "py_implib", "file": "usr/lib/tachyon" } |
||||
] |
||||
} |
Loading…
Reference in new issue