From 1d735792d3a537793ab7d6f84d534de079b62c95 Mon Sep 17 00:00:00 2001 From: Alex Turner Date: Mon, 7 Oct 2024 16:54:56 -0700 Subject: [PATCH] Add python source build --- .github/actions/build-python-from-source/action.yml | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/.github/actions/build-python-from-source/action.yml b/.github/actions/build-python-from-source/action.yml index 6fe1a23..9ee9835 100644 --- a/.github/actions/build-python-from-source/action.yml +++ b/.github/actions/build-python-from-source/action.yml @@ -73,6 +73,8 @@ runs: set CXXFLAGS=/Ox ./PCbuild/build.bat -e -d $configure_options fi + # Make sure we use our version of python. + echo "LOCAL_PYTHON=$prefix/bin/python3" >> $GITHUB_ENV # Install the built Python version. - name: Install Python @@ -88,15 +90,8 @@ runs: # Copy the Python executable and necessary DLLs to the installation directory cp PCbuild/amd64/python.exe "C:/Python/${{ inputs.python-version }}" cp PCbuild/amd64/*.dll "C:/Python/${{ inputs.python-version }}" - - # Add the installation directory to the system PATH - echo "C:/Python/${{ inputs.python-version }}" >> $GITHUB_PATH fi - # Make sure we use our version of python. - - name: Set LOCAL_PYTHON envvar - run: echo "LOCAL_PYTHON=$prefix/bin/python3" >> $GITHUB_ENV - shell: bash # Ensure python is in the path and log out the version to help with debug. - name: Verify Python Installation