Not working with swig 4.5+, cleanbuild and add the following in PKGBUILD. Also works with 1.27.1, just replace version number and checksum.
prepare() {
# SWIG 4.5 removed these Python 2 compatibility aliases.
sed -i \
-e 's/\bPyInt_AsLong\b/PyLong_AsLong/g' \
-e 's/\bPyInt_FromLong\b/PyLong_FromLong/g' \
-e 's/\bPyInt_Check\b/PyLong_Check/g' \
"$srcdir/sumo-$pkgver/src/libsumo/"*.i
...
}
...
build() {
# Use this release's tools when generating NetEdit templates.
export SUMO_HOME="$srcdir/sumo-$pkgver"
export PYTHONPATH="$SUMO_HOME/tools"
# Regenerate any header produced using the installed SUMO.
rm -f "$srcdir/build/src/netedit/templates.h"
...
}
Pinned Comments
akstrfn commented on 2024-12-11 12:14 (UTC)
For build to be successful older version of sumo must first be removed.