From ff55bb2a0f4c90a4b0fb2fd6c978e7ff32bb64b5 Mon Sep 17 00:00:00 2001 From: Tianqi Chen Date: Wed, 9 Jul 2025 09:24:02 -0400 Subject: [PATCH] Revert "[Refactor] Build cython with isolate environment (#18124)" This reverts commit c6969d7238c8010615e4cf07151821c0c5118cda. --- CMakeLists.txt | 2 +- python/setup.py | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index a3e62bc26750..d8d23f90353d 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -693,7 +693,7 @@ if(NOT DEFINED ENV{CONDA_BUILD}) message(STATUS ${CMAKE_CURRENT_BINARY_DIR}) add_custom_target( tvm_cython ALL - ${Python_EXECUTABLE} -I setup.py build_ext --inplace + ${Python_EXECUTABLE} setup.py build_ext --inplace WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}/python ) add_dependencies(tvm_cython tvm) diff --git a/python/setup.py b/python/setup.py index cf2eff2a3af4..679f5078d3c1 100644 --- a/python/setup.py +++ b/python/setup.py @@ -20,6 +20,7 @@ import pathlib import shutil import sys +import sys from setuptools import find_packages from setuptools.dist import Distribution