You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: .travis.yml
+4-2Lines changed: 4 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -69,8 +69,10 @@ before_install:
69
69
# edit the configure script. distutils.sysconfig.get_config_vars('SO')
70
70
# doesn't work for 3.11 or newer.
71
71
# 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
74
76
- if [[ $TRAVIS_PYTHON_VERSION == "pypy3" ]]; then sed -i '/PYTHON3_SO=/s/distutils.//g' configure; ./configure --prefix=$VIRTUAL_ENV --with-python3 --disable-documentation; fi
75
77
# - case "$TRAVIS_PYTHON_VERSION" in nightly|3.11-dev) echo skipping xapian build;; *) make && make install; esac
0 commit comments