python_single_version_externally_managed
authorKees Cook <kees@debian.org>
Thu, 4 Jan 2024 17:29:54 +0000 (18:29 +0100)
committerFelix Geyer <fgeyer@debian.org>
Thu, 4 Jan 2024 17:29:54 +0000 (18:29 +0100)
Fix building with setuptools instead of distutils.

Gbp-Pq: Name python_single_version_externally_managed.patch

src/python/Makefile.am

index 51664123adb5e3cbf19eab5aeed7e07d8f8c3bda..f2cff4e8d75426a7116f1dcd0b83b787247ec434 100644 (file)
@@ -41,7 +41,8 @@ build: ../libseccomp.la libseccomp.pxd seccomp.pyx setup.py
 
 install-exec-local: build
        ${PY_INSTALL} --install-lib=${DESTDIR}/${pyexecdir} \
-               --record=${DESTDIR}/${pyexecdir}/install_files.txt
+               --record=${DESTDIR}/${pyexecdir}/install_files.txt \
+               --single-version-externally-managed
 
 uninstall-local:
        cat ${DESTDIR}/${pyexecdir}/install_files.txt | xargs ${RM} -f