From c14746c2409b2f840476a0e03328c37d911144d6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=A7=9A=E5=B0=8F=E7=99=BD?= <17625331900@163.com> Date: Thu, 17 Jul 2025 09:36:47 +0000 Subject: [PATCH 1/2] =?UTF-8?q?=E6=B5=8B=E8=AF=95=E6=9C=BA=E5=99=A8?= =?UTF-8?q?=E4=BA=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: 姚小白 <17625331900@163.com> --- setup.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/setup.py b/setup.py index 14920e100d..5103cd04b9 100644 --- a/setup.py +++ b/setup.py @@ -13,6 +13,8 @@ import time from pathlib import Path from typing import Union + + import distutils.ccompiler import distutils.command.clean from sysconfig import get_paths -- Gitee From 0ce8752b237d46c63cc40fc5a5bfa043d924d075 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=A7=9A=E5=B0=8F=E7=99=BD?= <17625331900@163.com> Date: Thu, 17 Jul 2025 09:42:03 +0000 Subject: [PATCH 2/2] update setup.py. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: 姚小白 <17625331900@163.com> --- setup.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/setup.py b/setup.py index 5103cd04b9..57f2e77009 100644 --- a/setup.py +++ b/setup.py @@ -30,6 +30,9 @@ from wheel.bdist_wheel import bdist_wheel # Disable autoloading before running 'import torch' to avoid circular dependencies os.environ["TORCH_DEVICE_BACKEND_AUTOLOAD"] = "0" + + + from codegen.utils import PathManager BASE_DIR = os.path.dirname(os.path.realpath(__file__)) -- Gitee