forked from AndySomogyi/sbmlsolver
-
Notifications
You must be signed in to change notification settings - Fork 25
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Split python install into Windows and non-.
- Loading branch information
1 parent
df9874e
commit 33c3bdd
Showing
1 changed file
with
17 additions
and
13 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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] | ||
|