Files
tracy/python/pyproject.toml
T
Alan TseandClaude Sonnet 5.5 f7adbfa2b8 build(python): fix Linux bindings build
The Python bindings have failed to build on Linux since the server
bindings were added:

- The server dependencies (zstd, Capstone, getopt) contain C sources,
  but only CXX was enabled. Enable C in python/CMakeLists.txt.
- An empty CMAKE_INSTALL_BINDIR makes zstd's install() rules fail.
  Use "." so the client DLL still lands in the wheel root on Windows.
- TracyServer is linked into a shared module, which needs
  position-independent code. Set CMAKE_POSITION_INDEPENDENT_CODE.

All changes are inside python/ and only apply when TRACY_CLIENT_PYTHON
is ON.

Closes #1517

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01LPZxBTTREb1SnkZkapQibr
2026-11-11 12:21:52 -08:00

37 lines
1.1 KiB
TOML

[build-system]
requires = ["scikit-build-core>=0.11"]
build-backend = "scikit_build_core.build"
[project]
name = "tracy_client"
dynamic = ["version"]
description = "A real time, nanosecond resolution, remote telemetry, hybrid frame and sampling profiler for games and other applications."
authors = [
{ name = "Bartosz Taudul", email = "wolf@nereid.pl" },
]
requires-python = ">=3.10"
[project.urls]
homepage = "https://github.com/wolfpld/tracy"
source = "https://github.com/wolfpld/tracy"
[tool.scikit-build]
minimum-version = "0.11"
cmake.version = ">=3.15.0"
ninja.version = ">=1.11"
cmake.source-dir = ".."
cmake.build-type = "Release"
wheel.install-dir = "tracy_client"
wheel.packages = ["tracy_client"]
[tool.scikit-build.cmake.define]
TRACY_CLIENT_PYTHON = "ON"
TRACY_STATIC = "OFF"
CMAKE_INSTALL_BINDIR = "."
[tool.scikit-build.metadata.version]
provider = "scikit_build_core.metadata.regex"
input = "../public/common/TracyVersion.hpp"
regex = 'Major = (?P<major>[0-9]+);\s*constexpr int Minor = (?P<minor>[0-9]+);\s*constexpr int Patch = (?P<patch>[0-9]+);'
result = "{major}.{minor}.{patch}"