diff options
| author | maxim-yurchuk <[email protected]> | 2024-10-09 12:29:46 +0300 |
|---|---|---|
| committer | maxim-yurchuk <[email protected]> | 2024-10-09 13:14:22 +0300 |
| commit | 9731d8a4bb7ee2cc8554eaf133bb85498a4c7d80 (patch) | |
| tree | a8fb3181d5947c0d78cf402aa56e686130179049 /contrib/python/contourpy | |
| parent | a44b779cd359f06c3ebbef4ec98c6b38609d9d85 (diff) | |
publishFullContrib: true for ydb
<HIDDEN_URL>
commit_hash:c82a80ac4594723cebf2c7387dec9c60217f603e
Diffstat (limited to 'contrib/python/contourpy')
| -rw-r--r-- | contrib/python/contourpy/.yandex_meta/yamaker.yaml | 9 | ||||
| -rw-r--r-- | contrib/python/contourpy/contourpy/util/_build_config.py.in | 60 |
2 files changed, 69 insertions, 0 deletions
diff --git a/contrib/python/contourpy/.yandex_meta/yamaker.yaml b/contrib/python/contourpy/.yandex_meta/yamaker.yaml new file mode 100644 index 00000000000..c470c613a33 --- /dev/null +++ b/contrib/python/contourpy/.yandex_meta/yamaker.yaml @@ -0,0 +1,9 @@ +requirements: + - contrib/libs/pybind11 +copy: + - src/* +cython_templates: + - contourpy/*.py.in +exclude: + - contourpy/*.build + - src/*.build diff --git a/contrib/python/contourpy/contourpy/util/_build_config.py.in b/contrib/python/contourpy/contourpy/util/_build_config.py.in new file mode 100644 index 00000000000..d146b0a0114 --- /dev/null +++ b/contrib/python/contourpy/contourpy/util/_build_config.py.in @@ -0,0 +1,60 @@ +# _build_config.py.in is converted into _build_config.py during the meson build process. + +from __future__ import annotations + + +def build_config() -> dict[str, str]: + """ + Return a dictionary containing build configuration settings. + + All dictionary keys and values are strings, for example ``False`` is + returned as ``"False"``. + + .. versionadded:: 1.1.0 + """ + return dict( + # Python settings + python_version="@python_version@", + python_install_dir=r"@python_install_dir@", + python_path=r"@python_path@", + + # Package versions + contourpy_version="@contourpy_version@", + meson_version="@meson_version@", + mesonpy_version="@mesonpy_version@", + pybind11_version="@pybind11_version@", + + # Misc meson settings + meson_backend="@meson_backend@", + build_dir=r"@build_dir@", + source_dir=r"@source_dir@", + cross_build="@cross_build@", + + # Build options + build_options=r"@build_options@", + buildtype="@buildtype@", + cpp_std="@cpp_std@", + debug="@debug@", + optimization="@optimization@", + vsenv="@vsenv@", + b_ndebug="@b_ndebug@", + b_vscrt="@b_vscrt@", + + # C++ compiler + compiler_name="@compiler_name@", + compiler_version="@compiler_version@", + linker_id="@linker_id@", + compile_command="@compile_command@", + + # Host machine + host_cpu="@host_cpu@", + host_cpu_family="@host_cpu_family@", + host_cpu_endian="@host_cpu_endian@", + host_cpu_system="@host_cpu_system@", + + # Build machine, same as host machine if not a cross_build + build_cpu="@build_cpu@", + build_cpu_family="@build_cpu_family@", + build_cpu_endian="@build_cpu_endian@", + build_cpu_system="@build_cpu_system@", + ) |
