From a5c46cbc92d6c715e01fd6a3e6ecd0e583904fae Mon Sep 17 00:00:00 2001 From: Ofek Lev Date: Wed, 10 Jan 2024 22:39:23 -0500 Subject: [PATCH] Apply suggestions from code review --- setup.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/setup.py b/setup.py index 7b2b39236..5d095f693 100644 --- a/setup.py +++ b/setup.py @@ -250,8 +250,7 @@ class BuildCFFIForSharedLib(_build_ext): def build_extensions(self): build_script = os.path.join('_cffi_build', 'build_shared.py') c_file = self.extensions[0].sources[0] - python_exe = shutil.which('python', path=os.environ['PATH']) - subprocess.run([python_exe, build_script, c_file, '0'], shell=False, check=True) # noqa S603 + subprocess.run([sys.executable, build_script, c_file, '0'], shell=False, check=True) # noqa S603 super().build_extensions()