[neon/forks/pyqt5/Neon/unstable] debian: Disable generation of .pyi files on mipsel to reduce memory consumption.
Dmitry Shachnev
null at kde.org
Mon Jan 16 04:06:47 GMT 2023
Git commit d20365bb3aefff2b00f5aaf5f928f45a3cb42974 by Dmitry Shachnev.
Committed on 27/12/2022 at 13:51.
Pushed by carlosdem into branch 'Neon/unstable'.
Disable generation of .pyi files on mipsel to reduce memory consumption.
Closes: #1026980.
M +7 -0 debian/changelog
M +7 -1 debian/rules
https://invent.kde.org/neon/forks/pyqt5/commit/d20365bb3aefff2b00f5aaf5f928f45a3cb42974
diff --git a/debian/changelog b/debian/changelog
index 56d3f8e1..69dee572 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,3 +1,10 @@
+pyqt5 (5.15.7+dfsg-3) UNRELEASED; urgency=medium
+
+ * Disable generation of .pyi files on mipsel to reduce memory consumption
+ (closes: #1026980).
+
+ -- Dmitry Shachnev <mitya57 at debian.org> Tue, 27 Dec 2022 16:51:02 +0300
+
pyqt5 (5.15.7+dfsg-2) unstable; urgency=medium
* Team Upload
diff --git a/debian/rules b/debian/rules
index fc15bfba..2a7fd1df 100755
--- a/debian/rules
+++ b/debian/rules
@@ -53,7 +53,7 @@ build-%/configure-stamp:
dh_testdir
python$* /usr/bin/sip-build $(SHARED_CONFIGURE_OPTIONS) \
--build-dir build-$* \
- $(if $(filter $(DEFAULT_PYTHON),$*),--pep484-pyi,--no-designer-plugin --no-qml-plugin)
+ $(if $(filter $(DEFAULT_PYTHON),$*),$(if $(filter $(DEB_BUILD_ARCH),mipsel),,--pep484-pyi),--no-designer-plugin --no-qml-plugin)
sed -i '/strip/d' build-$*/*/Makefile
touch $@
@@ -94,6 +94,12 @@ override_dh_auto_install-arch:
$(MAKE) -C build-$$p install INSTALL_ROOT=$(CURDIR)/debian/tmp; \
done
+ifneq (,$(filter $(DEB_BUILD_ARCH),mipsel))
+execute_before_dh_install-arch:
+ sed -i '/\.pyi$$/d' debian/*.install
+ sed -i '/py.typed/d' debian/python3-pyqt5.install
+endif
+
execute_after_dh_install-arch:
sed -i 's,/usr/bin/python3[.0-9]*,/usr/bin/python3,' debian/pyqt5-dev-tools/usr/bin/*
rm -rfv debian/python3-pyqt5/usr/lib/python3/dist-packages/PyQt5/uic/port_v2
More information about the Neon-commits
mailing list