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
This commit is contained in:
Cédric Krier
2026-04-21 11:40:53 +02:00
parent fcab430ea4
commit f40a735a0e
+4 -1
View File
@@ -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'),