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
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
Copy file name to clipboardExpand all lines: .travis.yml
+4-4Lines changed: 4 additions & 4 deletions
Original file line number
Diff line number
Diff line change
@@ -70,10 +70,10 @@ before_install:
70
70
# doesn't work for 3.11 or newer.
71
71
# Change distutils.sysconfig... to just sysconfig to get valid SO.
72
72
- python3 -V
73
-
- 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
74
-
- 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
75
-
- if [[ $TRAVIS_PYTHON_VERSION == "pypy3" ]]; then sed -i '/PYTHON3_SO=/s/distutils.//g' configure; ./configure --prefix=$VIRTUAL_ENV --with-python3 --disable-documentation; fi
76
-
- python3 -c 'import sysconfig; s=sysconfig.get_config_var("SO"); print(s) if s else exit(1)'
73
+
- 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
74
+
- 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
75
+
- 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
76
+
- python3 -c 'import sysconfig; s=sysconfig.get_config_var("EXT_SUFFIX"); print(s) if s else exit(1)'
77
77
# - case "$TRAVIS_PYTHON_VERSION" in nightly|3.11-dev) echo skipping xapian build;; *) make && make install; esac
0 commit comments