Skip to content

Commit

Permalink
fix: use pre-build python26 instead of compiling it (#3865)
Browse files Browse the repository at this point in the history
- to save testing time

Signed-off-by: Xiangce Liu <[email protected]>
(cherry picked from commit fe2cb1b)
  • Loading branch information
xiangce committed Aug 2, 2023
1 parent 4a48503 commit ec1e681
Showing 1 changed file with 4 additions and 15 deletions.
19 changes: 4 additions & 15 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,9 @@ jobs:
python26-test:

runs-on: ubuntu-latest
container: ubuntu:18.04
container:
image: cronosmobi/python2.6:latest


steps:
- uses: actions/checkout@v3
Expand All @@ -68,20 +70,7 @@ jobs:
- name: install dependencies
run: |
sudo apt-get install -y --no-install-recommends software-properties-common
sudo apt-get install -y --no-install-recommends libssl1.0-dev zlib1g-dev
sudo apt-get install -y build-essential git curl unzip file wget tar
- name: build python26
run: |
CUR_DIR=$(pwd)
cd ../
wget https://www.python.org/ftp/python/2.6.9/Python-2.6.9.tgz
tar zxf ./Python-2.6.9.tgz
sed -e "s:'\/usr\/lib64',:'\/usr\/lib64', '\/usr\/lib/x86_64-linux-gnu',:" ./Python-2.6.9/setup.py -i
mkdir ./Python-2.6.9/build && cd ./Python-2.6.9/build
../configure --prefix=$HOME/python26 && make && make install
sudo update-alternatives --install /usr/bin/python python $HOME/python26/bin/python2.6 1
sudo update-alternatives --set python $HOME/python26/bin/python2.6
cd ${CUR_DIR}
sudo apt-get install -y build-essential git curl unzip file tar
- name: build setuptools and pip
run: |
export PATH=$PATH:/github/home/.local/bin
Expand Down

0 comments on commit ec1e681

Please sign in to comment.