comparison .github/workflows/ci-test.yml @ 7624:0e096d280437

build: build xapian on 3.12 See if xapian will build on github with 3.12rc2 using the standard build method. Removed override to 1.14.22 for 3.12 and enabled build rather than skipping on 3.12.
author John Rouillard <rouilj@ieee.org>
date Mon, 11 Sep 2023 01:40:58 -0400
parents b3fdbeeda89e
children aa8230de5b94
comparison
equal deleted inserted replaced
7623:3df2441f3a1e 7624:0e096d280437
187 sudo apt-get install libxapian-dev 187 sudo apt-get install libxapian-dev
188 # Sphinx required to build the xapian python bindings. Use 1.8.5 on 188 # Sphinx required to build the xapian python bindings. Use 1.8.5 on
189 # older python and newest on newer. 189 # older python and newest on newer.
190 if [[ $PYTHON_VERSION == "2."* ]]; then pip install sphinx==1.8.5; fi 190 if [[ $PYTHON_VERSION == "2."* ]]; then pip install sphinx==1.8.5; fi
191 if [[ $PYTHON_VERSION == '3.'* ]] ; then pip install sphinx; fi 191 if [[ $PYTHON_VERSION == '3.'* ]] ; then pip install sphinx; fi
192 if [[ $PYTHON_VERSION == '3.12'* ]] ; then \ 192 XAPIAN_VER=$(dpkg -l libxapian-dev | tail -n 1 | awk '{print $3}' | cut -d '-' -f 1); echo $XAPIAN_VER
193 XAPIAN_VER=1.4.22; \
194 else
195 XAPIAN_VER=$(dpkg -l libxapian-dev | tail -n 1 | awk '{print $3}' | cut -d '-' -f 1); echo $XAPIAN_VER; \
196 fi
197 cd /tmp 193 cd /tmp
198 curl -s -O https://oligarchy.co.uk/xapian/$XAPIAN_VER/xapian-bindings-$XAPIAN_VER.tar.xz 194 curl -s -O https://oligarchy.co.uk/xapian/$XAPIAN_VER/xapian-bindings-$XAPIAN_VER.tar.xz
199 tar -Jxvf xapian-bindings-$XAPIAN_VER.tar.xz 195 tar -Jxvf xapian-bindings-$XAPIAN_VER.tar.xz
200 cd xapian-bindings-$XAPIAN_VER/ 196 cd xapian-bindings-$XAPIAN_VER/
201 if [[ $PYTHON_VERSION == "2."* ]]; then ./configure --prefix=$VIRTUAL_ENV --with-python --disable-documentation; fi 197 if [[ $PYTHON_VERSION == "2."* ]]; then ./configure --prefix=$VIRTUAL_ENV --with-python --disable-documentation; fi
203 # distutils.sysconfig.get_config_vars('SO') doesn't work for 199 # distutils.sysconfig.get_config_vars('SO') doesn't work for
204 # 3.11 or newer. 200 # 3.11 or newer.
205 # Change distutils.sysconfig... to just sysconfig and SO 201 # Change distutils.sysconfig... to just sysconfig and SO
206 # to EXT_SUFFIX to get valid value. 202 # to EXT_SUFFIX to get valid value.
207 if [[ $PYTHON_VERSION == "3."* ]]; then sed -i -e '/PYTHON3_SO=/s/distutils\.//g' -e '/PYTHON3_SO=/s/"SO"/"EXT_SUFFIX"/g' configure; ./configure --prefix=$VIRTUAL_ENV --with-python3 --disable-documentation; fi 203 if [[ $PYTHON_VERSION == "3."* ]]; then sed -i -e '/PYTHON3_SO=/s/distutils\.//g' -e '/PYTHON3_SO=/s/"SO"/"EXT_SUFFIX"/g' configure; ./configure --prefix=$VIRTUAL_ENV --with-python3 --disable-documentation; fi
208 case "$PYTHON_VERSION" in nightly|3.12*) echo skipping xapian build;; *) make && sudo make install; esac 204 case "$PYTHON_VERSION" in nightly) echo skipping xapian build;; *) make && sudo make install; esac
209 205
210 - name: Install pytest and other packages needed for running tests 206 - name: Install pytest and other packages needed for running tests
211 run: pip install flake8 mock pytest pytest-cov requests 207 run: pip install flake8 mock pytest pytest-cov requests
212 208
213 - name: Test build roundup and install locale so lang tests work. 209 - name: Test build roundup and install locale so lang tests work.

Roundup Issue Tracker: http://roundup-tracker.org/