Skip to content

Commit 0aba5bf

Browse files
authored
Revert "[MLIR][Python] add Python wheel build demo/test" (#160481)
Reverts #160388 because it broke [mlir-nvidia](https://lab.llvm.org/buildbot/#/builders/138) builder.
1 parent c1aa89e commit 0aba5bf

File tree

5 files changed

+2
-109
lines changed

5 files changed

+2
-109
lines changed

mlir/examples/standalone/CMakeLists.txt

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -63,12 +63,8 @@ if(MLIR_ENABLE_BINDINGS_PYTHON)
6363
include(MLIRDetectPythonEnv)
6464
mlir_configure_python_dev_packages()
6565
# Note: for EXTERNAL_PROJECT_BUILD this must be set from the command line.
66-
if(NOT MLIR_PYTHON_PACKAGE_PREFIX)
67-
set(MLIR_PYTHON_PACKAGE_PREFIX "mlir_standalone" CACHE STRING "" FORCE)
68-
endif()
69-
if(NOT MLIR_BINDINGS_PYTHON_INSTALL_PREFIX)
70-
set(MLIR_BINDINGS_PYTHON_INSTALL_PREFIX "python_packages/standalone/${MLIR_PYTHON_PACKAGE_PREFIX}" CACHE STRING "" FORCE)
71-
endif()
66+
set(MLIR_PYTHON_PACKAGE_PREFIX "mlir_standalone" CACHE STRING "" FORCE)
67+
set(MLIR_BINDINGS_PYTHON_INSTALL_PREFIX "python_packages/standalone/${MLIR_PYTHON_PACKAGE_PREFIX}" CACHE STRING "" FORCE)
7268
add_subdirectory(python)
7369
endif()
7470
add_subdirectory(test)

mlir/examples/standalone/pyproject.toml

Lines changed: 0 additions & 65 deletions
This file was deleted.
Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
import os
2-
31
# Disable with sanitizers for now, this require some more setup apparently.
42
for san in ["asan", "msan", "ubsan"]:
53
if san in config.available_features:
@@ -9,10 +7,7 @@ config.substitutions.append(("%cmake_exe", config.host_cmake))
97
config.substitutions.append(("%cmake_generator", config.host_cmake_generator))
108
config.substitutions.append(("%host_cxx", config.host_cxx))
119
config.substitutions.append(("%host_cc", config.host_cc))
12-
config.substitutions.append(("%hostc_compiler_launcher", config.host_c_compiler_launcher))
13-
config.substitutions.append(("%hostcxx_compiler_launcher", config.host_cxx_compiler_launcher))
1410
config.substitutions.append(("%enable_libcxx", config.enable_libcxx))
1511
config.substitutions.append(("%mlir_cmake_dir", config.mlir_cmake_dir))
16-
config.substitutions.append(("%mlir_obj_root", config.mlir_obj_root))
1712
config.substitutions.append(("%llvm_use_linker", config.llvm_use_linker))
1813
config.substitutions.append(("%cmake_build_type", config.cmake_build_type))

mlir/test/Examples/standalone/test.wheel.toy

Lines changed: 0 additions & 31 deletions
This file was deleted.

mlir/test/lit.site.cfg.py.in

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,6 @@ config.native_target = "@LLVM_NATIVE_ARCH@"
1515
config.host_os = "@HOST_OS@"
1616
config.host_cc = "@HOST_CC@"
1717
config.host_cxx = "@HOST_CXX@"
18-
config.host_c_compiler_launcher = "@CMAKE_C_COMPILER_LAUNCHER@"
19-
config.host_cxx_compiler_launcher = "@CMAKE_CXX_COMPILER_LAUNCHER@"
2018
config.enable_libcxx = "@LLVM_ENABLE_LIBCXX@"
2119
config.host_cmake = "@CMAKE_COMMAND@"
2220
config.host_cmake_generator = "@CMAKE_GENERATOR@"

0 commit comments

Comments
 (0)