← 返回首页
build-details.json - Python Packaging User Guide Contents Menu Expand Light mode Dark mode Auto light/dark, in light mode Auto light/dark, in dark mode
Hide navigation sidebar
Hide table of contents sidebar
Skip to content
Toggle site navigation sidebar
Toggle Light / Dark / Auto color theme
Toggle table of contents sidebar
Back to top
Toggle Light / Dark / Auto color theme
Toggle table of contents sidebar

build-details.json

The build-details.json file is a standardized file format that provides build-specfic information of a Python installation, such as its version, extension ABI details, and other information that is specific to that particular build of Python.

Starting from Python 3.14, a build-details.json file is installed in the platform-independent standard library directory (stdlib, e.g. /usr/lib/python3.14/build-details.json).

Please refer to the latest version for its specification.

Example
1{ 2 "schema_version": "1.0", 3 "base_prefix": "/usr", 4 "base_interpreter": "/usr/bin/python", 5 "platform": "linux-x86_64", 6 "language": { 7 "version": "3.14", 8 "version_info": { 9 "major": 3, 10 "minor": 14, 11 "micro": 0, 12 "releaselevel": "alpha", 13 "serial": 0 14 } 15 }, 16 "implementation": { 17 "name": "cpython", 18 "version": { 19 "major": 3, 20 "minor": 14, 21 "micro": 0, 22 "releaselevel": "alpha", 23 "serial": 0 24 }, 25 "hexversion": 51249312, 26 "cache_tag": "cpython-314", 27 "_multiarch": "x86_64-linux-gnu" 28 }, 29 "abi": { 30 "flags": ["t", "d"], 31 "extension_suffix": ".cpython-314-x86_64-linux-gnu.so", 32 "stable_abi_suffix": ".abi3.so" 33 }, 34 "suffixes": { 35 "source": [".py"], 36 "bytecode": [".pyc"], 37 "optimized_bytecode": [".pyc"], 38 "debug_bytecode": [".pyc"], 39 "extensions": [".cpython-314-x86_64-linux-gnu.so", ".abi3.so", ".so"] 40 }, 41 "libpython": { 42 "dynamic": "/usr/lib/libpython3.14.so.1.0", 43 "dynamic_stableabi": "/usr/lib/libpython3.so", 44 "static": "/usr/lib/python3.14/config-3.14-x86_64-linux-gnu/libpython3.14.a", 45 "link_extensions": true 46 }, 47 "c_api": { 48 "headers": "/usr/include/python3.14", 49 "pkgconfig_path": "/usr/lib/pkgconfig" 50 } 51}

Changelog

v1.0

  • Initial version, introduced by PEP 739.

Made with Sphinx and @pradyunsg's Furo
Last updated on May 21, 2026