details:   https://code.tryton.org/tryton/commit/0b79707bcf19
branch:    default
user:      Cédric Krier <[email protected]>
date:      Tue Apr 21 11:40:53 2026 +0200
description:
        Prevent setuptools Distribution to parse config files

        The pyproject.toml is not compatible with setuptools as it is based on
        hatchling backend.

        Closes #14789
diffstat:

 tryton/setup-freeze.py |  5 ++++-
 1 files changed, 4 insertions(+), 1 deletions(-)

diffs (22 lines):

diff -r f120b2c743b1 -r 0b79707bcf19 tryton/setup-freeze.py
--- a/tryton/setup-freeze.py    Tue Apr 21 11:39:44 2026 +0200
+++ b/tryton/setup-freeze.py    Tue Apr 21 11:40:53 2026 +0200
@@ -12,7 +12,7 @@
 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 @@
 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'),

Reply via email to