From 38d63868bf395ac1eb4869bc415de424f0863e45 Mon Sep 17 00:00:00 2001 From: Andrew Murray Date: Wed, 14 Jun 2023 15:46:24 +1000 Subject: [PATCH] Do not import internal class --- _custom_build/backend.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/_custom_build/backend.py b/_custom_build/backend.py index 86fe60817..9b3265a94 100755 --- a/_custom_build/backend.py +++ b/_custom_build/backend.py @@ -1,10 +1,12 @@ import sys from setuptools.build_meta import * # noqa: F401, F403 -from setuptools.build_meta import _BuildMetaBackend +from setuptools.build_meta import build_wheel + +backend_class = build_wheel.__self__.__class__ -class _CustomBuildMetaBackend(_BuildMetaBackend): +class _CustomBuildMetaBackend(backend_class): def run_setup(self, setup_script="setup.py"): if self.config_settings: