diff .travis.yml @ 6725:f973fa5163ed

Try looking for EXT_SUFFIX not SO The 3.10 travisci run complained that "SO" was depricated and "EXT_SUFFIX" should be used instead. Maybe it's the varname not distutils deprecation causing the issue? In any case clear distutils just on principles. Plus add debugging steps
author John Rouillard <rouilj@ieee.org>
date Thu, 23 Jun 2022 01:58:53 -0400
parents f68b5389e1b8
children 189f5c1656fd
line wrap: on
line diff
--- a/.travis.yml	Thu Jun 23 01:46:58 2022 -0400
+++ b/.travis.yml	Thu Jun 23 01:58:53 2022 -0400
@@ -70,10 +70,10 @@
   #  doesn't work for 3.11 or newer.
   # Change distutils.sysconfig... to just sysconfig to get valid SO.
   - python3 -V
-  - if [[ $TRAVIS_PYTHON_VERSION == "3."* ]]; then sed -i '/PYTHON3_SO=/s/distutils.//g' configure; grep PYTHON3_SO configure; ./configure --prefix=$VIRTUAL_ENV --with-python3 --disable-documentation; fi
-  - if [[ $TRAVIS_PYTHON_VERSION == "nightly" ]]; then sed -i '/PYTHON3_SO=/s/distutils.//g' configure; grep PYTHON3_SO configure; ./configure --prefix=$VIRTUAL_ENV --with-python3 --disable-documentation; fi
-  - if [[ $TRAVIS_PYTHON_VERSION == "pypy3" ]]; then sed -i '/PYTHON3_SO=/s/distutils.//g' configure; ./configure --prefix=$VIRTUAL_ENV --with-python3 --disable-documentation; fi
-  - python3 -c 'import sysconfig; s=sysconfig.get_config_var("SO"); print(s) if s else exit(1)'
+  - if [[ $TRAVIS_PYTHON_VERSION == "3."* ]]; then sed -i -e '/PYTHON3_SO=/s/distutils\.//g' -e '/PYTHON3_SO=/s/"SO"/"EXT_SUFFIX"/g' configure; grep PYTHON3_SO configure; ./configure --prefix=$VIRTUAL_ENV --with-python3 --disable-documentation; fi
+  - if [[ $TRAVIS_PYTHON_VERSION == "nightly" ]]; then sed -i -e '/PYTHON3_SO=/s/distutils\.//g' -e '/PYTHON3_SO=/s/"SO"/"EXT_SUFFIX"/g' configure; grep PYTHON3_SO configure; ./configure --prefix=$VIRTUAL_ENV --with-python3 --disable-documentation; fi
+  - if [[ $TRAVIS_PYTHON_VERSION == "pypy3" ]]; 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
+  - python3 -c 'import sysconfig; s=sysconfig.get_config_var("EXT_SUFFIX"); print(s) if s else exit(1)'
   # - case "$TRAVIS_PYTHON_VERSION" in nightly|3.11-dev) echo skipping xapian build;; *) make && make install; esac
   - make && make install
 

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