Skip to content

Commit

Permalink
Add python source build
Browse files Browse the repository at this point in the history
  • Loading branch information
SonicField committed Oct 7, 2024
1 parent c186aad commit 1d73579
Showing 1 changed file with 2 additions and 7 deletions.
9 changes: 2 additions & 7 deletions .github/actions/build-python-from-source/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand Down

0 comments on commit 1d73579

Please sign in to comment.