Skip to content

Commit 92975ce

Browse files
committed
Debugging
1 parent 62b054a commit 92975ce

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

.travis.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -69,8 +69,10 @@ before_install:
6969
# edit the configure script. distutils.sysconfig.get_config_vars('SO')
7070
# doesn't work for 3.11 or newer.
7171
# Change distutils.sysconfig... to just sysconfig to get valid SO.
72-
- if [[ $TRAVIS_PYTHON_VERSION == "3."* ]]; then sed -i '/PYTHON3_SO=/s/distutils.//g' configure; ./configure --prefix=$VIRTUAL_ENV --with-python3 --disable-documentation; fi
73-
- if [[ $TRAVIS_PYTHON_VERSION == "nightly" ]]; then sed -i '/PYTHON3_SO=/s/distutils.//g' configure; ./configure --prefix=$VIRTUAL_ENV --with-python3 --disable-documentation; fi
72+
- python3 -V
73+
- python3 -c 'import sysconfig; s=sysconfig.get_config_var("SO"); print(s) if s else exit(1)'
74+
- 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
75+
- 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
7476
- if [[ $TRAVIS_PYTHON_VERSION == "pypy3" ]]; then sed -i '/PYTHON3_SO=/s/distutils.//g' configure; ./configure --prefix=$VIRTUAL_ENV --with-python3 --disable-documentation; fi
7577
# - case "$TRAVIS_PYTHON_VERSION" in nightly|3.11-dev) echo skipping xapian build;; *) make && make install; esac
7678
- make && make install

0 commit comments

Comments
 (0)