This is an automated email from the ASF dual-hosted git repository.
tqchen pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/tvm.git
The following commit(s) were added to refs/heads/main by this push:
new f7b57ec3e5 Revert "[Refactor] Build cython with isolate environment"
(#18127)
f7b57ec3e5 is described below
commit f7b57ec3e5a066515b68b54a605972b254282a60
Author: Tianqi Chen <[email protected]>
AuthorDate: Wed Jul 9 12:50:49 2025 -0400
Revert "[Refactor] Build cython with isolate environment" (#18127)
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 a3e62bc267..d8d23f9035 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 cf2eff2a3a..679f5078d3 100644
--- a/python/setup.py
+++ b/python/setup.py
@@ -20,6 +20,7 @@ import os
import pathlib
import shutil
import sys
+import sys
from setuptools import find_packages
from setuptools.dist import Distribution