From 10d3c096da8b57eff08068ddc3f27c38b390ea0c Mon Sep 17 00:00:00 2001 From: Aganlengzi Date: Wed, 21 Dec 2022 10:06:42 +0800 Subject: [PATCH] fix unittests (#49203) --- .../fluid/tests/custom_kernel/custom_kernel_dot_c_setup.py | 2 +- .../paddle/fluid/tests/custom_kernel/custom_kernel_dot_setup.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/python/paddle/fluid/tests/custom_kernel/custom_kernel_dot_c_setup.py b/python/paddle/fluid/tests/custom_kernel/custom_kernel_dot_c_setup.py index be096e1c31..34778e0d57 100644 --- a/python/paddle/fluid/tests/custom_kernel/custom_kernel_dot_c_setup.py +++ b/python/paddle/fluid/tests/custom_kernel/custom_kernel_dot_c_setup.py @@ -13,9 +13,9 @@ # limitations under the License. import os -from distutils.core import Extension, setup from distutils.sysconfig import get_python_lib +from setuptools import Extension, setup from setuptools.command.build_ext import build_ext from paddle.fluid import core diff --git a/python/paddle/fluid/tests/custom_kernel/custom_kernel_dot_setup.py b/python/paddle/fluid/tests/custom_kernel/custom_kernel_dot_setup.py index 5ec8345812..603e3666f0 100644 --- a/python/paddle/fluid/tests/custom_kernel/custom_kernel_dot_setup.py +++ b/python/paddle/fluid/tests/custom_kernel/custom_kernel_dot_setup.py @@ -14,8 +14,8 @@ import os import site -from distutils.core import Extension, setup +from setuptools import Extension, setup from setuptools.command.build_ext import build_ext from paddle.fluid import core -- GitLab