[+] fix build, to be platform independent

This commit is contained in:
Siarhei Siniak 2025-05-10 13:18:38 +03:00
parent e7ec1d1e70
commit 68901a4ec5
2 changed files with 22 additions and 5 deletions

@ -5,7 +5,7 @@ project(
).stdout().strip('\n'),
# 'online.fxreader.uv',
# ['c', 'cpp'],
version: '0.1.5.16+27.8',
version: '0.1.5.16+27.9',
# default_options: [
# 'cpp_std=c++23',
# # 'prefer_static=true',
@ -38,7 +38,10 @@ if mode == 'pyproject'
namespace_path = meson.project_name().replace('.', '/')
module_root = py.get_install_dir() / namespace_path
install_root = py.get_install_dir(pure: true)
install_root_binary = py.get_install_dir(pure: false)
module_root = install_root / namespace_path
python_sources = run_command(
'find', namespace_path, '-iname', '*.py',
@ -47,7 +50,8 @@ if mode == 'pyproject'
py.install_sources(
python_sources,
preserve_path: true
preserve_path: true,
pure: true,
# subdir: namespace_path,
)
@ -61,13 +65,23 @@ if mode == 'pyproject'
install_data(
files(
[
namespace_path / 'py.typed',
],
# 'py.typed',
# '__init__.py',
# 'pyproject.toml',
namespace_path / 'py.typed',
),
install_dir : py.get_install_dir(),
install_dir : install_root,
install_tag: 'python-runtime',
preserve_path: true,
)
#
install_subdir(
project_root / '..' / 'meson',
install_dir : module_root,
strip_directory: false,
# install_tag: 'devel',
install_tag: 'devel',
)
endif

Binary file not shown.