@@ -130,25 +130,36 @@ jobs:
130130 name : Install build wheel
131131 with :
132132 arch : ${{ matrix.target }}
133- distro : ubuntu20 .04
133+ distro : ubuntu22 .04
134134 githubToken : ${{ github.token }}
135135 # Mount the dist directory as /artifacts in the container
136136 dockerRunArgs : |
137137 --volume "${PWD}/dist:/artifacts"
138138 install : |
139139 apt update -y
140- apt install -y gcc musl-dev python3-dev # this is needed for psutil
140+ apt install -y gcc musl-dev python3-dev
141141 apt install -y --no-install-recommends software-properties-common
142142 add-apt-repository ppa:deadsnakes/ppa
143143 apt update -y
144144 PYTHON=python${{ matrix.python.version }}
145- apt install -y $PYTHON $PYTHON-distutils $PYTHON-venv
145+ if [ "${{ matrix.python.version }}" = "3.12" ]; then
146+ apt install -y $PYTHON python-setuptools python3-venv
147+ else
148+ apt install -y $PYTHON $PYTHON-distutils python-setuptools python3-venv
149+ fi
146150 run : |
147151 ls -lrth /artifacts
148152 PYTHON=python${{ matrix.python.version }}
149153 $PYTHON --version
150- $PYTHON -m venv venv
151- source venv/bin/activate
154+ if [ "${{ matrix.python.version }}" = "3.12" ]; then
155+ $PYTHON -m venv venv --without-pip
156+ source venv/bin/activate
157+ curl https://bootstrap.pypa.io/get-pip.py -o get-pip.py
158+ $PYTHON get-pip.py
159+ else
160+ $PYTHON -m venv venv
161+ source venv/bin/activate
162+ fi
152163 pip install --upgrade pip setuptools wheel
153164 pip install --force-reinstall dist/robyn*.whl
154165 cd ~ && python -c 'import robyn'
0 commit comments