Skip to content

Commit

Permalink
Numpy only works with Python 3.10 and up.
Browse files Browse the repository at this point in the history
  • Loading branch information
luciansmith committed Sep 18, 2024
1 parent 5fc4587 commit 52ff65a
Showing 1 changed file with 47 additions and 47 deletions.
94 changes: 47 additions & 47 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -80,13 +80,13 @@ jobs:
shell: bash
# v1 should be the earliest supported version, and v4 the latest. Tests are only run on v1 and v4.
run: |
echo "python_v1=3.9" >> $GITHUB_ENV
echo "python_v2=3.10" >> $GITHUB_ENV
echo "python_v3=3.11" >> $GITHUB_ENV
echo "python_v1=3.10" >> $GITHUB_ENV
echo "python_v2=3.11" >> $GITHUB_ENV
# echo "python_v3=3.12" >> $GITHUB_ENV
echo "python_v4=3.12" >> $GITHUB_ENV
echo "python_v1_name=v1" >> $GITHUB_ENV
echo "python_v2_name=v2" >> $GITHUB_ENV
echo "python_v3_name=v3" >> $GITHUB_ENV
# echo "python_v3_name=v3" >> $GITHUB_ENV
echo "python_v4_name=v4" >> $GITHUB_ENV
- name: Checkout RoadRunner
Expand All @@ -105,7 +105,7 @@ jobs:
python-version: |
${{ env.python_v1 }}
${{ env.python_v2 }}
${{ env.python_v3 }}
# ${{ env.python_v3 }}
${{ env.python_v4 }}
- name: Setup Python for Manylinux platforms
Expand All @@ -128,8 +128,8 @@ jobs:
echo "python_v1_dir=/Miniconda3/envs/${{ env.python_v1_name }}" >> $GITHUB_ENV
echo "python_v2_exe=/Miniconda3/envs/${{ env.python_v2_name }}/bin/python" >> $GITHUB_ENV
echo "python_v2_dir=/Miniconda3/envs/${{ env.python_v2_name }}" >> $GITHUB_ENV
echo "python_v3_exe=/Miniconda3/envs/${{ env.python_v3_name }}/bin/python" >> $GITHUB_ENV
echo "python_v3_dir=/Miniconda3/envs/${{ env.python_v3_name }}" >> $GITHUB_ENV
# echo "python_v3_exe=/Miniconda3/envs/${{ env.python_v3_name }}/bin/python" >> $GITHUB_ENV
# echo "python_v3_dir=/Miniconda3/envs/${{ env.python_v3_name }}" >> $GITHUB_ENV
echo "python_v4_exe=/Miniconda3/envs/${{ env.python_v4_name }}/bin/python" >> $GITHUB_ENV
echo "python_v4_dir=/Miniconda3/envs/${{ env.python_v4_name }}" >> $GITHUB_ENV
Expand All @@ -151,11 +151,11 @@ jobs:
echo "python_v2_exe=$pythonWinExecutable/python.exe" | Out-File -FilePath $env:GITHUB_ENV -Append
echo "python_v2_dir=$pythonWinExecutable" | Out-File -FilePath $env:GITHUB_ENV -Append
cd ../../${{ env.python_v3 }}*/x64/
$pythonWinExecutable = $(realpath .)
$pythonWinExecutable = $pythonWinExecutable -replace $pattern, '/'
echo "python_v3_exe=$pythonWinExecutable/python.exe" | Out-File -FilePath $env:GITHUB_ENV -Append
echo "python_v3_dir=$pythonWinExecutable" | Out-File -FilePath $env:GITHUB_ENV -Append
#cd ../../${{ env.python_v3 }}*/x64/
#$pythonWinExecutable = $(realpath .)
#$pythonWinExecutable = $pythonWinExecutable -replace $pattern, '/'
#echo "python_v3_exe=$pythonWinExecutable/python.exe" | Out-File -FilePath $env:GITHUB_ENV -Append
#echo "python_v3_dir=$pythonWinExecutable" | Out-File -FilePath $env:GITHUB_ENV -Append
cd ../../${{ env.python_v4 }}*/x64/
$pythonWinExecutable = $(realpath .)
Expand All @@ -179,9 +179,9 @@ jobs:
echo "python_v2_exe=$PWD/python" >> $GITHUB_ENV
echo "python_v2_dir=$PWD" >> $GITHUB_ENV
cd ../../${{ env.python_v3 }}*/$py_lastdir/
echo "python_v3_exe=$PWD/python" >> $GITHUB_ENV
echo "python_v3_dir=$PWD" >> $GITHUB_ENV
#cd ../../${{ env.python_v3 }}*/$py_lastdir/
#echo "python_v3_exe=$PWD/python" >> $GITHUB_ENV
#echo "python_v3_dir=$PWD" >> $GITHUB_ENV
cd ../../${{ env.python_v4 }}*/$py_lastdir/
echo "python_v4_exe=$PWD/python" >> $GITHUB_ENV
Expand All @@ -201,10 +201,10 @@ jobs:
${{ env.python_v2_exe }} -m pip install -r ./requirements.txt
${{ env.python_v2_exe }} -m pip install -r ./test-requirements.txt
${{ env.python_v2_exe }} -m pip install build
${{ env.python_v3_exe }} -m pip install --upgrade pip
${{ env.python_v3_exe }} -m pip install -r ./requirements.txt
${{ env.python_v3_exe }} -m pip install -r ./test-requirements.txt
${{ env.python_v3_exe }} -m pip install build
#${{ env.python_v3_exe }} -m pip install --upgrade pip
#${{ env.python_v3_exe }} -m pip install -r ./requirements.txt
#${{ env.python_v3_exe }} -m pip install -r ./test-requirements.txt
#${{ env.python_v3_exe }} -m pip install build
${{ env.python_v4_exe }} -m pip install --upgrade pip
${{ env.python_v4_exe }} -m pip install -r ./requirements.txt
${{ env.python_v4_exe }} -m pip install -r ./test-requirements.txt
Expand Down Expand Up @@ -507,34 +507,34 @@ jobs:
mv * ${RUNNER_WORKSPACE}/wheels/
- name: Rebuild RoadRunner with third Python version
if: matrix.platform.build_python == 'ON'
shell: bash
run: |
rm -r -f ${RUNNER_WORKSPACE}/install-roadrunner
cd ${RUNNER_WORKSPACE}/build-roadrunner
cmake $GITHUB_WORKSPACE -DPython_ROOT_DIR=${{ env.python_v3_dir }}
cmake --build . --target install --config ${{ matrix.platform.build_type }}
- name: Create third Python wheel artifacts and rename
if: matrix.platform.build_type == 'Release' && matrix.platform.build_python == 'ON'
shell: bash
run: |
cd ${RUNNER_WORKSPACE}/install-roadrunner
${{ env.python_v3_exe }} -m build --wheel
rm -r -f build
mv setup_rrplugins.py setup.py
${{ env.python_v3_exe }} -m build --wheel
rm -r -f build
cd ${RUNNER_WORKSPACE}/install-roadrunner/dist
if compgen -G "*universal*whl" > /dev/null; then
mv libroadrunner*universal*.whl $(echo libroadrunner*universal*.whl | sed "s/universal2/${host_architecture}/g")
mv rrplugins*universal*.whl $(echo rrplugins*universal*.whl | sed "s/universal2/${host_architecture}/g")
elif compgen -G "*-linux*whl" > /dev/null; then
mv libroadrunner*-linux*.whl $(echo libroadrunner*-linux*.whl | sed "s/-linux/-manylinux_2_28/g")
mv rrplugins*-linux*.whl $(echo rrplugins*-linux*.whl | sed "s/-linux/-manylinux_2_28/g")
fi
mv * ${RUNNER_WORKSPACE}/wheels/
# - name: Rebuild RoadRunner with third Python version
# if: matrix.platform.build_python == 'ON'
# shell: bash
# run: |
# rm -r -f ${RUNNER_WORKSPACE}/install-roadrunner
# cd ${RUNNER_WORKSPACE}/build-roadrunner
# cmake $GITHUB_WORKSPACE -DPython_ROOT_DIR=${{ env.python_v3_dir }}
# cmake --build . --target install --config ${{ matrix.platform.build_type }}

# - name: Create third Python wheel artifacts and rename
# if: matrix.platform.build_type == 'Release' && matrix.platform.build_python == 'ON'
# shell: bash
# run: |
# cd ${RUNNER_WORKSPACE}/install-roadrunner
# ${{ env.python_v3_exe }} -m build --wheel
# rm -r -f build
# mv setup_rrplugins.py setup.py
# ${{ env.python_v3_exe }} -m build --wheel
# rm -r -f build
# cd ${RUNNER_WORKSPACE}/install-roadrunner/dist
# if compgen -G "*universal*whl" > /dev/null; then
# mv libroadrunner*universal*.whl $(echo libroadrunner*universal*.whl | sed "s/universal2/${host_architecture}/g")
# mv rrplugins*universal*.whl $(echo rrplugins*universal*.whl | sed "s/universal2/${host_architecture}/g")
# elif compgen -G "*-linux*whl" > /dev/null; then
# mv libroadrunner*-linux*.whl $(echo libroadrunner*-linux*.whl | sed "s/-linux/-manylinux_2_28/g")
# mv rrplugins*-linux*.whl $(echo rrplugins*-linux*.whl | sed "s/-linux/-manylinux_2_28/g")
# fi
# mv * ${RUNNER_WORKSPACE}/wheels/


- name: Rebuild RoadRunner with fourth Python version
Expand Down

0 comments on commit 52ff65a

Please sign in to comment.