_build_config.py 1.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758
  1. # _build_config.py.in is converted into _build_config.py during the meson build process.
  2. from __future__ import annotations
  3. def build_config() -> dict[str, str]:
  4. """
  5. Return a dictionary containing build configuration settings.
  6. All dictionary keys and values are strings, for example ``False`` is
  7. returned as ``"False"``.
  8. """
  9. return dict(
  10. # Python settings
  11. python_version="3.8",
  12. python_install_dir=r"/usr/local/lib/python3.8/site-packages/",
  13. python_path=r"/tmp/build-env-073y7f40/bin/python",
  14. # Package versions
  15. contourpy_version="1.1.1",
  16. meson_version="1.2.1",
  17. mesonpy_version="0.14.0",
  18. pybind11_version="2.11.1",
  19. # Misc meson settings
  20. meson_backend="ninja",
  21. build_dir=r"/project/.mesonpy-ik82l4cu/lib/contourpy/util",
  22. source_dir=r"/project/lib/contourpy/util",
  23. cross_build="False",
  24. # Build options
  25. build_options=r"-Dbuildtype=release -Db_ndebug=if-release -Db_vscrt=md -Dvsenv=True --native-file=/project/.mesonpy-ik82l4cu/meson-python-native-file.ini",
  26. buildtype="release",
  27. cpp_std="c++17",
  28. debug="False",
  29. optimization="3",
  30. vsenv="True",
  31. b_ndebug="if-release",
  32. b_vscrt="from_buildtype",
  33. # C++ compiler
  34. compiler_name="gcc",
  35. compiler_version="10.2.1",
  36. linker_id="ld.bfd",
  37. compile_command="c++",
  38. # Host machine
  39. host_cpu="aarch64",
  40. host_cpu_family="aarch64",
  41. host_cpu_endian="little",
  42. host_cpu_system="linux",
  43. # Build machine, same as host machine if not a cross_build
  44. build_cpu="aarch64",
  45. build_cpu_family="aarch64",
  46. build_cpu_endian="little",
  47. build_cpu_system="linux",
  48. )