diff .travis.yml @ 6723:7bf6cb5db521

Debugging
author John Rouillard <rouilj@ieee.org>
date Thu, 23 Jun 2022 01:46:32 -0400
parents 02e15cc0e82a
children f68b5389e1b8
line wrap: on
line diff
--- a/.travis.yml	Thu Jun 23 01:31:42 2022 -0400
+++ b/.travis.yml	Thu Jun 23 01:46:32 2022 -0400
@@ -69,8 +69,10 @@
   # edit the configure script. distutils.sysconfig.get_config_vars('SO')
   #  doesn't work for 3.11 or newer.
   # Change distutils.sysconfig... to just sysconfig to get valid SO.
-  - if [[ $TRAVIS_PYTHON_VERSION == "3."* ]]; then sed -i '/PYTHON3_SO=/s/distutils.//g' configure; ./configure --prefix=$VIRTUAL_ENV --with-python3 --disable-documentation; fi
-  - if [[ $TRAVIS_PYTHON_VERSION == "nightly" ]]; then sed -i '/PYTHON3_SO=/s/distutils.//g' configure; ./configure --prefix=$VIRTUAL_ENV --with-python3 --disable-documentation; fi
+  - python3 -V
+  - 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 '/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
   # - 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/