• Icon: Story Story
    • Resolution: Unresolved
    • Icon: Undefined Undefined
    • None
    • None
    • Wheel Package Index
    • None

      A patch to setup.py

      From cad9543460850d8540edf05f4ea7fb01b55e1825 Mon Sep 17 00:00:00 2001
      From: Anu Oguntayo <aoguntay@redhat.com>
      Date: Tue, 12 Aug 2025 07:25:00 -0400
      Subject: [PATCH] AIPCC-4265: Patch setup_py to use runtime python instead of
       systemOnnx 1.18.0 defaults to system /usr/bin/python3 which is 3.9 when it should use
      /usr/bin/python3.12 to build. It can not build with 3.9.This patch will alow it to build with runtime python, in this case 3.12.Signed-off-by: Anu Oguntayo aoguntay@redhat.com
      ---
       setup.py | 2 +-
       1 file changed, 1 insertion(+), 1 deletion(-)diff --git a/setup.py b/setup.py
      index 8e50a1f1..0269ab58 100644
      --- a/setup.py
      +++ b/setup.py
      @@ -170,7 +170,7 @@ class CmakeBuild(setuptools.Command):
                   # configure
                   cmake_args = [
                       CMAKE,
      -                f"-DPython3_EXECUTABLE={get_python_execute()}",
      +                f"-DPython3_EXECUTABLE={sys.executable}",
                       "-DONNX_BUILD_PYTHON=ON",
                       f"-DONNX_NAMESPACE={ONNX_NAMESPACE}",
                   ]
      -- 
      2.43.5
      

              rh-ee-aoguntay Anu Oguntayo
              rh-ee-aoguntay Anu Oguntayo
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated: