Skip to content

Commit

Permalink
Split python install into Windows and non-.
Browse files Browse the repository at this point in the history
  • Loading branch information
luciansmith committed May 10, 2024
1 parent df9874e commit 33c3bdd
Showing 1 changed file with 17 additions and 13 deletions.
30 changes: 17 additions & 13 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -131,33 +131,37 @@ jobs:
/Miniconda3/bin/conda init && bash ~/.bashrc && . ~/.bashrc cd ${RUNNER_WORKSPACE}
# sed -i 's/PKG_CONFIG openssl /PKG_CONFIG openssl11 /g' configure
- name: Install Python dependencies
if: matrix.platform.build_python == 'ON'
- name: Install Python dependencies, non-Windows
if: matrix.platform.build_python == 'ON' && matrix.platform.os_type != 'windows'
run: |
cd ${RUNNER_WORKSPACE}/roadrunner
if [ "${{ matrix.platform.os_type }}" == 'manylinux' ]; then
/Miniconda3/envs/${{ env.python_v1_name }}/bin/python -m pip install --trusted-host pypi.org --trusted-host pypi.python.org --trusted-host files.pythonhosted.org -r requirements.txt
/Miniconda3/envs/${{ env.python_v2_name }}/bin/python -m pip install --trusted-host pypi.org --trusted-host pypi.python.org --trusted-host files.pythonhosted.org -r requirements.txt
/Miniconda3/envs/${{ env.python_v3_name }}/bin/python -m pip install --trusted-host pypi.org --trusted-host pypi.python.org --trusted-host files.pythonhosted.org -r requirements.txt
/Miniconda3/envs/${{ env.python_v4_name }}/bin/python -m pip install --trusted-host pypi.org --trusted-host pypi.python.org --trusted-host files.pythonhosted.org -r requirements.txt
elif [ "${{ matrix.platform.os_type }}" == 'windows' ]; then
echo "Test."
$pattern = '[\\]'
$temp = '${{ env.pythonLocation }}' -replace $pattern, '/'
echo "$temp"
ls $temp
'${{ env.pythonLocation }}\python.exe -m pip install -r requirements.txt'
'${{ env.pythonLocation }}\..\..\${{ env.python_v1 }}*\*\python.exe -m pip install -r requirements.txt'
'${{ env.pythonLocation }}\..\..\${{ env.python_v2 }}*\*\python.exe -m pip install -r requirements.txt'
'${{ env.pythonLocation }}\..\..\${{ env.python_v3 }}*\*\python.exe -m pip install -r requirements.txt'
'${{ env.pythonLocation }}\..\..\${{ env.python_v4 }}*\*\python.exe -m pip install -r requirements.txt'
else
python${{ env.python_v1 }} -m pip install -r requirements.txt
python${{ env.python_v2 }} -m pip install -r requirements.txt
python${{ env.python_v3 }} -m pip install -r requirements.txt
python${{ env.python_v4 }} -m pip install -r requirements.txt
fi
- name: Install Python dependencies, Windows
if: matrix.platform.build_python == 'ON' && matrix.platform.os_type == 'windows'
run: |
cd ${RUNNER_WORKSPACE}/roadrunner
echo "Test."
$pattern = '[\\]'
$temp = '${{ env.pythonLocation }}' -replace $pattern, '/'
echo "$temp"
ls $temp
'${{ env.pythonLocation }}\python.exe -m pip install -r requirements.txt'
'${{ env.pythonLocation }}\..\..\${{ env.python_v1 }}*\*\python.exe -m pip install -r requirements.txt'
'${{ env.pythonLocation }}\..\..\${{ env.python_v2 }}*\*\python.exe -m pip install -r requirements.txt'
'${{ env.pythonLocation }}\..\..\${{ env.python_v3 }}*\*\python.exe -m pip install -r requirements.txt'
'${{ env.pythonLocation }}\..\..\${{ env.python_v4 }}*\*\python.exe -m pip install -r requirements.txt'
- name: Set MSVC as the default compiler on Windows
if: matrix.platform.os_type == 'windows'
uses: ilammy/[email protected]
Expand Down

0 comments on commit 33c3bdd

Please sign in to comment.