Fix building with system-expat (gh#python/cpython#92875).
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:Factory/python311?expand=0&rev=11
This commit is contained in:
parent
ae07cf4ccf
commit
634ab7609b
@ -445,7 +445,7 @@ for dir in Lib Tools; do
|
||||
find $dir -name '*.py' -type f -exec sed -i '1{/^#!.*python/ d}' '{}' \;
|
||||
done
|
||||
# We shortened the file Lib/pdb.py so we have to move the test breakpoint location
|
||||
sed -i -e '/Breakpoint 3 at ...pdb.py:94/s/94/93/' Lib/test/test_pdb.py
|
||||
sed -i -e '/Breakpoint 3 at ...pdb.py:97/s/97/96/' Lib/test/test_pdb.py
|
||||
%endif
|
||||
|
||||
# drop in-tree libffi and expat
|
||||
@ -558,6 +558,12 @@ if test $(ulimit -v) = unlimited || test $(ulimit -v) -gt 10000000; then
|
||||
ulimit -v 11000000 || :
|
||||
fi
|
||||
|
||||
# test_freeze_simple_script in test.test_tools.test_freeze.TestFreeze
|
||||
# uses CONFIG_ARGS to run ./configure.
|
||||
export CONFIG_ARGS="--enable-ipv6 --enable-shared --with-ensurepip=no \
|
||||
--with-system-ffi --with-system-expat --with-lto --enable-optimizations \
|
||||
--with-system-libmpdec --enable-loadable-sqlite-extensions"
|
||||
|
||||
export PYTHONPATH="$(pwd -P)/Lib"
|
||||
# Use timeout, like make target buildbottest
|
||||
# We cannot run tests parallel, because osc build environment doesn’t
|
||||
|
Loading…
Reference in New Issue
Block a user