File tree Expand file tree Collapse file tree 1 file changed +11
-3
lines changed Expand file tree Collapse file tree 1 file changed +11
-3
lines changed Original file line number Diff line number Diff line change 55import sys
66
77from setuptools import setup
8+ from setuptools .command .build_ext import build_ext as build_ext_orig
89
910import torch
1011
@@ -85,11 +86,18 @@ def build_extension(self):
8586 subprocess .check_call (["cmake" ] + install_args )
8687
8788
88- cmake = CMakeBuild ()
89- cmake .run ()
89+ class build_ext (build_ext_orig ):
90+
91+ def run (self ):
92+ cmake = CMakeBuild ()
93+ cmake .run ()
94+ super ().run ()
95+
9096
9197setup (name = "triton-kernels-benchmark" , packages = [
9298 "triton_kernels_benchmark" ,
9399], package_dir = {
94100 "triton_kernels_benchmark" : "triton_kernels_benchmark" ,
95- }, package_data = {"triton_kernels_benchmark" : ["xetla_kernel.cpython-*.so" ]})
101+ }, package_data = {"triton_kernels_benchmark" : ["xetla_kernel.cpython-*.so" ]}, cmdclass = {
102+ "build_ext" : build_ext ,
103+ })
You can’t perform that action at this time.
0 commit comments