Rebuild with python 3.14

This commit is contained in:
2026-05-06 21:24:03 +03:00
parent d53533e2ae
commit 211ac9861a
4 changed files with 104 additions and 15 deletions
+4 -13
View File
@@ -2,26 +2,16 @@
# BPM Expects the source code to be extracted into the automatically created 'source' directory which can be accessed using $BPM_SOURCE
# BPM Expects the output files to be present in the automatically created 'output' directory which can be accessed using $BPM_OUTPUT
DOWNLOAD="https://github.com/seb-m/pyinotify/archive/refs/tags/${BPM_PKG_VERSION}.tar.gz"
DOWNLOAD_PATCH="https://github.com/seb-m/pyinotify/commit/478d595a7d086423733e9f5da5edfe9f1df48682.patch"
FILENAME="${DOWNLOAD##*/}"
FILENAME_PATCH="${DOWNLOAD_PATCH##*/}"
# The prepare function is executed in the root of the temp directory
# This function is used for downloading files and putting them into the correct location
# This function is used for putting downloaded files to the correct location or applying patches
prepare() {
wget "$DOWNLOAD"
# Patch to make asyncore optional for Python 3.x
wget "$DOWNLOAD_PATCH"
tar -xvf "$FILENAME" --strip-components=1 -C "$BPM_SOURCE"
cd "$BPM_SOURCE"
patch -Np1 -i "$BPM_WORKDIR"/pyinotify-python-3.12-fix.patch
}
# The build function is executed in the source directory
# This function is used to compile the source code
build() {
patch -Np1 < ../"${FILENAME_PATCH##*/}"
python3 setup.py build
}
@@ -30,5 +20,6 @@ build() {
package() {
python3 setup.py install --root="$BPM_OUTPUT" --prefix=/usr
# Install package license
install -Dm644 "$BPM_SOURCE"/COPYING "$BPM_OUTPUT"/usr/share/licenses/python-pyinotify/COPYING
}