|
| 1 | +# _build_config.py.in is converted into _build_config.py during the meson build process. |
| 2 | + |
| 3 | +from __future__ import annotations |
| 4 | + |
| 5 | + |
| 6 | +def build_config() -> dict[str, str]: |
| 7 | + """ |
| 8 | + Return a dictionary containing build configuration settings. |
| 9 | +
|
| 10 | + All dictionary keys and values are strings, for example ``False`` is |
| 11 | + returned as ``"False"``. |
| 12 | +
|
| 13 | + .. versionadded:: 1.1.0 |
| 14 | + """ |
| 15 | + return dict( |
| 16 | + # Python settings |
| 17 | + python_version="3.10", |
| 18 | + python_install_dir=r"c:/Lib/site-packages/", |
| 19 | + python_path=r"C:/Users/runneradmin/AppData/Local/Temp/build-env-wh_oe66t/Scripts/python.exe", |
| 20 | + |
| 21 | + # Package versions |
| 22 | + contourpy_version="1.2.1", |
| 23 | + meson_version="1.4.0", |
| 24 | + mesonpy_version="0.15.0", |
| 25 | + pybind11_version="2.12.0", |
| 26 | + |
| 27 | + # Misc meson settings |
| 28 | + meson_backend="ninja", |
| 29 | + build_dir=r"D:/a/contourpy/contourpy/.mesonpy-l1z15sja/lib/contourpy/util", |
| 30 | + source_dir=r"D:/a/contourpy/contourpy/lib/contourpy/util", |
| 31 | + cross_build="False", |
| 32 | + |
| 33 | + # Build options |
| 34 | + build_options=r"-Dbuildtype=release -Db_ndebug=if-release -Db_vscrt=md -Dvsenv=True '--native-file=D:/a/contourpy/contourpy/.mesonpy-l1z15sja/meson-python-native-file.ini'", |
| 35 | + buildtype="release", |
| 36 | + cpp_std="c++17", |
| 37 | + debug="False", |
| 38 | + optimization="3", |
| 39 | + vsenv="True", |
| 40 | + b_ndebug="if-release", |
| 41 | + b_vscrt="md", |
| 42 | + |
| 43 | + # C++ compiler |
| 44 | + compiler_name="msvc", |
| 45 | + compiler_version="19.29.30154", |
| 46 | + linker_id="link", |
| 47 | + compile_command="cl", |
| 48 | + |
| 49 | + # Host machine |
| 50 | + host_cpu="x86_64", |
| 51 | + host_cpu_family="x86_64", |
| 52 | + host_cpu_endian="little", |
| 53 | + host_cpu_system="windows", |
| 54 | + |
| 55 | + # Build machine, same as host machine if not a cross_build |
| 56 | + build_cpu="x86_64", |
| 57 | + build_cpu_family="x86_64", |
| 58 | + build_cpu_endian="little", |
| 59 | + build_cpu_system="windows", |
| 60 | + ) |
0 commit comments