Mercurial > p > roundup > code
comparison .github/workflows/build-xapian.yml @ 7963:05ce472d372b
test: 1.4.25 get xapian working under github actions and python 3.13
[skip travis]
| author | John Rouillard <rouilj@ieee.org> |
|---|---|
| date | Tue, 14 May 2024 08:28:12 -0400 |
| parents | 9166e0100e01 |
| children | 131c962fb6af |
comparison
equal
deleted
inserted
replaced
| 7962:828f79ae965b | 7963:05ce472d372b |
|---|---|
| 79 run: | | 79 run: | |
| 80 set -xv | 80 set -xv |
| 81 sudo apt-get install libxapian-dev | 81 sudo apt-get install libxapian-dev |
| 82 # Sphinx required to build the xapian python bindings. Use 1.8.5 on | 82 # Sphinx required to build the xapian python bindings. Use 1.8.5 on |
| 83 # older python and newest on newer. | 83 # older python and newest on newer. |
| 84 if [[ $PYTHON_VERSION == '3.'* ]] ; then pip install sphinx; fi | 84 pip install sphinx |
| 85 XAPIAN_VER="1.4.18"; echo $XAPIAN_VER; | 85 XAPIAN_VER="1.4.25"; echo $XAPIAN_VER; |
| 86 cd /tmp | 86 cd /tmp |
| 87 curl -s -O https://oligarchy.co.uk/xapian/$XAPIAN_VER/xapian-bindings-$XAPIAN_VER.tar.xz | 87 curl -s -O https://oligarchy.co.uk/xapian/$XAPIAN_VER/xapian-bindings-$XAPIAN_VER.tar.xz |
| 88 tar -Jxvf xapian-bindings-$XAPIAN_VER.tar.xz | 88 tar -Jxvf xapian-bindings-$XAPIAN_VER.tar.xz |
| 89 cd xapian-bindings-$XAPIAN_VER/ | 89 cd xapian-bindings-$XAPIAN_VER/ |
| 90 # edit the configure script. | 90 # edit the configure script. |
| 91 # distutils.sysconfig.get_config_vars('SO') doesn't work for | 91 # distutils.sysconfig.get_config_vars('SO') doesn't work for |
| 92 # 3.11 or newer. | 92 # 3.11 or newer. |
| 93 # Change distutils.sysconfig... to just sysconfig and SO | 93 # Change distutils.sysconfig... to just sysconfig and SO |
| 94 # to EXT_SUFFIX to get valid value. | 94 # to EXT_SUFFIX to get valid value. |
| 95 # DISABLED use their script | |
| 95 if [[ $PYTHON_VERSION == "X."* ]]; then | 96 if [[ $PYTHON_VERSION == "X."* ]]; then |
| 96 cp configure configure.FCS; | 97 cp configure configure.FCS; |
| 97 sed -i \ | 98 sed -i \ |
| 98 -e '/PYTHON3_SO=/s/distutils\.//g' \ | 99 -e '/PYTHON3_SO=/s/distutils\.//g' \ |
| 99 -e '/PYTHON3_SO=/s/"SO"/"EXT_SUFFIX"/g' \ | 100 -e '/PYTHON3_SO=/s/"SO"/"EXT_SUFFIX"/g' \ |
