From 194ba103b19898fe7b80732d3df6f19a30c5a9ec Mon Sep 17 00:00:00 2001 From: fdrocha <99990201+fdrocha@users.noreply.github.com> Date: Thu, 29 Dec 2022 23:10:34 +0000 Subject: [PATCH] [BUILD] Fixed error when compiling in systems with multiple versions of python installed (#1019) --- python/setup.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/python/setup.py b/python/setup.py index 3adcc6db8..4fda02659 100644 --- a/python/setup.py +++ b/python/setup.py @@ -141,10 +141,10 @@ class CMakeBuild(build_ext): "-DCMAKE_LIBRARY_OUTPUT_DIRECTORY=" + extdir, "-DTRITON_BUILD_TUTORIALS=OFF", "-DTRITON_BUILD_PYTHON_MODULE=ON", - # '-DPYTHON_EXECUTABLE=' + sys.executable, - '-DCMAKE_VERBOSE_MAKEFILE:BOOL=ON', + "-DPython3_EXECUTABLE:FILEPATH=" + sys.executable, + "-DCMAKE_VERBOSE_MAKEFILE:BOOL=ON", "-DPYTHON_INCLUDE_DIRS=" + python_include_dir, - "-DLLVM_EXTERNAL_LIT=" + lit_dir + "-DLLVM_EXTERNAL_LIT=" + lit_dir, ] + thirdparty_cmake_args # configuration