From f40a735a0e8d6d6704adabffb11730c0d5222a39 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=A9dric=20Krier?= Date: Tue, 21 Apr 2026 11:40:53 +0200 Subject: [PATCH] Prevent setuptools Distribution to parse config files The pyproject.toml is not compatible with setuptools as it is based on hatchling backend. Closes #14789 (grafted from 0b79707bcf19fbee9d243fa2f689e6f18e0869d0) --HG-- branch : 8.0 --- tryton/setup-freeze.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/tryton/setup-freeze.py b/tryton/setup-freeze.py index 6fd70ce0c7..1a889c6035 100755 --- a/tryton/setup-freeze.py +++ b/tryton/setup-freeze.py @@ -12,7 +12,7 @@ from pathlib import Path from subprocess import check_call from cx_Freeze import Executable, setup -from setuptools import find_packages +from setuptools import Distribution, find_packages home = os.path.expanduser('~/') pythonrc = os.path.join(home, '.pythonrc.py') @@ -22,6 +22,9 @@ try: except IOError: pass +# Prevent parsing pyproject.toml +Distribution.parse_config_files = lambda *a, **k: None + include_files = [ (os.path.join(sys.prefix, 'share', 'glib-2.0', 'schemas'),